Transformers
Safetensors
fc91 commited on
Commit
812e61b
·
verified ·
1 Parent(s): 0620311

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -3
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 AutoModel
79
- model = AutoModel.from_pretrained("fc91/phi3-mini-instruct-full_ethics-lora")
80
- tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
 
 
 
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