Persoft News venerdì 4 dicembre 2026Friday, December 4, 2026
persoft.it

di Alessandro Patassini · · 3 min

RicercaResearch·Stati Uniti·IA

Cache KV a 4 bit su GPU Hopper senza hardware FP4: un kernel batte l'FP8 fino a 1,48 volte4-bit KV cache on Hopper GPUs without FP4 hardware: a kernel beats FP8 by up to 1.48 times

Un kernel di Jian Zhang decodifica la cache KV a 4 bit su H200, che non ha FP4 nativo. È da 1,10 a 1,48 volte più veloce dei kernel FP8 ottimizzati, e porta 1,63 volte più token in cache. Ma a 120K token perde circa 15 punti.

A kernel by Jian Zhang decodes the 4-bit KV cache on H200, which has no native FP4. It is from 1.10 to 1.48 times faster than optimised FP8 kernels, and holds 1.63 times more tokens in cache. But at 120K tokens it loses about 15 points.

Illustrazione generata con IAAI-generated illustration

Le GPU Hopper (H100 e H200) non hanno unità FP4 native. Le implementazioni di cache chiave-valore a 4 bit con NVFP4 in vLLM sfruttano solo tra il 10 e il 19% della banda di memoria dell'H200. Il motivo è che estrarre i valori dai byte supera il budget di circa 7 istruzioni per byte. Jian Zhang (Northeastern University) propone un kernel che sovrappone decodifica e caricamento. Il kernel usa una disposizione della cache studiata per restare dentro quel budget.

Sui kernel il risultato è da 1,10 a 1,48 volte più veloce di XQA e FlashAttention-4 in FP8, su 11 forme. Con Llama-3.1-8B su H200 in vLLM, i passi di decodifica sono da 1,12 a 1,64 volte più rapidi dell'FP8 con batch da 8 in su. La capacità della cache sale di 1,63 volte, con perdite di accuratezza entro circa 3,5 punti rispetto a BF16. Ma a 120K token si perdono circa 15 punti, e il metodo è limitato a dimensione di testa 128.

Hopper GPUs (H100 and H200) have no native FP4 units. Implementations of the 4-bit key-value cache with NVFP4 in vLLM use only between 10% and 19% of the H200's memory bandwidth. The reason is that extracting values from bytes exceeds the budget of about 7 instructions per byte. Jian Zhang (Northeastern University) proposes a kernel that overlaps decoding and loading. The kernel uses a cache layout designed to stay within that budget.

On kernels the result is from 1.10 to 1.48 times faster than XQA and FlashAttention-4 in FP8, across 11 shapes. With Llama-3.1-8B on H200 in vLLM, decode steps are from 1.12 to 1.64 times faster than FP8 at batch sizes of 8 and above. Cache capacity rises 1.63 times, with accuracy losses within about 3.5 points against BF16. But at 120K tokens about 15 points are lost, and the method is limited to head dimension 128.

Il 23 novembre 2026 Jian Zhang, della Northeastern University, ha presentato su arXiv un lavoro (2611.30027, versione rivista il 29 novembre). Si intitola «Fast 4-bit KV-Cache Decoding on Hopper GPUs Without FP4 Hardware». È stato segnalato il 2 dicembre dai Daily Papers di Hugging Face. L'oggetto è la cache chiave-valore (KV), la memoria di lavoro in cui il modello conserva i calcoli sui token già letti. Durante la decodifica deve essere riletta a ogni token, e per i contesti lunghi diventa la voce di memoria e di banda più pesante.

Ridurre la cache da 8 a 4 bit dovrebbe dimezzare la memoria e la banda necessarie. Sulle GPU Hopper, però, non esiste un'unità di calcolo FP4 nativa. L'autore osserva che le implementazioni attuali di vLLM con NVFP4 raggiungono solo tra il 10 e il 19% della banda di memoria dell'H200. I valori a 4 bit devono essere estratti dai byte e convertiti prima del calcolo. Questa operazione supera il budget di istruzioni disponibile, circa 7 per byte, e trasforma il collo di bottiglia da memoria a calcolo.

