DeathReaper0965
commited on
Commit
•
6a4d995
1
Parent(s):
5d33b29
Update README.md
Browse files
README.md
CHANGED
@@ -64,7 +64,7 @@ peft_model_id = "DeathReaper0965/flan-t5-base-samsum-lora-RLAIF-toxicity"
|
|
64 |
config = PeftConfig.from_pretrained(peft_model_id)
|
65 |
|
66 |
# load base LLM model and tokenizer
|
67 |
-
model = AutoModelForSeq2SeqLM.from_pretrained(config.base_model_name_or_path, device_map='auto') # load_in_8bit=True
|
68 |
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
69 |
|
70 |
# Load the Lora model
|
|
|
64 |
config = PeftConfig.from_pretrained(peft_model_id)
|
65 |
|
66 |
# load base LLM model and tokenizer
|
67 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(config.base_model_name_or_path, device_map='auto') # If required, you can add `load_in_8bit=True` for loading model in 8-bit
|
68 |
tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
|
69 |
|
70 |
# Load the Lora model
|