Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,17 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
24 |
from airllm import AirLLMLlama2
|
25 |
|
26 |
MAX_LENGTH = 128
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
# could use hugging face model repo id:
|
28 |
-
model = AirLLMLlama2("
|
29 |
|
30 |
|
31 |
# tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
|
|
|
24 |
from airllm import AirLLMLlama2
|
25 |
|
26 |
MAX_LENGTH = 128
|
27 |
+
|
28 |
+
|
29 |
+
hf_hub_download(
|
30 |
+
repo_id="CohereForAI/c4ai-command-r-plus-4bit",
|
31 |
+
# filename="Meta-Llama-3-70B-Instruct-Q3_K_M.gguf",
|
32 |
+
local_dir = "./models",
|
33 |
+
token= token
|
34 |
+
)
|
35 |
+
|
36 |
# could use hugging face model repo id:
|
37 |
+
model = AirLLMLlama2("./models", )
|
38 |
|
39 |
|
40 |
# tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
|