silk-road commited on
Commit
24209d2
β€’
1 Parent(s): fee0ada

Update ChatHaruhi/Qwen118k2GPT.py

Browse files
Files changed (1) hide show
  1. ChatHaruhi/Qwen118k2GPT.py +2 -2
ChatHaruhi/Qwen118k2GPT.py CHANGED
@@ -16,10 +16,10 @@ def initialize_Qwen2LORA(model):
16
  if model_qwen is None:
17
  model_qwen = AutoModelForCausalLM.from_pretrained(
18
  model,
19
- # torch_dtype=torch.float16,
20
  device_map="auto",
21
  trust_remote_code=True
22
- ).half()
23
  model_qwen = model_qwen.eval()
24
  # model_qwen = PeftModel.from_pretrained(
25
  # model_qwen,
 
16
  if model_qwen is None:
17
  model_qwen = AutoModelForCausalLM.from_pretrained(
18
  model,
19
+ torch_dtype=torch.float16,
20
  device_map="auto",
21
  trust_remote_code=True
22
+ )
23
  model_qwen = model_qwen.eval()
24
  # model_qwen = PeftModel.from_pretrained(
25
  # model_qwen,