Instructions to use entity2260/algebra_linear_1d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use entity2260/algebra_linear_1d with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("entity2260/algebra_linear_1d") model = AutoModelForSeq2SeqLM.from_pretrained("entity2260/algebra_linear_1d", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
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 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
| 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.
|