xap commited on
Commit
0eb6cb2
1 Parent(s): 31c1542

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -27,3 +27,16 @@ This is the model card of a Meta-Llama3-8B-Instruct-assessment model that has be
27
  ## How to Get Started with the Model
28
 
29
  The dataset or input for this model should be in the alpaca format.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ## How to Get Started with the Model
28
 
29
  The dataset or input for this model should be in the alpaca format.
30
+
31
+ ```
32
+ from transformers import AutoTokenizer, AutoModelForCausalLM
33
+
34
+ tokenizer = AutoTokenizer.from_pretrained("xap/Meta-Llama3-8B-Instruct-assessment")
35
+ base_model = AutoModelForCausalLM.from_pretrained("xap/Meta-Llama3-8B-Instruct-assessment")
36
+
37
+ lora_config = LoraConfig.from_pretrained("xap/Meta-Llama3-8B-Instruct-assessment")
38
+ model = PeftModel.from_pretrained(
39
+ base_model,
40
+ "xap/Meta-Llama3-8B-Instruct-assessment",
41
+ lora_config=lora_config,
42
+ )