Update README.md
Browse files
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 |
+
)
|