Skip to content

Commit 21b94e4

Browse files
authored
Update README.md
1 parent e6b2d68 commit 21b94e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codegen25/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Program synthesis in the form of auto-regressive sampling can be performed as fo
3030
```python
3131
from transformers import AutoTokenizer, AutoModelForCausalLM
3232

33-
tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen25-7B-multi", trust_remote_code=True)
34-
model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen25-7B-multi")
33+
tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen25-7b-mono", trust_remote_code=True)
34+
model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen25-7b-mono")
3535
inputs = tokenizer("def hello_world():", return_tensors="pt")
3636
sample = model.generate(**inputs, max_length=128)
3737
print(tokenizer.decode(sample[0]))

0 commit comments

Comments
 (0)