monkeypatch.peft.utils

monkeypatch.peft.utils

Patch prepare_model_for_kbit_training to not upcast everything

Functions

Name Description
patch_peft_prep_code monkeypatch prepare_model_for_kbit_training so it leaves the embeddings alone

patch_peft_prep_code

monkeypatch.peft.utils.patch_peft_prep_code(embedding_modules=None)

monkeypatch prepare_model_for_kbit_training so it leaves the embeddings alone