Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,13 @@ from huggingface_hub import login
|
|
9 |
login('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')
|
10 |
|
11 |
# Model name in Hugging Face docs
|
12 |
-
model =
|
13 |
-
|
|
|
14 |
|
15 |
-
tokenizer = AutoTokenizer.from_pretrained(model, use_auth_token=True)
|
16 |
|
|
|
|
|
17 |
|
18 |
llama_pipeline = pipeline(
|
19 |
"text-generation", # LLM task
|
|
|
9 |
login('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')
|
10 |
|
11 |
# Model name in Hugging Face docs
|
12 |
+
model = 'klyang/MentaLLaMA-chat-7B'
|
13 |
+
|
14 |
+
#"meta-llama/Llama-2-7b-chat-hf"
|
15 |
|
|
|
16 |
|
17 |
+
tokenizer = AutoTokenizer.from_pretrained(model, use_auth_token=True)
|
18 |
+
#llama_pipeline = AutoModelForCausalLM.from_pretrained(model)
|
19 |
|
20 |
llama_pipeline = pipeline(
|
21 |
"text-generation", # LLM task
|