Update README.md
Browse files
README.md
CHANGED
@@ -115,10 +115,12 @@ of the results generated.
|
|
115 |
Use the code below to get started with the model.
|
116 |
|
117 |
```
|
118 |
-
|
119 |
-
|
120 |
-
model = AutoModelForCausalLM.from_pretrained(HUB_MODEL_ID, return_dict=True, load_in_8bit=True, device_map={"":0})
|
121 |
|
|
|
|
|
|
|
122 |
```
|
123 |
|
124 |
## Training Details
|
|
|
115 |
Use the code below to get started with the model.
|
116 |
|
117 |
```
|
118 |
+
from peft import PeftModel, PeftConfig
|
119 |
+
from transformers import AutoModelForCausalLM
|
|
|
120 |
|
121 |
+
config = PeftConfig.from_pretrained("somosnlp/spanish_medica_llm")
|
122 |
+
model = AutoModelForCausalLM.from_pretrained("BioMistral/BioMistral-7B")
|
123 |
+
model = PeftModel.from_pretrained(model, "somosnlp/spanish_medica_llm")
|
124 |
```
|
125 |
|
126 |
## Training Details
|