La soluzione ha due elementi. Il primo è sovrapporre nel tempo decodifica e caricamento dei dati, in modo che la GPU converta un blocco mentre carica il successivo. Il secondo è una disposizione della cache progettata per rendere economica l'estrazione, insieme a operandi scambiati per piccoli gruppi di query. Così si resta entro il budget di istruzioni. I valori a 4 bit possono anche essere eseguiti sui tensor core FP8, con una velocità da 1,22 a 1,76 volte superiore.

I risultati del kernel sono misurati su 11 forme. Risulta da 1,10 a 1,48 volte più veloce dei kernel FP8 ottimizzati, XQA di TensorRT-LLM e FlashAttention-4. Integrato in vLLM, con Llama-3.1-8B su una H200, i passi di decodifica risultano da 1,12 a 1,64 volte più rapidi dell'FP8. Questo vale per batch da 8 in su. La capacità in token della cache aumenta di 1,63 volte. Un singolo H200 ha assorbito una frequenza di richieste da 1,23 a 2,20 volte quella dell'FP8 in raffiche di 600 secondi.

Sull'accuratezza l'autore riporta perdite entro circa 3,5 punti rispetto alla cache BF16 nella maggior parte dei modelli provati. I dati di calibrazione sono disponibili per dieci modelli. Alcuni modelli Qwen2 richiedono di tenere in BF16 il livello 0 per la stabilità.

I limiti sono dichiarati in modo esplicito. Il kernel funziona solo per dimensione di testa pari a 128, ed è legato a una specifica versione di vLLM. A 120.000 token di contesto la perdita rispetto a BF16 arriva a circa 15 punti. Quindi il metodo è adatto soprattutto a contesti brevi o medi. Inoltre i guadagni da 1,23 a 2,20 volte sul tasso di richieste sono misurati in raffiche di 600 secondi, partendo da una cache vuota. Non sono tassi sostenuti.

Il lavoro è utile perché riguarda hardware già molto diffuso. Con la cache a 4 bit si servono più richieste, o contesti più lunghi, sulle H100 e H200 esistenti, senza attendere le GPU con FP4 nativo. Il codice è disponibile con licenza Apache-2.0 e si installa come pacchetto Python (kv4-hopper). Servono però verifiche indipendenti, soprattutto sui contesti lunghi.

On 23 November 2026, Jian Zhang, of Northeastern University, posted a paper on arXiv (2611.30027, revised on 29 November). It is titled 'Fast 4-bit KV-Cache Decoding on Hopper GPUs Without FP4 Hardware'. It was featured on 2 December by Hugging Face's Daily Papers. The subject is the key-value (KV) cache, the working memory in which the model keeps its computations on tokens already read. During decoding it must be re-read for every token, and for long contexts it becomes the heaviest item of memory and bandwidth.

Reducing the cache from 8 to 4 bits should halve the memory and bandwidth needed. On Hopper GPUs, however, no native FP4 compute unit exists. The author observes that current vLLM implementations with NVFP4 reach only between 10% and 19% of the H200's memory bandwidth. The 4-bit values must be extracted from bytes and converted before computation. This operation exceeds the available instruction budget, about 7 per byte, and turns the bottleneck from memory to compute.

The solution has two elements. The first is to overlap data decoding and loading in time, so the GPU converts one block while loading the next. The second is a cache layout designed to make extraction cheap, together with swapped operands for small query groups. In this way the instruction budget is respected. The 4-bit values can also be run on FP8 tensor cores, with a speed from 1.22 to 1.76 times higher.

The kernel results are measured on 11 shapes: from 1.10 to 1.48 times faster than optimised FP8 kernels, TensorRT-LLM's XQA and FlashAttention-4. Integrated into vLLM, with Llama-3.1-8B on an H200, decode steps are from 1.12 to 1.64 times faster than FP8. This holds for batch sizes of 8 and above. The cache's token capacity grows 1.63 times. A single H200 absorbed a request rate from 1.23 to 2.20 times that of FP8 in 600-second bursts.

On accuracy the author reports losses within about 3.5 points against the BF16 cache in most models tried. Calibration data is available for ten models. Some Qwen2 models require layer 0 to be kept in BF16 for stability.

The limits are stated explicitly. The kernel works only for head dimension 128, and is tied to a specific vLLM version. At 120,000 tokens of context the loss against BF16 reaches about 15 points, so the method suits mainly short or medium contexts. Also, the gains from 1.23 to 2.20 times in request rate are measured in 600-second bursts starting from an empty cache. They are not sustained rates.

