hiyouga commited on
Commit
cfb9a07
1 Parent(s): 1b98b3a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -22,7 +22,7 @@ model = PeftModel.from_pretrained(model, "hiyouga/baichuan-7b-sft")
22
  query = "晚上睡不着怎么办"
23
 
24
  inputs = tokenizer(["<human>:{}\n<bot>:".format(query)], return_tensors="pt")
25
- inputs = inputs_ids.to("cuda")
26
  generate_ids = model.generate(**inputs)
27
  output = tokenizer.batch_decode(generate_ids)[0]
28
  print(output)
 
22
  query = "晚上睡不着怎么办"
23
 
24
  inputs = tokenizer(["<human>:{}\n<bot>:".format(query)], return_tensors="pt")
25
+ inputs = inputs.to("cuda")
26
  generate_ids = model.generate(**inputs)
27
  output = tokenizer.batch_decode(generate_ids)[0]
28
  print(output)