Update README.md
Browse files
README.md
CHANGED
|
@@ -19,6 +19,7 @@ This is the model card of a Phi-2 model trained on a synthetic data set to solve
|
|
| 19 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 20 |
|
| 21 |
### Direct Use
|
|
|
|
| 22 |
import torch
|
| 23 |
from transformers import AutoModelForCausalLM, BitsAndBytesConfig, set_seed
|
| 24 |
|
|
@@ -26,7 +27,7 @@ from transformers import AutoModelForCausalLM, BitsAndBytesConfig, set_seed
|
|
| 26 |
set_seed(42)
|
| 27 |
|
| 28 |
# Load model
|
| 29 |
-
|
| 30 |
modelpath = "DisgustingOzil/phi-2-riddler"
|
| 31 |
model = AutoModelForCausalLM.from_pretrained(
|
| 32 |
modelpath,
|
|
|
|
| 19 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 20 |
|
| 21 |
### Direct Use
|
| 22 |
+
```python
|
| 23 |
import torch
|
| 24 |
from transformers import AutoModelForCausalLM, BitsAndBytesConfig, set_seed
|
| 25 |
|
|
|
|
| 27 |
set_seed(42)
|
| 28 |
|
| 29 |
# Load model
|
| 30 |
+
|
| 31 |
modelpath = "DisgustingOzil/phi-2-riddler"
|
| 32 |
model = AutoModelForCausalLM.from_pretrained(
|
| 33 |
modelpath,
|