ó
    ÊÙ¢j8  ã                   ó4   • S SK Jr  S SKJr   " S S\\5      rg)é    )ÚBitsandbytesPrecision)Ú	Precisionc                   ó   • \ rS rSrSrSrg)r   é   aÖ  Plugin for quantizing weights with `bitsandbytes <https://github.com/bitsandbytes-foundation/bitsandbytes>`__.

.. warning::  This is an :ref:`experimental <versioning:Experimental API>` feature.

.. note::
    The optimizer is not automatically replaced with ``bitsandbytes.optim.Adam8bit`` or equivalent 8-bit optimizers.

Args:
    mode: The quantization mode to use.
    dtype: The compute dtype to use.
    ignore_modules: The submodules whose Linear layers should not be replaced, for example. ``{"lm_head"}``.
        This might be desirable for numerical stability. The string will be checked in as a prefix, so a value like
        "transformer.blocks" will ignore all linear layers in all of the transformer blocks.
© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú¾C:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pytorch_lightning/plugins/precision/bitsandbytes.pyr   r      s   † ôr   r   N)Ú/lightning_fabric.plugins.precision.bitsandbytesr   ÚFabricBNBPrecisionÚ-pytorch_lightning.plugins.precision.precisionr   r   r   r   Ú<module>r      s   ðõ hÝ Cô˜IÐ'9õ r   