SShortSingh.
Back to feed

Gemma 4 Runs 1.79x Faster on Tesla T4 Using QAT Int4 Weights Over bf16

0
·66 views

A developer has published a step-by-step guide for deploying Google's Gemma 4 2B model on a Tesla T4 GPU hosted on a Google Compute Engine VM. Two model checkpoints were benchmarked: the standard bf16 version and a QAT int4-weight variant, using vLLM 0.29.0 on a modest n1-standard-2 instance with 2 vCPUs and 7.8 GB RAM. The QAT model decoded at 72.31 tokens per second in a single stream compared to 40.44 for bf16, and reached 215.91 tokens per second across eight streams versus 164.62. A suite of Python MCP tools was built to manage the deployment pipeline, handling steps such as GPU architecture verification and a required Turing-specific patch. The full setup and source code are available on GitHub, offering a practical reference for running modern LLMs on older, lower-cost GPU hardware.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Spec for Handing Website Chatbot Conversations Off to Human Staff

Many website chatbot projects treat human handoff as an afterthought, even though it is often where leads are won or lost. The recommended approach is to define handoff triggers before coding, covering explicit requests for a person, low retrieval confidence, restricted topics, buying signals, and conversation loops, each tagged with a named reason. Handoffs should collect only essentials such as preferred contact method, consent, and a short problem summary, with consent stored as a timestamped record. The bot should also adjust its messaging to business hours, avoiding promises of quick replies when the team is offline. A versioned JSON contract between the bot and the team's tools, including a transcript link rather than the full transcript, keeps data organized and controlled.

0
ProgrammingDEV Community ·

TypeScript for AI Engineers: Building the Web Layer of AI Apps

Python alone can carry an AI career, but the chat interfaces, dashboards, and prompt tools users see are usually built in TypeScript. The article presents a quick route for Python developers to learn it, ending with a typed, tested, streaming client for a model API. TypeScript adds type annotations to JavaScript, which the compiler checks before the types are stripped to leave plain JavaScript. A common architecture places a server between the browser and the model API so the API key stays off the client. The guide walks through installing Node.js, setting up a project with npm and supporting tools, and configuring a strict tsconfig.json.

0
ProgrammingDEV Community ·

Start Sound Audio on Pointer Down to Avoid Late Playback on Taps

A soundboard's audio must begin within milliseconds of a tap, or users perceive delay, missed taps, or duplicate sounds. The author explains that browsers grant audio permission only during the synchronous turn of a user gesture, so awaiting AudioContext.resume() before calling play() can cause playback to fail or require a second tap. On mobile, the click event often fires late or not at all when a tap is interpreted as a scroll, making it an unreliable trigger. The recommended approach is to listen to earlier events such as pointerdown, with touchend as an option for older browsers, and keep click only as a fallback. The author also provides a small tested JavaScript helper that decides whether a context needs resuming and whether playback should start immediately.