George Treacy commited on
Commit ·
cad5671
1
Parent(s): 404e938
use AutoModelForCausalLM in model card example
Browse files
README.md
CHANGED
|
@@ -33,9 +33,9 @@ Train loss: ~2.18 · Dev loss: ~2.20
|
|
| 33 |
```python
|
| 34 |
import torch
|
| 35 |
import torch.nn.functional as F
|
| 36 |
-
from transformers import
|
| 37 |
|
| 38 |
-
model =
|
| 39 |
tok = AutoTokenizer.from_pretrained("iand666/makemore-mlp", trust_remote_code=True)
|
| 40 |
model.eval()
|
| 41 |
|
|
|
|
| 33 |
```python
|
| 34 |
import torch
|
| 35 |
import torch.nn.functional as F
|
| 36 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 37 |
|
| 38 |
+
model = AutoModelForCausalLM.from_pretrained("iand666/makemore-mlp", trust_remote_code=True)
|
| 39 |
tok = AutoTokenizer.from_pretrained("iand666/makemore-mlp", trust_remote_code=True)
|
| 40 |
model.eval()
|
| 41 |
|