Adding code for loading to readme
Browse files
README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
| 1 |
---
|
| 2 |
license: llama2
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: llama2
|
| 3 |
+
language:
|
| 4 |
+
- nl
|
| 5 |
---
|
| 6 |
+
|
| 7 |
+
```
|
| 8 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 9 |
+
|
| 10 |
+
# take the original llama 2 tokenizer
|
| 11 |
+
tokenizer = AutoTokenizer.from_pretrained('meta-llama/Llama-2-7b-hf')
|
| 12 |
+
|
| 13 |
+
model = AutoModelForCausalLM.from_pretrained('llama-2-nl/Llama-2-7b-hf-lora-original')
|
| 14 |
+
```
|