The work is useful because it concerns widely deployed hardware. With the 4-bit cache, more requests or longer contexts can be served on existing H100 and H200, without waiting for GPUs with native FP4. The code is available under the Apache-2.0 licence and installs as a Python package (kv4-hopper). Independent verification is needed, however, especially on long contexts.

Fonti

Articoli rivisti con l’intelligenza artificiale. A cura di Alessandro Patassini.Articles reviewed with artificial intelligence. Edited by Alessandro Patassini.

  • cache KV
  • quantizzazione a 4 bit
  • GPU Hopper
  • H200
  • vLLM
  • decodifica
  • NVFP4
  • arXiv
  • KV cache
  • 4-bit quantization
  • Hopper GPUs
  • decoding

Nella stessa edizione

Modelli AIAI models·Las Vegas, Stati Uniti·IA

Amazon ha presentato Ergo, un modello a miscela di esperti con 1,1 trilioni di parametri e 55 miliardi attivi. Uso commerciale consentito, ma i rivenditori sopra i 20 milioni di dollari di ricavi lordi devono firmare un accordo scritto.

Amazon has unveiled Ergo, a mixture-of-experts model with 1.1 trillion parameters and 55 billion active. Commercial use is allowed, but resellers above $20 million in gross revenue need a written agreement.

Modelli AIAI models·San Francisco, Stati Uniti·IA

Il 30 novembre Dario Amodei ha pubblicato un saggio. Pretraining del prossimo modello rinviato da novembre a gennaio, oltre 100 tecnici spostati sulla sicurezza. Cinque principi legislativi, tra cui un'attesa da 60 a 90 giorni per l'auto-miglioramento ricorsivo.

On 30 November Dario Amodei published an essay. Pretraining of the next model is pushed from November to January, and over 100 staff move to safety. He proposes five legislative principles, including a wait from 60 to 90 days for recursive self-improvement.

StepFun presenta Step 5, un modello a miscela di esperti da 600 miliardi di parametri (27 attivi), con contesto da un milione di token. Ottiene 40 punti su Artificial Analysis, e il costo per compito scende del 36%.

StepFun unveils Step 5, a mixture-of-experts model with 600 billion parameters (27 billion active) and a one-million-token context. It scores 40 on Artificial Analysis, and cost per task is down 36%.

Il laboratorio Xingchen AGI di China Telecom pubblica Xing4.1-Preview. Ha 285 miliardi di parametri (17 attivi) e un contesto da un milione di token. È stato addestrato su 8.192 chip Ascend 910C, senza GPU Nvidia.

China Telecom's Xingchen AGI lab publishes Xing4.1-Preview. It has 285 billion parameters (17 billion active) and a one-million-token context. It was trained on 8,192 Ascend 910C chips, with no Nvidia GPUs.

Finanza AIAI finance·San Francisco, Stati Uniti·IA

Secondo il Financial Times, OpenAI cerca ora 20 miliardi di dollari a una valutazione di 1.250 miliardi, contro i 30 miliardi a 1.400 miliardi iniziali. La perdita operativa dell'ultimo trimestre è di 13,5 miliardi. Nessuna conferma ufficiale.

The Financial Times reports OpenAI now seeks $20 billion at a $1.25 trillion valuation, against $30 billion at $1.4 trillion initially. Operating loss in the latest quarter is $13.5 billion. No official confirmation.

RicercaResearch·Stati Uniti·IA

Anthropic ha pubblicato su GitHub quattro articoli trovati da un modello Claude interno, con 132 enunciati principali formalizzati in Lean 4. Il primo risolve il Module-LWE in tempo quasi-polinomiale su un computer quantistico. Non è un attacco pratico.

Anthropic has published on GitHub four papers found by an internal Claude model, with 132 main statements formalized in Lean 4. The first solves Module-LWE in quasi-polynomial time on a quantum computer. It is not a practical attack.

RicercaResearch·Regno Unito·IA

CellGemma, modello aperto di DeepMind basato su Gemma 4, usa quasi 20.000 token-gene e 564 milioni di stati cellulari per prevedere l'effetto di farmaci. Ha individuato composti che rendono vulnerabili tumori resistenti alle CAR-T.

