dynamodenis254 commited on
Commit
8ea470f
·
verified ·
1 Parent(s): 7b70643

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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)