In today’s newsletter:
Devs are going crazy over this open-source project!
How to actually read an LLM’s name.
RLHF vs. DPO vs. GRPO in RL.
Devs are going crazy over this open-source project!
Claude Code and Codex each run in a separate terminal session with no shared context, so a developer has to copy the bug report, the diff and the review comments between them by hand.
Devs just open-sourced Switch AI, a self-hosted way to bring both agents into the chat tools your team already uses, like Slack, Teams or Discord, so no one has to carry context between them.
GitHub repo: github.com/sandbox-quantum/switch
(don’t forget to star it 🌟)
In practice, one can ask Claude to fix the bug right where it was reported, then ask Codex to review the branch in the same thread. Each agent reads the report and the other’s replies, and the team can follow every step.
The video below shows this exact demo where order 1015 appeared on both page 1 and page 2.
claude-fixer reproduced it, added regression tests, and fixed the off-by-one error. It then asked codex-reviewer to review the branch in the same thread, and the orders page showed the corrected result.
Both agents were running on our local machine, and we never passed any context between them.
Switch AI is open source, and the agents run on your own machine with your existing logins.
Thanks to Switch for working with us today!
How to actually read an LLM’s name
If you open the file list for Qwen3.8-27B on Hugging Face, you’ll see a 16.6 GB download alongside a 29 GB one.
Both contain the same 27 billion parameters so how can one file be that much smaller?
The first clue is in the name of the smaller file: Qwen3.8-27B-UD-Q4_K_M.gguf
The first part, Qwen3.8-27B, tells you which model you’re getting.
Qwen is the family.
3.8 is the version.
and 27B means roughly 27 billion parameters. Each parameter is a number the model learned during training.
The file size depends on both the number of parameters and how precisely each one is stored.
Some filenames include training and release details, as in Qwen3-4B-Instruct-2507.
The last four digits identify the July 2025 release.
Instructmeans Qwen trained it further to follow requests. If you ask a pretrainedBasemodel to rewrite an email, it might continue the text of your request. An instruction-tuned model has had practice producing the rewrite. Note that publishers can leave that label out at times.
Another Qwen model, Qwen3.8-2.4T-A95B, has two parameter counts in its name.
It’s a mixture of experts (MoE) model. In each expert layer, a router picks 10 of 512 smaller networks, called experts, to process the current token. One shared expert runs on every token. The next token can go through a different set of experts.
That’s where the two numbers come from.
The full model has 2.4 trillion parameters, so
2.4Tis the number to start with when estimating how much space its weights take.About 95 billion parameters are active for a given token. That’s what
A95Btells you, and why it’s the more useful number when thinking about the work per token.
Our two original downloads both say Qwen3.8-27B. Their sizes differ because of what Unsloth did with the weights after Qwen finished training.
Unsloth uses quantization to make the weights take up less space. If a weight can take one of only 16 values, four bits are enough to record which one. The trade-off is that the closest available value can differ a little from the original.
Some weights tolerate that rounding better than others. For one group of weights, a little more rounding might barely change the model’s next-token predictions.
For a more sensitive group, the same amount of rounding can make a different token more likely.
Unsloth accounts for this when it builds the file, keeping extra precision where rounding would do more harm. That’s what UD (Unsloth Dynamic) does. The choice is already baked into the download.
Revisiting the second half of the model name (Qwen3.8-27B-UD-Q4_K_M.gguf):
The
Q4inQ4_K_Mputs this download in the 4-bit family.If you multiply 27 billion weights by four bits and divide by eight, you get about 13.5 GB. So where did the other 3 GB in our 16.6 GB file come from?
Part of the answer is in the
K. With this encoding, llama.cpp stores weights in small groups called blocks. Each block has its own scale, which tells llama.cpp how to turn a four-bit code back into an approximate weight. The 13.5 GB estimate counts only the codes. But the scales take up space too.The last letter explains another part of the difference. Unsloth offers a small version,
UD-Q4_K_S, at 15.4 GB and a medium version,UD-Q4_K_M, at 16.6 GB.Most weights in both files use four-bit codes, but the medium version uses more bits for some of the weights that are sensitive to rounding, so their stored values stay closer to the ones Qwen trained. That’s what the extra 1.2 GB delivers.
The final .gguf tells your software how to read the file. GGUF packages the weights with information a runtime such as llama.cpp needs, including details about the tokenizer. Even a 16-bit model can come in a GGUF file.
If you have 24 GB of available memory, the 29 GB file already exceeds your budget. The 16.6 GB one leaves roughly 7 GB after the weights. Whether that’s enough depends partly on what you want to do with it.
A one-line question and a long code review use the same model weights. The difference is how much of the conversation the model has to keep track of.
As it reads your prompt, its attention layers save KV cache about earlier tokens so they can reuse it when generating the reply. A longer context generally needs a larger cache, and the runtime also needs working memory for its calculations.
If we were choosing between those two Qwen downloads for any long-running task, we’d want to know one more thing, i.e., how quickly would the model generate a reply on our machine?
We do this using Magnitude, which is an open-source inference engine that checks the hardware and recommends models you can run locally.
Just run:
npm i -g @magnitudedev/cli
magnitude setupIt profiles your machine and ranks the models across:
Speed
Accuracy
Intelligence
Memory required
(don’t forget to star 🌟)
RLHF vs. DPO vs. GRPO in RL
RLHF, DPO, and GRPO are often grouped together as variations of the same algorithm.
But they take completely different approaches to teaching a model to behave the way you want, and those differences show up in the training setup, the data you need, and what it costs you at scale.
The visual below summarizes how they work:
Let’s understand this in detail today!
To dive deeper into these topics (with hands-on implementation and understanding actual production tradeoffs), we have already covered every bit of it in the Reinforcement Learning Nanodegree:
RLHF (Reinforcement Learning from Human Feedback) is the simplest formulation, which also went into building ChatGPT.
You sample prompts, run them through the policy, and score the outputs with a reward model. Then you compute advantages, apply a KL penalty to keep the policy close to the reference, and update via PPO.
This requires four live models running simultaneously:
The policy you’re training
A frozen reference copy
A reward model
And a critic.
This means running four sets of forward passes per training step.
At production scale, this is expensive to run and hard to stabilize. And the reward model needs its own human-preference training before any of this can even begin.
DPO (Direct Preference Optimization) provides a better solution.
Instead of training a separate reward model, DPO derives the reward signal implicitly from the policy itself.
It works from preference pairs, a winner and a loser response to the same prompt. It computes log-probability ratios between the current policy and a frozen reference, and uses that ratio as the implicit reward.
This removes the explicit reward model and the critic entirely, bringing the pipeline down to just policy and frozen reference.
The tradeoff is that you need labeled preference pairs upfront. And since there’s no online exploration, DPO can be brittle if the preference data doesn’t cover the failure modes you care about.
GRPO (Group Relative Policy Optimization), introduced by DeepSeek in 2024, takes a different path.
It keeps the RL framing but eliminates the critic by replacing the value baseline with group statistics.
For each prompt, the model generates a group of outputs, and a verifier scores each one. Advantages are then computed from the mean and standard deviation of those scores within the group.
The critic is a key bottleneck in RLHF since it’s slow to converge, adds instability, and requires a regression head on top of the policy.
GRPO removes all of that by using the group itself as the baseline, keeping the RL loop intact but at lower overhead than PPO.
Here’s a useful way to understand all three at once.
RLHF uses external scores and an internal critic to measure advantage.
DPO encodes preference implicitly and skips both.
GRPO generates its own baseline from a group and keeps the RL loop without the critic.
All three produce aligned models, but they differ on how much machinery the alignment requires.
To dive deeper into these topics (with hands-on implementation and understanding actual production tradeoffs), we have already covered every bit of it in the Reinforcement Learning Nanodegree. Start here →
Good day!












