matthieumeeus97 commited on
Commit
1eb33c4
·
verified ·
1 Parent(s): 78ceada

Adding code for loading to readme

Browse files
Files changed (1) hide show
  1. README.md +11 -0
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
+ ```