Misti-sage commited on
Commit
03c7108
1 Parent(s): 19de70c

Create load_mode.py

Browse files
Files changed (1) hide show
  1. load_mode.py +5 -0
load_mode.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import AutoTokenizer, AutoModelForCausalLM
2
+
3
+ # Load model directly
4
+ tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3.5-mini-instruct", trust_remote_code=True)
5
+ model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3.5-mini-instruct", trust_remote_code=True)