Update app.py
Browse files
app.py
CHANGED
@@ -27,13 +27,13 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
27 |
|
28 |
# model_id = "mistralai/Mistral-7B-v0.3"
|
29 |
|
30 |
-
model_id = "CohereForAI/c4ai-command-r-plus"
|
31 |
|
32 |
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
|
34 |
|
35 |
model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
|
36 |
-
torch_dtype=torch.bfloat16,
|
37 |
attn_implementation="flash_attention_2",
|
38 |
# low_cpu_mem_usage=True,
|
39 |
# llm_int8_enable_fp32_cpu_offload=True,
|
|
|
27 |
|
28 |
# model_id = "mistralai/Mistral-7B-v0.3"
|
29 |
|
30 |
+
model_id = "CohereForAI/c4ai-command-r-plus-4bit"
|
31 |
|
32 |
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
|
34 |
|
35 |
model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
|
36 |
+
# torch_dtype=torch.bfloat16,
|
37 |
attn_implementation="flash_attention_2",
|
38 |
# low_cpu_mem_usage=True,
|
39 |
# llm_int8_enable_fp32_cpu_offload=True,
|