yuewang-sf commited on
Commit
70e0c1e
1 Parent(s): 0d1bc98

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -31,8 +31,8 @@ model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint,
31
  torch_dtype=torch.float16,
32
  trust_remote_code=True).to(device)
33
 
34
- inputs = tokenizer.encode("def print_hello():", return_tensors="pt").to(device)
35
- outputs = model.generate(inputs, max_length=12)
36
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
37
  ```
38
 
 
31
  torch_dtype=torch.float16,
32
  trust_remote_code=True).to(device)
33
 
34
+ inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to(device)
35
+ outputs = model.generate(inputs, max_length=8)
36
  print(tokenizer.decode(outputs[0], skip_special_tokens=True))
37
  ```
38