entity2260 commited on
Commit
c272d98
·
verified ·
1 Parent(s): 2c92774

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # algebra_linear_1d
2
  ---
3
  language: en
@@ -10,9 +13,11 @@ This is a [t5-small](https://ai.googleblog.com/2020/02/exploring-transfer-learni
10
  To load the model:
11
  (necessary packages: !pip install transformers sentencepiece)
12
  ```python
13
- from transformers import AutoTokenizer, AutoModelWithLMHead
14
- tokenizer = AutoTokenizer.from_pretrained("dbernsohn/algebra_linear_1d")
15
- model = AutoModelWithLMHead.from_pretrained("dbernsohn/algebra_linear_1d")
 
 
16
  ```
17
 
18
  You can then use this model to solve algebra 1d equations into numbers.
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
  # algebra_linear_1d
5
  ---
6
  language: en
 
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.