Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Holds the measurements and recipes for building an optimized EXL3 quant of Gemma 4 31B-it at any bitrate. For people who quantize models with exllamav3 and want to skip the slow measuring steps.
gemma-4-31b-it-exl3-optimized is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download Dino0040/gemma-4-31b-it-exl3-optimized
This repository is not a ready model. It holds the pipeline outputs from exllamav3's optimized quantization recipes for google/gemma-4-31B-it. With these files you can build an optimized EXL3 quant at an arbitrary bitrate. The slow part, a sensitivity measurement of about an hour that needed roughly 120 GB of VRAM, is already done. A 3.00bpw quant is available on a separate branch for anyone who only wants to test it.
People who quantize large models with exllamav3 and want better bit allocation without redoing the measurements.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Model hosting | Engineers who serve large models | Build a quant at the bitrate that fits their GPU | Making a 3 bit quant that fits a single card |
| Open model community | Quantization hobbyists | Reuse the measurements to try other bitrates | Generating a recipe for a different bits per weight target |
| Research | People who study quantization error | Compare uniform and optimized bit allocation | Reproducing the card's KL divergence comparison |
Skip it if you want a model to chat with right away, or if you have no GPU with more than 20 GB of VRAM for the conversion step.
It works with the exllamav3 project and its scripts. The files download on Windows, macOS or Linux.
| Use case | Who | What they get back |
|---|---|---|
| Custom bitrate quant | Quantizers | A quant made from the recipe at your target bitrate |
| Quick test | Anyone curious | The ready made 3.00bpw quant on its branch |
| Method comparison | Researchers | Numbers comparing uniform and optimized quants |
You need the exllamav3 scripts and the original Gemma weights, plus the files from this repository.
pip install -U huggingface_hub hf download Dino0040/gemma-4-31b-it-exl3-optimized
First make a recipe for your target bitrate, which is nearly instant. Then convert the model with that recipe and the trace as calibration data, which takes an hour or two depending on the GPU.
# 1. Recipe for your target bitrate (basically instant) python sc_optimize.py -m noise_attrib.json -rr rfn_2.00bpw.json -b <bpw> -hb 6 -al 2.0 -mink 2 -ks 0.5 -maxk 4 -o recipe.yaml # 2. Convert with the recipe and the trace as calibration data (>20GB VRAM, An hour or two depending on GPU) python convert.py -i <gemma-4-31B-it> -o <out> -w <work> -rcp recipe.yaml -cd cal_trace.safetensors
| Tool | What it does |
|---|---|
| sc_optimize.py | Builds a recipe for a target bitrate from the measurements |
| convert.py | Converts the model using the recipe and the calibration trace |
| -ks 0.5 | Allows half bit rates, and needs -maxk 4 with it |
| -mink 2 | Keeps every tensor at 2 bits per weight or more |
You pick a target of 3.5 bits per weight, replace the placeholder in the first command and run both steps. You end up with an EXL3 quant of Gemma 4 31B-it made from the optimized recipe.
If you are new to this, a quant is a smaller copy of a model that trades some accuracy for less memory. If you only want to try one, use the 3.00bpw branch and skip the scripts.
If you know the field, the files include a self sampled calibration trace, per tensor sensitivity measurements and error anchors from a 2 bpw probe. The recipe decides how many bits each tensor gets, and the trace is used as calibration data during conversion.
The author describes this as a one evening experiment out of curiosity, run on roughly five dollars of cloud time, and claims no expertise. The figures below are theirs, from a 3.00 bpw test against the bf16 model.
| Quant | Mean KL | Perplexity |
|---|---|---|
| Uniform quant from July | 0.0561 | 1.2497 |
| Optimized recipe | 0.0381 | 1.2276 |
| Recipe plus trace calibration | 0.0301 | 1.2187 |
The card puts the total drop in KL divergence at 46 percent at the same size as the old quant.
Holds the measurements and recipes for building an optimized EXL3 quant of Gemma 4 31B-it at any bitrate. For people who quantize models with exllamav3 and want to skip the slow measuring steps.
Made by Dino0040 on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This repository is not a ready model. It holds the pipeline outputs from exllamav3's optimized quantization recipes for google/gemma-4-31B-it. With these files you can build an optimized EXL3 quant at an arbitrary bitrate. The slow part, a sensitivity measurement of about an hour that needed roughly 120 GB of VRAM, is already done. A 3.00bpw quant is available on a separate branch for anyone who only wants to test it.
Who it suits: People who quantize large models with exllamav3 and want better bit allocation without redoing the measurements.
Industry | Who uses it | How they use it | Example
Model hosting | Engineers who serve large models | Build a quant at the bitrate that fits their GPU | Making a 3 bit quant that fits a single card
Open model community | Quantization hobbyists | Reuse the measurements to try other bitrates | Generating a recipe for a different bits per weight target
Research | People who study quantization error | Compare uniform and optimized bit allocation | Reproducing the card's KL divergence comparison
Skip it if you want a model to chat with right away, or if you have no GPU with more than 20 GB of VRAM for the conversion step.
Where to use it: It works with the exllamav3 project and its scripts. The files download on Windows, macOS or Linux.
Use case | Who | What they get back
Custom bitrate quant | Quantizers | A quant made from the recipe at your target bitrate
Quick test | Anyone curious | The ready made 3.00bpw quant on its branch
Method comparison | Researchers | Numbers comparing uniform and optimized quants
How to set it up: You need the exllamav3 scripts and the original Gemma weights, plus the files from this repository.
pip install -U huggingface_hub
hf download Dino0040/gemma-4-31b-it-exl3-optimized
How to use it: First make a recipe for your target bitrate, which is nearly instant. Then convert the model with that recipe and the trace as calibration data, which takes an hour or two depending on the GPU.
# 1. Recipe for your target bitrate (basically instant)
python sc_optimize.py -m noise_attrib.json -rr rfn_2.00bpw.json -b <bpw> -hb 6 -al 2.0 -mink 2 -ks 0.5 -maxk 4 -o recipe.yaml
# 2. Convert with the recipe and the trace as calibration data (>20GB VRAM, An hour or two depending on GPU)
python convert.py -i <gemma-4-31B-it> -o <out> -w <work> -rcp recipe.yaml -cd cal_trace.safetensors
Tool | What it does
sc_optimize.py | Builds a recipe for a target bitrate from the measurements
convert.py | Converts the model using the recipe and the calibration trace
-ks 0.5 | Allows half bit rates, and needs -maxk 4 with it
-mink 2 | Keeps every tensor at 2 bits per weight or more
Example: You pick a target of 3.5 bits per weight, replace the placeholder in the first command and run both steps. You end up with an EXL3 quant of Gemma 4 31B-it made from the optimized recipe.
For newcomers and experts: If you are new to this, a quant is a smaller copy of a model that trades some accuracy for less memory. If you only want to try one, use the 3.00bpw branch and skip the scripts.
If you know the field, the files include a self sampled calibration trace, per tensor sensitivity measurements and error anchors from a 2 bpw probe. The recipe decides how many bits each tensor gets, and the trace is used as calibration data during conversion.
Sensitivity measured on the full model
Recipe sets bits for each tensor
Convert uses recipe and trace
Optimized EXL3 quant results
Good to know: The author describes this as a one evening experiment out of curiosity, run on roughly five dollars of cloud time, and claims no expertise. The figures below are theirs, from a 3.00 bpw test against the bf16 model.
Title: Card test at 3.00 bpw, lower KL is better
Quant | Mean KL | Perplexity
Uniform quant from July | 0.0561 | 1.2497
Optimized recipe | 0.0381 | 1.2276
Recipe plus trace calibration | 0.0301 | 1.2187
The card puts the total drop in KL divergence at 46 percent at the same size as the old quant.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download Dino0040/gemma-4-31b-it-exl3-optimized
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| gemma-4-31b-it-exl3-optimized This page | 41 | 2 | — | apache-2.0 | |
| DeepSeek-V4.1-Flash-1017 EXL3 EAQ v1 2.9 bpwShares exl3 | 8,113 | 46 | 105B | mit | |
| Qwen3.8-27B-exl3Shares exl3 | 5,032 | 203 | — | apache-2.0 | |
| GLM-5.3-Flash EXL3 4bpw for TensorFoldShares exl3 | 4,746 | 73 | 87.8B | apache-2.0 | |
| DeepSeek-V4.1-Flash-EXL3-3bpw-2x-RTX-PRO-6000Shares exl3 | 2,514 | 42 | 219B | mit | |
| DeepSeek-V4.1-Flash-1017-exl3Shares exl3 | 581 | 30 | — | mit |
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…