Update README.md
Browse files
README.md
CHANGED
|
@@ -75,9 +75,12 @@ Users (both direct and downstream) should be made aware of the risks, biases and
|
|
| 75 |
Use the code below to get started with the model.
|
| 76 |
|
| 77 |
```markdown
|
| 78 |
-
from transformers import
|
| 79 |
-
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
| 81 |
```
|
| 82 |
|
| 83 |
## Training Details
|
|
|
|
| 75 |
Use the code below to get started with the model.
|
| 76 |
|
| 77 |
```markdown
|
| 78 |
+
from transformers import AutoModelForCausalLM
|
| 79 |
+
from peft import PeftModel
|
| 80 |
+
|
| 81 |
+
base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
|
| 82 |
+
peft_model_id = "fc91/phi3-mini-instruct-full_ethics-lora"
|
| 83 |
+
model = PeftModel.from_pretrained(base_model, peft_model_id)
|
| 84 |
```
|
| 85 |
|
| 86 |
## Training Details
|