Update README.md
Browse files
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 =
|
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)
|