Add LoRA support
This commit is contained in:
parent
ee164d1821
commit
104293f411
6 changed files with 51 additions and 8 deletions
|
@ -11,6 +11,8 @@ from accelerate import infer_auto_device_map, init_empty_weights
|
|||
from transformers import (AutoConfig, AutoModelForCausalLM, AutoTokenizer,
|
||||
BitsAndBytesConfig)
|
||||
|
||||
from peft import PeftModel
|
||||
|
||||
import modules.shared as shared
|
||||
|
||||
transformers.logging.set_verbosity_error()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue