svjack commited on
Commit
c06b8a3
1 Parent(s): dae4480

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -42,7 +42,7 @@ from peft import PeftModel
42
 
43
  tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-7B-Instruct")
44
  model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-7B-Instruct",
45
- torch_dtype="auto", device_map="auto", load_in_4bit = True)
46
 
47
  model = PeftModel.from_pretrained(model, "svjack/Qwen2-7B_Function_Call_tiny_lora")
48
  streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
 
42
 
43
  tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-7B-Instruct")
44
  model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-7B-Instruct",
45
+ torch_dtype="auto", device_map="auto", load_in_8bit = True)
46
 
47
  model = PeftModel.from_pretrained(model, "svjack/Qwen2-7B_Function_Call_tiny_lora")
48
  streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)