rphrp1985 commited on
Commit
29e7041
1 Parent(s): 248818c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
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("CohereForAI/c4ai-command-r-plus-4bit", token= token)
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)