jxxlzsxcr commited on
Commit
ecbb884
1 Parent(s): 6193833

Create init_load.py

Browse files
Files changed (1) hide show
  1. init_load.py +5 -0
init_load.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Load model directly
2
+ from transformers import AutoTokenizer, AutoModelForCausalLM
3
+
4
+ tokenizer = AutoTokenizer.from_pretrained("codefuse-ai/CodeFuse-CodeLlama-34B")
5
+ model = AutoModelForCausalLM.from_pretrained("codefuse-ai/CodeFuse-CodeLlama-34B")