entity2260 commited on
Commit
ba7c833
·
verified ·
1 Parent(s): 59fb9c5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -13,9 +13,11 @@ This is a [t5-small](https://ai.googleblog.com/2020/02/exploring-transfer-learni
13
  To load the model:
14
  (necessary packages: !pip install transformers sentencepiece)
15
  ```python
16
- from transformers import AutoTokenizer, AutoModelWithLMHead
17
- tokenizer = AutoTokenizer.from_pretrained("dbernsohn/algebra_linear_1d")
18
- model = AutoModelWithLMHead.from_pretrained("dbernsohn/algebra_linear_1d")
 
 
19
  ```
20
 
21
  You can then use this model to solve algebra 1d equations into numbers.
 
13
  To load the model:
14
  (necessary packages: !pip install transformers sentencepiece)
15
  ```python
16
+ # Load model directly
17
+ from transformers import AutoTokenizer, AutoModelForCausalLM
18
+
19
+ tokenizer = AutoTokenizer.from_pretrained("entity2260/pythia-70m")
20
+ model = AutoModelForCausalLM.from_pretrained("entity2260/pythia-70m")
21
  ```
22
 
23
  You can then use this model to solve algebra 1d equations into numbers.