Add code to load the model
Browse files
README.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1 |
---
|
2 |
license: llama2
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: llama2
|
3 |
+
language:
|
4 |
+
- nl
|
5 |
---
|
6 |
+
|
7 |
+
## LLaMA-2-NL: Fine-tuned using LoRa and a translated tokenizer
|
8 |
+
|
9 |
+
```
|
10 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
11 |
+
|
12 |
+
# take the new tokenizer
|
13 |
+
tokenizer = AutoTokenizer.from_pretrained('llama-2-nl/Llama-2-7b-hf-lora-tokentrans')
|
14 |
+
model = AutoModelForCausalLM.from_pretrained('llama-2-nl/Llama-2-7b-hf-lora-tokentrans')
|
15 |
+
```
|