Update finetune_sample/lora_test.py
Browse files
finetune_sample/lora_test.py
CHANGED
@@ -5,10 +5,10 @@ from peft import PeftModel, PeftConfig
|
|
5 |
from transformers import AutoModelForCausalLM
|
6 |
from transformers import GPTQConfig
|
7 |
|
8 |
-
quantized_model_dir = "
|
9 |
model_basename = "model"
|
10 |
|
11 |
-
tokenizer = AutoTokenizer.from_pretrained(quantized_model_dir)
|
12 |
|
13 |
device_map = "auto"
|
14 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
5 |
from transformers import AutoModelForCausalLM
|
6 |
from transformers import GPTQConfig
|
7 |
|
8 |
+
quantized_model_dir = "./"
|
9 |
model_basename = "model"
|
10 |
|
11 |
+
tokenizer = AutoTokenizer.from_pretrained(quantized_model_dir, , local_files_only=True)
|
12 |
|
13 |
device_map = "auto"
|
14 |
model = AutoModelForCausalLM.from_pretrained(
|