Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ nf4_config = BitsAndBytesConfig(
|
|
19 |
model_id = "CohereForAI/c4ai-command-r-v01"
|
20 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
21 |
model = AutoModelForCausalLM.from_pretrained(model_id,
|
22 |
-
load_in_8bit=True,
|
23 |
-
|
24 |
)
|
25 |
|
26 |
@spaces.GPU
|
|
|
19 |
model_id = "CohereForAI/c4ai-command-r-v01"
|
20 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
21 |
model = AutoModelForCausalLM.from_pretrained(model_id,
|
22 |
+
# load_in_8bit=True,
|
23 |
+
quantization_config=nf4_config
|
24 |
)
|
25 |
|
26 |
@spaces.GPU
|