Update app.py
Browse files
app.py
CHANGED
@@ -26,12 +26,12 @@ model_id = "CohereForAI/c4ai-command-r-plus-4bit"
|
|
26 |
|
27 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
|
28 |
|
29 |
-
model = AutoModelForCausalLM.from_pretrained(model_id, token= token, torch_dtype=torch.bfloat16,
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
|
37 |
|
|
|
26 |
|
27 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token= token)
|
28 |
|
29 |
+
# model = AutoModelForCausalLM.from_pretrained(model_id, token= token, torch_dtype=torch.bfloat16,
|
30 |
+
# # attn_implementation="flash_attention_2",
|
31 |
+
# # low_cpu_mem_usage=True,
|
32 |
+
# llm_int8_enable_fp32_cpu_offload=True,
|
33 |
+
# device_map="auto"
|
34 |
+
# )
|
35 |
|
36 |
|
37 |
|