CellGemma, an open DeepMind model built on Gemma 4, uses nearly 20,000 gene tokens and 564 million cell states to predict drug effects. It found compounds that make tumours resistant to CAR-T vulnerable.

Nvidia ha presentato con SpaceX una piattaforma di calcolo spaziale: 72 GPU Rubin e 36 CPU Vera per sistema, a energia solare e resistente alle radiazioni. Disponibile nel 2027. I finanziatori di SpaceX vogliono garanzie sui chip.

Nvidia has presented with SpaceX a space computing platform: 72 Rubin GPUs and 36 Vera CPUs per system, solar-powered and radiation-tolerant. Available in 2027. SpaceX's lenders want safeguards on the chips.

Amazon abbina Trainium3, che elabora il prompt, a un chip a SRAM che genera i token. Con Ergo dichiara fino a 2.200 token/s contro oltre 400 su Trainium3 da solo. Anteprima limitata su Bedrock.

Amazon pairs Trainium3, which processes the prompt, with an SRAM chip that generates tokens. With Ergo it claims up to 2,200 tokens/s against more than 400 on Trainium3 alone. Limited preview on Bedrock.

Modelli AIAI models·Francia·IA

Mistral rilascia Mistral Multimodal Embed (Clipstral), con 1,24 miliardi di parametri e licenza Apache 2.0. Immagini, video e testo in 35 lingue stanno nello stesso spazio. Miglior recupero di immagini e video sotto i 4 miliardi.

Mistral releases Mistral Multimodal Embed (Clipstral), with 1.24 billion parameters and an Apache 2.0 licence. Images, video and text in 35+ languages share one space. Best image and video retrieval under 4 billion parameters.

BenchmarkBenchmarks·Stati Uniti·IA

Gray Swan AI e Nvidia hanno aggiunto 12 test al Frontier Hazard Tracker. Nel reward hacking, GPT-6.2 Astra cede nello 0,8% dei casi, Claude Opus 5.5 nel 4,1%, Grok 4.7 nel 50,9%. Nell'iniezione di prompt, Nemotron 3.5 Super VL è compromesso al 94,3%.

Gray Swan AI and Nvidia added 12 tests to the Frontier Hazard Tracker. In reward hacking, GPT-6.2 Astra fails 0.8% of the time, Claude Opus 5.5 4.1%, Grok 4.7 50.9%. In prompt injection, Nemotron 3.5 Super VL is compromised 94.3% of the time.

RicercaResearch·Redmond, Stati Uniti·IA

Un articolo di Microsoft Research mostra che un agente minimale supera gli agenti ufficiali in tutte le 11 configurazioni. L'agente ha shell, memoria modificabile e un contatore di risorse. Ottiene 5,1 punti in più in media, con il 49% di costo in meno.

A Microsoft Research paper shows a minimal agent outperforming first-party agents in all 11 configurations. The agent has a shell, editable memory and a resource meter. It scores 5.1 points higher on average, at 49% lower cost.

RicercaResearch·Stati Uniti·IA

Il paper PocketRL riduce la memoria dell'apprendimento per rinforzo del 84%, da 113 a 18 GiB. Un modello da 7 miliardi si addestra in 7,3 ore su una sola RTX 5090, per circa 4,71 dollari.

The PocketRL paper cuts reinforcement-learning memory by 84%, from 113 to 18 GiB. A 7-billion-parameter model trains in 7.3 hours on a single RTX 5090, for about 4.71 dollars.

RicercaResearch·Cina·IA

Qwen propone DMTP: il modulo di previsione multi-token nativo genera il primo token di ogni blocco, DFlash il resto in parallelo. Lunghezza accettata fino al 35,64% in più su DFlash2, throughput in aumento dal 17,10 al 23,75%.

Qwen proposes DMTP: the native multi-token prediction module writes the first token of each block, DFlash the rest in parallel. Accepted length is up to 35.64% higher than DFlash2, and throughput rises from 17.10 to 23.75%.

RicercaResearch·Cina·IA

RiRoPE assegna posizioni consecutive ai soli token scelti da ogni query nell'attenzione sparsa. Su OLMo-3-7B a 64K, guadagna 6,14 punti RULER e 4,40 HELMET. A 512K mantiene circa il 90% del punteggio.

