﻿# V-Seek on SG2042: more threads need a memory policy

V-Seek combines kernels, compilers and NUMA placement on a Milk-V Pioneer. Its short-prompt throughput does not establish long-context reasoning performance.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/v-seek-sg2042-numa-quantized-llm-thread-scaling/
Language: en

## A measured SG2042 case, rather than an ISA-wide result

V-Seek studies quantized language-model execution on a Milk-V Pioneer with a 64-core Sophon SG2042 and 128 GB of DRAM. The [original paper](https://arxiv.org/html/2503.17422) combines custom kernels, compiler selection and memory placement. Its result belongs to that software-and-hardware configuration; an open instruction set alone does not determine application throughput.

Although the title mentions reasoning models, the reported experiment measures prompt processing and token generation. It does not establish reasoning-answer quality, success on a task benchmark or the time required to solve a representative problem.

## Why adding threads initially made performance worse

The authors report that the default NUMA-balancing configuration loses performance beyond 32 threads. They compare balancing enabled, balancing disabled, disabled balancing with core binding, and disabled balancing with memory interleaving. Their best reported configuration uses interleaving with balancing disabled.

This is a useful counterexample to the assumption that allocating every core automatically helps inference. Threads access model weights through a memory hierarchy, so page placement and migration can matter alongside arithmetic. The general [NUMA placement guide](/journal/numa-and-gpu-servers/) provides context, but does not substitute for this named SG2042 experiment or justify applying its preferred policy to every machine.

## Kernel and compiler choices remain part of the result

The [Summit proceedings version](https://riscv-europe.org/summit/2025/media/proceedings/2025-05-13-RISC-V-Summit-Europe-P1.1.11-POVEDA-abstract.pdf) describes a vectorized quantized kernel and a split toolchain. The kernel uses Xuantie GCC 10.4, while the surrounding framework compares GCC 13.2 and Clang 19. It reports that the older compiler used for the vector kernel was unsuitable for the contemporary framework as a whole.

Consequently, describing this as simply compiling llama.cpp with a newer compiler loses a material part of the method. A reproduction needs the kernel implementation, compatible extension support and framework build identity. Compiler comparisons also need the same kernels and placement, rather than changing the entire implementation at once.

## Read prefill and decode as different measurements

For the DeepSeek R1 Distill Llama 8B case, the reported best configuration reaches 4.32 tokens/s generation and 6.54 tokens/s prompt processing. The test uses a 22-token prompt and averages generation over 256 tokens with Q4_0 weights. These are author results, not an independent replication.

A short prefill probe cannot establish long-context performance, and average decoding throughput cannot establish first-token latency or a concurrent server's tail behavior. The [inference benchmark guide](/journal/inference-benchmark-method/) explains why input length, output length and timing boundary must accompany throughput. Different model families or quantization formats require their own measurements.

## A useful replication separates the interventions

A bounded comparison would first preserve the original model artifact and request, then vary placement while holding the build fixed. It would separately compare kernels and compilers under the same selected policy. Repeating the baseline helps distinguish a placement effect from background activity or changing system conditions.

The paper's NUMA explanation is consistent with the observed policy comparison, but the combined end-to-end gain includes several interventions. It should not all be attributed to memory interleaving. Energy efficiency and ownership cost would additionally require matched measurements and explicit power boundaries. The supported conclusion is that this SG2042 stack benefits from coordinated software and memory-policy tuning, with throughput tied to the reported workload.
