Spaces:
Running on Zero
Running on Zero
A newer version of the Gradio SDK is available: 6.22.0
metadata
title: Zero-GPU Side-by-Side LLM Comparison
emoji: 🤖
sdk: gradio
app_file: app.py
Hugging Face Space: Zero-GPU Side-by-Side LLM Comparison
This Space compares four instruction-tuned models side-by-side in a chat interface:
- Gemma4 31B-IT
- Gemma4 26B-IT
- Qwen 3.6 35B-IT
- Qwen 3.6 27B
The UI is designed for zero local GPU usage. It calls Hugging Face hosted
inference endpoints via huggingface_hub.InferenceClient, so the Space itself only
needs CPU resources.
What is included
app.py: Gradio app with four parallel chat columns.requirements.txt: Runtime dependencies.
Important setup
- Add your Hugging Face token in Space Secrets:
HF_API_TOKEN(orHUGGINGFACE_HUB_TOKENorHF_TOKEN)
- Ensure model IDs in
MODEL_MATRIXare available through the Hugging Face Inference API. - This project is configured to use the fixed best Unsloth checkpoints for each family:
unsloth/gemma-4-31B-it-unsloth-bnb-4bitunsloth/gemma-4-26B-A4B-itunsloth/Qwen3.6-35B-A3B-GGUFunsloth/Qwen3.6-27B-GGUF
Optional customization
- Add more precision variants in each model card inside
MODEL_MATRIX. - Change
MODEL_MATRIXentries to your preferred checkpoints. - If your model requires a different prompt format, edit
_SYSTEM_PROMPTand_build_messagesinapp.py.
Notes
- For private or gated models, confirm your token has access.
- If a checkpoint does not support the chat endpoint, the app tries a text-
- ZeroGPU is the
zero-a10ghardware flavor. In Spaces config, set this at the Space level (the READMEhardware:field is not always respected for creation).