RiRoPE gives consecutive positions to the tokens each query selects in sparse attention. On OLMo-3-7B at 64K, it gains 6.14 RULER and 4.40 HELMET points. At 512K it keeps about 90% of the score.

RicercaResearch·Cina·IA

Ternix distilla Qwen3.5-9B in pesi ternari con scale condivise. Il file è da 2,53 GB, il punteggio medio è del 50,16% (76,9% del docente in BF16). La velocità arriva fino a 51,85 token/s su una CPU Apple, senza GPU.

Ternix distils Qwen3.5-9B into ternary weights with shared scales. The file is 2.53 GB, and the mean score is 50.16% (76.9% of the BF16 teacher). Speed reaches up to 51.85 tokens/s on an Apple CPU, with no GPU.

RicercaResearch·Cina·IA

Il paper LoopTitan, di Shanghai AI Laboratory, confronta MoE ciclici e controlli senza riuso. Il riuso dei parametri vale +0,7 mBPB, entro il rumore, mentre passare da AdamW a Muon ne vale 23,6.

Shanghai AI Laboratory's LoopTitan paper compares looped MoEs with non-revisit controls. Parameter reuse is worth +0.7 mBPB, within noise, while switching from AdamW to Muon is worth 23.6.

RicercaResearch·Stati Uniti·IA

Il paper EnvOpt genera ambienti eseguibili che si adattano al modello man mano che migliora. Su τ²-Bench, BFCL-v4 e AppWorld, con modelli Qwen, guadagna in media 16,22 punti (4B), 7,40 (8B) e 6,36 (30B).

The EnvOpt paper generates executable environments that adapt to the model as it improves. On τ²-Bench, BFCL-v4 and AppWorld, with Qwen models, it gains on average 16.22 points (4B), 7.40 (8B) and 6.36 (30B).

NucleareNuclear·Rawatbhata, Rajasthan, India·IA

Il 30 novembre, alle 03:35, l'unità 8 del Rajasthan Atomic Power Project ha raggiunto la prima criticità, dopo il via libera dell'AERB. È il quarto PHWR da 700 MWe di progetto indiano. L'esercizio commerciale è atteso entro marzo 2027.

On 30 November, at 03:35, unit 8 of the Rajasthan Atomic Power Project reached first criticality, after AERB clearance. It is the fourth Indian-designed 700 MWe PHWR. Commercial operation is expected by March 2027.

NucleareNuclear·Corea del Sud·IA

A Shin Hanul 3 e 4, KHNP ha completato il 30 novembre un mock-up in scala reale di struttura composita a piastre d'acciaio. Alla scala del modello, la costruzione ha richiesto circa il 40% di tempo in meno rispetto al cemento armato.

At Shin Hanul 3 and 4, KHNP completed on 30 November a full-scale steel-plate composite mock-up. At mock-up scale, construction took about 40% less time than reinforced concrete.

NucleareNuclear·Cina·IA

Dopo 100 ore di prova a piena potenza, il 1° dicembre l'unità 7 di Tianwan, un VVER-1200 di progetto russo, ha raggiunto le condizioni per l'esercizio commerciale. L'unità 8 è attesa nel 2027.

After a 100-hour trial at full power, on 1 December Tianwan unit 7, a Russian-designed VVER-1200, met the conditions for commercial operation. Unit 8 is expected in 2027.

TelecomunicazioniTelecoms·Tokyo, Giappone·IA

NTT, 1Finity e NEC hanno concluso una prova da 1 milione di percorsi ottici su apparati multivendor, con ripristino dopo un guasto di tipo disastro e 50% di lavoro operativo in meno. I sistemi commerciali arrivano dal 2027.

NTT, 1Finity and NEC completed a trial of 1 million optical paths on multivendor equipment, with recovery from a disaster-type failure and 50% less operational workload. Commercial systems follow from 2027.

Finanza AIAI finance·Stati Uniti·IA

Eon, start-up di backup e gestione dei dati, ha raccolto 250 milioni di dollari a 7 miliardi di valutazione, guidata da Georgian. Un anno fa la valutazione era di 4 miliardi. I ricavi annuali ricorrenti sono cresciuti più di dieci volte.

Eon, a data backup and management start-up, has raised $250 million at a $7 billion valuation, led by Georgian. A year ago the valuation was $4 billion. Annual recurring revenue grew more than tenfold.