inoid commited on
Commit
2c7b003
1 Parent(s): 6004978

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
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
- HUB_MODEL_ID = '/somosnlp/spanish_medica_llm'
119
- config = PeftConfig.from_pretrained(HUB_MODEL_ID)
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