Urgent.News

What's breaking now, across thousands of outlets.

AI

Gemma 4 in Pure JAX: What Ports from TPU to GPU, and What Doesn't

This article is about running a hand-written Gemma 4 port in pure JAX on three different accelerators, and about the two places the abstraction leaks. The code is here: github.com/xbill9/gemma4-dev What is this project trying to Do? This project aims to serve one Gemma 4 checkpoint from one JAX port across every accelerator I can rent, and to find out — by measurement, not by reading docs — which…

This article discusses running a hand-written Gemma 4 port in pure JAX on three different accelerators, and the limitations of JAX when porting the model across devices. The code is available at github.com/xbill9/gemma4-dev. The project aims to test the port across various hardware configurations to determine which parts of JAX are truly portable.

The Gemma 4 model has irregularities such as different attention geometries, MQA (Multi-Query Attention) settings, KV-share mapping, and a 4.70 GB quantized table. These irregularities make the port challenging, as other stacks are not designed to handle them. The project found that JAX handles attention differently compared to other stacks, and it can handle the irregularities without issues.

However, there are two main limitations: the heterogeneous head dimensions and the Pallas kernel's memory model not being portable to GPUs. The article highlights how JAX can handle the irregularities without issues, but there are still limitations when it comes to memory modeling and kernel design.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in AI

Connecting a LINE Official Account to an AI Agent with MCP

LINE published an official MCP server for its Messaging API, which means an AI agent can now drive a LINE Official Account directly — sending messages, broadcasting promotions, and pushing Flex…

  • LINE releases MCP server for AI agents to control Official Accounts
  • MCP server agent-agnostic, works with Codex, Claude Desktop, Cline
  • Verified account needed for certain functions, free account lacks some features

AI Harness: the worst and the best buzzword in the industry

--- title : " AI Harness: the worst and the best buzzword in the industry" published : false tags : [ ai , harness , middleware , finops , aws , bedrock , opensource ] series : " TokenOps on AWS"…

  • AI Harness acts as reverse proxy and transactional middleware for generative AI inference
  • Provides electrical isolation, authentication, encryption, and budget control for LLMs
  • Composable packages (sayay-guard, styrr-llm, tinkuy-agent) enable cost control and per-call budgets

More from Saturday 29 August →