borreplata commited on
Commit
94ace2e
·
verified ·
1 Parent(s): 7e8c045

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -0
main.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Load model directly
2
+ from transformers import AutoTokenizer, AutoModelForCausalLM
3
+
4
+ tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B")
5
+ model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B")