Spaces:
Sleeping
Sleeping
Update my_model/KBVQA.py
Browse files- my_model/KBVQA.py +5 -5
my_model/KBVQA.py
CHANGED
|
@@ -24,11 +24,11 @@ class KBVQA():
|
|
| 24 |
|
| 25 |
|
| 26 |
def create_bnb_config(self) -> BitsAndBytesConfig:
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
if self.quantization == '4bit':
|
| 33 |
return BitsAndBytesConfig(
|
| 34 |
load_in_4bit=True,
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
def create_bnb_config(self) -> BitsAndBytesConfig:
|
| 27 |
+
"""
|
| 28 |
+
Creates a BitsAndBytes configuration based on the quantization setting.
|
| 29 |
+
Returns:
|
| 30 |
+
BitsAndBytesConfig: Configuration for BitsAndBytes optimized model.
|
| 31 |
+
"""
|
| 32 |
if self.quantization == '4bit':
|
| 33 |
return BitsAndBytesConfig(
|
| 34 |
load_in_4bit=True,
|