xbill

Author profile

xbill

CTO and co-founder of Glitnir Ticketing. Google Developer Expert for AI and Cloud, Google Cloud Ambassador and AWS Community Builder.

@xbillNew YorkWebsiteView on DEV

Articles by @xbill

Browse the latest writing surfaced through DevArt.

Gemma 4 E2B in JAX on One TPU v5e: bf16 or 4-Bit, Python or Rust, and How It Stands Against vLLM
#jax#tpu#gemma#rust

Gemma 4 E2B in JAX on One TPU v5e: bf16 or 4-Bit, Python or Rust, and How It Stands Against vLLM

Gemma 4 E2B served three ways on one Cloud TPU v5e chip: a pure-JAX engine in Python, the same graph written in Rust and compiled by the libtpu that JAX loads, and vLLM, all timed by one client. bf16 beats 4-bit in the JAX engine, the Rust engine matches the JAX engine's tokens, and over HTTP it decodes at vLLM's rate with the fastest first token.

xbillxbill10 min read
7 reactions0 commentsRead full article
Train Gemma 4 on Its Own Cut-Short Answers: Half the Tokens on an 8 GB RTX 3050
#gemma#llamacpp#machinelearning#finetuning

Train Gemma 4 on Its Own Cut-Short Answers: Half the Tokens on an 8 GB RTX 3050

llama.cpp's thinking cap trades accuracy for tokens. Fine-tuning Gemma 4 E2B on its own answers sampled under a 64-token cap halves tokens per correct answer on all 1,319 GSM8K test problems, with no cap at inference, for 12 to 33 fewer right answers across four training runs, and matches the accuracy of the best cap with 9.5% to 16.6% fewer tokens.

xbillxbill11 min read
2 reactions0 commentsRead full article
PyTorch on TPU: Hands On With Colab
#pytorch#tpu#gemma#googlecloud

PyTorch on TPU: Hands On With Colab

Five Colab notebooks take Gemma 4 E2B on one v5e chip from 5 tokens per second under Hugging Face generate to 50 with one compiled decode step, and to the full 131,072-token context with a ring cache, against a JAX engine on the same chip.

xbillxbill14 min read
9 reactions1 commentsRead full article
[Boost]
#ai#cloud#opensource#python

[Boost]

Now Open Source: TorchTPU and the TPU Agent Suite for Native PyTorch on Google Cloud TPUs ...

xbillxbill1 min read
0 reactions0 commentsRead full article
Can a QAT 12B Fit an 8 GB GPU? Gemma 4 12B on an RTX 3050
#gemma#llamacpp#cuda#benchmarking

Can a QAT 12B Fit an 8 GB GPU? Gemma 4 12B on an RTX 3050

Yes. An exact Q4_0 rebuild of Google's Gemma 4 12B QAT GGUF runs with every layer on an 8 GB RTX 3050 at up to 40,960 tokens of context, and Google's 12B drafter, rebuilt the same way, doubles its generation speed to 56 tok/s with llama.cpp. A 4-bit context cache stretches the drafter setting to 81,920 tokens at the same answers.

xbillxbill15 min read
8 reactions0 commentsRead full article
xbill developer articles | DevArt