Gemma-4 26B A4B with vLLM: local setup and tests

Learn how the presenter serves Gemma-4 26B A4B on Ubuntu with vLLM and tests coding and vision using an H100 with 80 GB VRAM.

Player not loading? Watch on YouTube

This tutorial installs Google's gemma-4-26B-A4B-it as a local LLM on Ubuntu, using an NVIDIA H100 with 80 GB of VRAM. The presenter explains its mixture-of-experts design as 26 billion total parameters with roughly 4 billion active per inference pass. That active parameter count does not describe the memory needed to load the full model.

The setup uses a virtual environment, vLLM, Transformers and Hugging Face Hub. After authentication with a read token, the presenter downloads the weights and serves them through an OpenAI-compatible endpoint on port 8000. The configuration enables automatic tool calling and sets GPU memory utilization to 90%. He discusses increasing the context setting from about 16K to 32K, then opens the model in Open WebUI.

Tests include an Australian mortgage question, a JavaScript snake-and-rat simulation and multilingual food descriptions. The presenter reports that the simulation works, but shortens the multilingual prompt after the initial response. These examples illustrate his assessment rather than establish benchmark results.

Vision testing exposes an Open WebUI compatibility problem that he says a source installation resolves. The model reads a clock as 10:45; he interprets it as 8:10. Further examples cover road markings, Arabic and French OCR, and handwritten physics equations. He states that this model lacks audio support and processes video as images.