Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ def load_model():
|
|
| 26 |
bnb_4bit_use_double_quant=True,
|
| 27 |
bnb_4bit_quant_type="nf4",
|
| 28 |
# bfloat16 is recommended for Llama models on modern GPUs (A100, V100, T4)
|
| 29 |
-
bnb_4bit_compute_dtype=torch.bfloat16
|
|
|
|
| 30 |
)
|
| 31 |
|
| 32 |
# Load the base model (ensure trust_remote_code=True for custom Llama models)
|
|
|
|
| 26 |
bnb_4bit_use_double_quant=True,
|
| 27 |
bnb_4bit_quant_type="nf4",
|
| 28 |
# bfloat16 is recommended for Llama models on modern GPUs (A100, V100, T4)
|
| 29 |
+
bnb_4bit_compute_dtype=torch.bfloat16,
|
| 30 |
+
llm_int8_enable_fp32_cpu_offload=True
|
| 31 |
)
|
| 32 |
|
| 33 |
# Load the base model (ensure trust_remote_code=True for custom Llama models)
|