Update README.md
Browse files
README.md
CHANGED
@@ -18,10 +18,10 @@ 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', trust_remote_code=True, torch_dtype=torch.float16)
|
22 |
model = model.to(device='cuda')
|
23 |
|
24 |
-
tokenizer = AutoTokenizer.from_pretrained('FrankL/storytellerLM-v0', trust_remote_code=True)
|
25 |
def inference(
|
26 |
model: AutoModelForCausalLM,
|
27 |
tokenizer: AutoTokenizer,
|
|
|
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)
|
25 |
def inference(
|
26 |
model: AutoModelForCausalLM,
|
27 |
tokenizer: AutoTokenizer,
|