Update README.md
Browse files
README.md
CHANGED
|
@@ -59,20 +59,15 @@ The model is intended for:
|
|
| 59 |
Use the code below to get started with the model.
|
| 60 |
|
| 61 |
```python
|
| 62 |
-
from huggingface_hub import login
|
| 63 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 64 |
-
from peft import PeftModel
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 69 |
-
|
| 70 |
-
"
|
| 71 |
-
device_map={"": 0}
|
| 72 |
)
|
| 73 |
|
| 74 |
-
model = PeftModel.from_pretrained(base_model,"khazarai/Math-RL")
|
| 75 |
-
|
| 76 |
question = """
|
| 77 |
Translate the graph of the function $y=\sin 2x$ along the $x$-axis to the left by $\dfrac{\pi }{6}$ units, and stretch the ordinate to twice its original length (the abscissa remains unchanged) to obtain the graph of the function $y=f(x)$. If the minimum value of the function $y=f(x)+a$ on the interval $\left[ 0,\dfrac{\pi }{2} \right]$ is $\sqrt{3}$, then $a=\boxed{\_\_\_\_\_}$.
|
| 78 |
"""
|
|
|
|
| 59 |
Use the code below to get started with the model.
|
| 60 |
|
| 61 |
```python
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 64 |
|
| 65 |
+
tokenizer = AutoTokenizer.from_pretrained("khazarai/Math-RL")
|
| 66 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 67 |
+
"khazarai/Math-RL",
|
| 68 |
+
device_map={"": 0}
|
| 69 |
)
|
| 70 |
|
|
|
|
|
|
|
| 71 |
question = """
|
| 72 |
Translate the graph of the function $y=\sin 2x$ along the $x$-axis to the left by $\dfrac{\pi }{6}$ units, and stretch the ordinate to twice its original length (the abscissa remains unchanged) to obtain the graph of the function $y=f(x)$. If the minimum value of the function $y=f(x)+a$ on the interval $\left[ 0,\dfrac{\pi }{2} \right]$ is $\sqrt{3}$, then $a=\boxed{\_\_\_\_\_}$.
|
| 73 |
"""
|