Spaces:
Restarting
on
Zero
Restarting
on
Zero
Daemontatox
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -98,9 +98,9 @@ h3 {
|
|
98 |
def initialize_model():
|
99 |
"""Initialize the model with appropriate configurations"""
|
100 |
quantization_config = BitsAndBytesConfig(
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
)
|
105 |
|
106 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|
|
|
98 |
def initialize_model():
|
99 |
"""Initialize the model with appropriate configurations"""
|
100 |
quantization_config = BitsAndBytesConfig(
|
101 |
+
load_in_8bit=True,
|
102 |
+
bnb_8bit_compute_dtype=torch.bfloat16,
|
103 |
+
bnb_8bit_use_double_quant=True
|
104 |
)
|
105 |
|
106 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
|