﻿# LLaMA2 on KV260: a bare-metal memory-limit experiment

A KV260 study packs LLaMA2-7B into constrained memory. Read the data layout, decode-efficiency definition and estimated-power boundary together.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/kv260-llama2-bare-metal-bandwidth-capacity-study/
Language: en

## A decoding experiment near the board's memory limit

[Pushing up to the Limit of Memory Bandwidth and Capacity Utilization](https://arxiv.org/abs/2502.10659), submitted February 15, 2025, studies LLaMA2-7B on the embedded KV260 FPGA platform. Its [full paper](https://arxiv.org/html/2502.10659) describes a bare-metal design with quantized weights and request state. These links identify the same work, rather than two independently reproduced experiments.

The authors' question is how much useful decoding can be extracted from a constrained memory subsystem. The result is not a general-purpose model server or evidence that every model with a similar parameter count fits the board. The exact packing, state representation and execution environment are central to the demonstration.

## Bare metal reserves capacity for the model

The platform has 4 GB DDR4 memory. The authors use AWQ W4A16 weights and KV8 cache, with space reserved for context up to 1024 tokens. Their reported memory occupation is 93.3%. They avoid an operating system because the remaining capacity is insufficient for the intended Linux environment alongside the model.

This is a deliberate system-design tradeoff. It leaves more memory for the selected workload, while moving responsibilities normally supplied by a larger software stack into a more specialized application. Successful standalone decoding does not automatically supply concurrent requests, rich preprocessing or the operational behavior of a hosted inference engine.

It also explains why adding model-file sizes is insufficient. Quantization scales, zero points, embeddings and request state must be laid out in the same constrained address space. A different quantization format may change both capacity and the arithmetic implemented by the accelerator.

## Data layout is part of the acceleration

The paper interleaves packed weights with their scales and zero points to favor long sequential memory transactions. It also buffers key/value quantization metadata so small updates can be transferred in bus-aligned groups. These mechanisms target the overhead that a capacity-only comparison would miss.

Within attention, the design pipelines work by head and overlaps projection, positional operations and subsequent calculations. This is a particular schedule for a particular model structure, rather than proof that miscellaneous operations are free in any FPGA implementation. Moving to another architecture can change matrix dimensions, state and dependencies.

The authors report 4.9 tokens/s against a calculated 5.8 tokens/s bandwidth ceiling, or 84.5% of that reference. The percentage is their decoding-efficiency definition, not a direct statement that every electrical memory transaction reaches the same fraction of a measured peak.

## Power and comparison boundaries remain important

The paper reports 6.57 W from Vivado. That is a design-tool power estimate, not an independently measured whole-board or wall-power result. Dividing its decode rate by that estimate would not establish the energy consumed by a complete deployed service.

Its embedded CPU and GPU comparisons use results from other research or framework sources. They offer context, but do not constitute a matched experiment in which the authors ran every device with identical software, prompts and timing boundaries. Decode efficiency also does not establish first-token latency or long-prompt responsiveness.

The [memory-bandwidth guide](/journal/memory-bandwidth-llm/) explains the capacity/access distinction. The [benchmark methodology](/journal/inference-benchmark-method/) supplies the separate workload and completion record. This study demonstrates a concrete, tightly packed embedded-FPGA path for one model; its useful lesson is the joint control of representation, layout and execution, with the bare-metal and measurement limits retained.
