Final fix for README
Browse files
README.md
CHANGED
|
@@ -57,27 +57,27 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 57 |
from safetensors.torch import load_file
|
| 58 |
|
| 59 |
\# Load tokenizer and model
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
model =
|
| 65 |
-
AutoModelForCausalLM.from_pretrained(\"your-username/minillm-geometry-engine\")
|
| 66 |
|
| 67 |
\# Example prompt
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
inputs = tokenizer(prompt, return_tensors=\"pt\")
|
| 72 |
|
| 73 |
-
outputs = model.generate(
|
| 74 |
|
| 75 |
-
print(tokenizer.decode(outputs
|
|
|
|
| 76 |
|
| 77 |
Install required libraries:
|
| 78 |
-
|
| 79 |
pip install safetensors transformers
|
| 80 |
-
|
| 81 |
## **Training Details**
|
| 82 |
|
| 83 |
- **Dataset**: Custom Geometry CoT dataset with 10,000 geometry problems and solutions
|
|
|
|
| 57 |
from safetensors.torch import load_file
|
| 58 |
|
| 59 |
\# Load tokenizer and model
|
| 60 |
+
```python
|
| 61 |
+
tokenizer = AutoTokenizer.from_pretrained("aryan27/geometry-model-hf")
|
| 62 |
|
| 63 |
+
model = AutoModelForCausalLM.from_pretrained("aryan27/geometry-model-hf")
|
| 64 |
+
```
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
\# Example prompt
|
| 67 |
+
```python
|
| 68 |
+
prompt = "Draw a point A at 3,4"
|
| 69 |
|
| 70 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
outputs = model.generate(*inputs, max_length=200)
|
| 73 |
|
| 74 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 75 |
+
```
|
| 76 |
|
| 77 |
Install required libraries:
|
| 78 |
+
```shell
|
| 79 |
pip install safetensors transformers
|
| 80 |
+
```
|
| 81 |
## **Training Details**
|
| 82 |
|
| 83 |
- **Dataset**: Custom Geometry CoT dataset with 10,000 geometry problems and solutions
|