A hands-on workshop for platform, infrastructure, MLOps and SRE engineers who have been asked to run an open model on hardware the company already owns, and need to know what they lose when they make it smaller.
Serving an open model is mostly a memory problem. An 8 billion parameter model needs 32 GB at full precision, 16 GB at 16 bits, 8 GB at 8 bits and 4 GB at 4 bits. Quantisation, storing every number in the model with fewer bits, is the lever that decides whether it fits a 24 GB card, a laptop, or nothing you own. Model pages now list Q4, Q8 and fp16 side by side, and serving stacks expose it as a single flag. What nobody ships with it is a way to tell whether the smaller model still works.
This workshop is about finding that out deliberately, before your users do.
Slides: https://docs.google.com/presentation/d/1F7SkX8qpZsixJ8JTvNTs-EJz6tvrVbKEpjIY5g4OoOk/edit?usp=sharing
This workshop will help engineers understand what quantisation actually does to a model, where it breaks, and how to measure the damage instead of assuming it.
Participants learn quantisation from first principles as rounding to a grid: q = round(w / s) to store a weight, and ŵ = q × s to get it back. Everything else follows from how the step size s is chosen. The workshop covers how to read a weight distribution and predict whether a precision will hold, how to fix the three most common failures, and how to build an evaluation that catches a model which has quietly stopped working.
Participants work in one Google Colab notebook on the free tier with a T4 GPU, using a small open model (Qwen3 0.6B). They write the quantiser themselves in about twenty lines of PyTorch, then use it on the real model.
Link: https://colab.research.google.com/drive/1R_wJOs2tLKhuLClrOJc2oVYw1or2myDz?usp=sharing
Through this setup, participants will examine:
- Memory against accuracy: how much memory each bit saves, and where the accuracy cliff sits for this model.
- Small weights: what happens to a wide layer when the grid is too coarse for its weights.
- Outliers: what one very large weight does to the precision of every other weight, and why clipping it can break a model even at 16 bits.
- Silent failure: whether a benchmark score can tell a cautious model from a dead one.
- Before and after: memory, perplexity, ARC-Easy and the BFCL wagon wheel for the same model at 16, 8, 6, 5 and 4 bits.
- Platform and infrastructure engineers asked to serve an open model on-prem or on a fixed budget, who need it to fit the hardware they already have.
- MLOps, SRE and serving engineers who own the inference stack, the rollout and the rollback. A precision change alters the model without changing its version number.
- Anyone looking at Q4_K_M, Q8_0 and fp16 on the same model page with no way to choose between them.
Basic Python, and having opened a notebook before, is assumed. No machine learning or quantisation background is needed.
By the end of the workshop, participants will be able to:
- Explain quantisation as rounding to a grid, and choose a step size for a given set of weights.
- Quantise an open model to 8, 6 and 4 bits and measure memory, perplexity, ARC-Easy and tool calling at each.
- Read a weight distribution and predict whether a precision will hold, before paying for an evaluation run.
- Diagnose and fix the three common failures: weights rounding to zero, outliers that stretch the grid, and a score that hides a broken model.
- Build an evaluation that pairs a capability score with a liveness check, and use it as a go or no-go gate for a precision change.
- Take a table of memory, score and call rate for their own model to whoever owns the GPU budget.
Each experiment starts with a prediction written down before anything runs, and ends with a measured result.
We quantise the model to 16, 8, 6 and 4 bits with the quantiser built in the first block. The expectation: 8 bits costs almost nothing, and below that small models fall off first. We find out whether that holds.
We measure: memory, WikiText perplexity, ARC-Easy (60 questions) and tool calling on the BFCL wagon wheel at each precision. The wheel has nine spokes from the Berkeley Function Calling Leaderboard: Irrelevance, and Simple, Multiple, Parallel and Parallel Multiple, each as AST and as Exec. We take 12 samples from each, and every setting gets its own wheel. (The Exec spokes are matched against the correct call rather than executed.) Speed does not change when we simulate a smaller model. Real speed comes from runtimes that store and multiply the small integers directly.
For reference, Qwen3 0.6B in the notebook with one scale per row (BFCL average out of 100, ARC-Easy percentage, perplexity):
- 16 bits (the original): BFCL 79, ARC 62, perplexity 28.4
- 8 bits: BFCL 78, ARC 62, perplexity 28.7
- 6 bits: BFCL 74, ARC 57, perplexity 29.7
- 5 bits: BFCL 59, ARC 63, perplexity 31.1
- 4 bits: BFCL 11, ARC 48, perplexity 58.1
The cliff for this model sits between 6 and 5 bits, and ARC and perplexity barely show it. With a different way of choosing the step size it moves a long way: 8 bits with one scale per tensor already drops BFCL from 79 to 68.
We quantise a wide layer at 3 bits on a fixed grid. Wide layers have small weights, and every one of them lands in the bucket that rounds to zero. It looks like too few bits. The cause is where the grid sits.
We measure: the fraction of weights that became zero, before and after fitting the grid to the weights.
A few weights sit about 20 to 40 times further from zero than a typical weight, and they are among the most important in the layer. With one scale for the whole tensor, the largest weight sets the step size for every other weight. The tempting fix is to clip them. Clipping the top 0.01% of weights left ARC-Easy at 62 but cut the BFCL average from 79 to 36, even at 16 bits, where precision is plainly not the problem.
We find which layers hold the outliers, then give every row its own scale, so one big weight only stretches the grid for its own row.
We measure: perplexity, ARC-Easy and the wagon wheel before and after, with one scale per tensor against one per row.
We compress too far and look at the wheel. At 4 bits the model in the notebook scores 100 on Irrelevance and 0 on every other spoke. Irrelevance only asks whether the model called nothing, so a model that has stopped calling tools passes every case for free, and that 100 props the average up.
We measure: score and call rate side by side, and build the check that refuses to ship a model when either one drops.
- 0:00 Setup check, and why memory decides what you can serve (20 min)
- 0:20 Build the quantiser, about twenty lines (35 min)
- 0:55 Shrink a real model and measure it (30 min)
- 1:25 Break (15 min)
- 1:40 The three breaks, on purpose (45 min)
- 2:25 Diagnose from the weights (30 min)
- 2:55 Build the eval, score before and after (35 min)
The last block doubles as overflow. If earlier blocks run long, the eval is demonstrated instead of built together.
Joining late or falling behind: each block opens with a one minute recap, and the instructor and volunteers help anyone who needs to catch up.
- Memory against accuracy. Each bit removed saves about 12% of weight memory. The first few are free, the last few are not, and where the cliff sits depends on the model.
- Quantise after training, or retrain. Quantising a trained model takes minutes and needs no data. Training with quantisation in the loop buys one or two more bits and costs a training run.
- One scale or many. A scale per tensor is the cheapest, but one large weight sets the step for the whole layer. A scale per row costs well under 1% more memory and, in our run, kept 8 and 6 bit models working where a per-tensor scale did not.
- Cheap checks against full benchmarks. Perplexity and ARC-Easy cost a small fraction of a tool-calling run and catch gross failures. At 5 bits perplexity moved by three points and ARC-Easy did not move, while the BFCL average fell from 79 to 59, because neither can tell you the output has stopped being a valid tool call.
- A cost model for your own stack. Memory and score at each precision for the model you actually serve, which turns a GPU purchase argument into a table.
- A go or no-go rule. Inspect a checkpoint and predict whether a precision will hold, before paying for an evaluation sweep.
- An eval that catches silence. A capability metric with a liveness metric beside it, useful for anything on your platform that can fail by going quiet.
- Fewer vendor numbers. Open weights and open tooling on hardware you own, with figures you measured yourself.
In the final minutes, participants point the notebook at a model their own team serves and leave with its numbers.
Bring
- A laptop with a browser, a Google account for Colab, and hopefully stable wifi
Provisioned in the notebook
- Python 3.10 or newer, PyTorch, Hugging Face Transformers, NumPy, Matplotlib
- The model checkpoint and three small datasets (BFCL, ARC-Easy, WikiText-2), downloaded in the setup cell
The notebook uses the free Colab T4 GPU (Runtime, Change runtime type, T4 GPU). No paid cloud account and nothing to install.
The slides include a short primer on what a weight is, what a token is, and why a model that fits in memory is cheaper to serve. No maths beyond division. The notebook stays public afterwards.
Alosh Denny is an AI engineer and researcher from Kerala. He heads AI at Aleddo Technologies and runs LLMOps at Intensors, and previously built agentic security systems at Discern Security and Malayalam language models at Eduport. Over the past year he has run close to 900 training and quantisation experiments on how few bits a language model needs, and he designs open source AI accelerator hardware. He has seven peer reviewed publications across IEEE and Springer, and has spoken at IndiaFOSS and GHCI.
This workshop is open to Rootconf members: https://hasgeek.com/rootconf#memberships and ticket holders of Rootconf 2026 Annual Conference: https://hasgeek.com/rootconf/2026/#tickets
The workshop is open to 30 in-person participants, with hybrid access available for remote attendees. Seats for in-person participants will be available on a first-come, first-served basis.
For inquiries about the workshop, contact +91-7676332020 or write to info@hasgeek.com