FrankL commited on
Commit
540469a
·
verified ·
1 Parent(s): c526ddd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -18,7 +18,7 @@ This is the model card of a 🤗 transformers model that has been pushed on the
18
  ### Direct Use
19
 
20
  ```python
21
- model = AutoModel.from_pretrained('FrankL/storytellerLM-v0.1', trust_remote_code=True, torch_dtype=torch.float16)
22
  model = model.to(device='cuda')
23
 
24
  tokenizer = AutoTokenizer.from_pretrained('FrankL/storytellerLM-v0.1', trust_remote_code=True)
 
18
  ### Direct Use
19
 
20
  ```python
21
+ model = AutoModelForCausalLM.from_pretrained('FrankL/storytellerLM-v0.1', trust_remote_code=True, torch_dtype=torch.float16)
22
  model = model.to(device='cuda')
23
 
24
  tokenizer = AutoTokenizer.from_pretrained('FrankL/storytellerLM-v0.1', trust_remote_code=True)