Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradio-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def load_model(quant: str, status: gr.HTML | None = None):
print(f"[WARN] Liger kernel could not be applied: {e}")
else:
from transformers import BitsAndBytesConfig
if quant == "8bit":
if quant == "int8":
qnt_config = BitsAndBytesConfig(
load_in_8bit=True,
llm_int8_skip_modules=["vision_tower", "multi_modal_projector"], # Transformer's Siglip implementation has bugs when quantized, so skip those.
Expand Down Expand Up @@ -824,4 +824,4 @@ def collate_fn(batch: list[tuple[Path, Image.Image, str, str] | None], *, proces

if __name__ == "__main__":
print_system_info()
demo.launch()
demo.launch()