dahara1 commited on
Commit
210a257
1 Parent(s): 09242b6

Update finetune_sample/lora_test.py

Browse files
Files changed (1) hide show
  1. finetune_sample/lora_test.py +2 -2
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 = "dahara1/weblab-10b-instruction-sft-GPTQ/finetune_sample"
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(