Kamaranis commited on
Commit
8e3614e
·
verified ·
1 Parent(s): 34aefc8

The first deployment

Files changed (1) hide show
  1. app +10 -0
app ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3-8B")
5
+
6
+ # Load model directly
7
+ from transformers import AutoTokenizer, AutoModelForCausalLM
8
+
9
+ tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B")
10
+ model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B")