# Fixed-token CPU ISA / native CUDA INT8 follow-up (2026-11-15)

The source commits, measured assembly/native hashes, validation scope and unmeasured conditions at freeze are in provenance.json. This is a local development report, not a
release announcement. Development measurements require two consecutive 15-second
CPU averages <=10%. The prototype sweep has stopped. Missing values are not estimates.
Future algorithms use separate measurement directories and are compared with this baseline.

The first five development AVX requests were kept as a diagnostic block because
periodic WSL startup activity continued during measurement. All five were excluded
before restarting the complete development comparison. A temporary no-work WSL
session stopped the startup spikes; no permanent WSL setting was changed.
excluded-wsl.json retains all five requests, outside every chart and result total.
excluded-background.json preserves ten additional requests (4B auto and AVX-Q8)
excluded as complete blocks because sustained background CPU load exceeded 16%.
prototype-manifest.json hashes the immutable local snapshot: 225 included requests
and 15 excluded diagnostic requests. No faster individual samples were selected.

All measured generations use the same public sample inquiry and immutable Bonsai
Q1_0 models, 128 greedy output tokens including EOS, a cached trusted system prefix,
one unmeasured full generation and five recorded generations. The Text field is
intentionally empty; token hashes identify the generated sequence. Decode ms/token
excludes Prefill and includes output projections/sampling. It is not wall time/N.

CPU forced options target Q1_0 matrix kernels only. Auto preserves FP32 activations;
q8-auto explicitly changes activation precision. CPU comparisons use four physical
cores on development/validation and two on Server. Percent baselines in ISA charts
are AVX FP32 on the same host/model. GPU chart baselines are legacy Q8-rounded FP32
on the same GPU/model. Do not mix this protocol with November 14 variable-length replies.
The two cross-device overview charts instead use the validation CPU AVX median
for each model as 100%, with matching FP32 or Q8-rounded input precision. The
Server uses two workers; other hosts use four, and GPU times retain CPU work.

## Rebuild / reproduce

Use the Core source commits in provenance.json. core-changes.patch records changes
against the stated base. Contracts are 0.1.4; before public distribution, use the
existing local 0.1.4 NuGet feed. Pass StablePackageVersion=0.1.4 and
AIKernelContractPackageVersion=[0.1.4] rather than silently restoring 0.1.3.

Build native/cpu and native/cuda with CMake -DCMAKE_BUILD_TYPE=Release
(or --config Release for multi-config generators), then publish
tests/AIKernel.FixedToken.Benchmark for net10.0 with .NET runtime 10.0.15. Place
the matching CPU/CUDA native library in the application directory. The original
CPU benchmark build and newer GPU build have separate hashes, as recorded.

CLI examples:
  AIKernel.FixedToken.Benchmark --list-instruction-sets
  AIKernel.FixedToken.Benchmark cpu MODEL --instruction-set auto --workers 4 --tokens 128
  AIKernel.FixedToken.Benchmark cpu MODEL --instruction-set avx2 --workers 4 --tokens 128
  AIKernel.FixedToken.Benchmark cuda MODEL --device 0 --precision dp4a --workers 4 --tokens 128
  AIKernel.FixedToken.Benchmark cuda MODEL --device 0 --precision tensor-core --workers 4 --tokens 128
  AIKernel.FixedToken.Benchmark cuda MODEL --device 0 --precision int8-auto --workers 4 --tokens 128

Use monitor.run(command, output_path, affinity) from monitor.py to apply the idle
gate and affinity, setting AIKERNEL_BENCH_IDLE_THRESHOLD=10. Windows uses 0x55 for
this four-physical-core machine; Linux validation uses [0,1,2,3]. Do not copy these
affinities blindly to different topology. Server co-tenant load is unverified.

Plot already validated data using Python + matplotlib 3.11.2 and a Japanese font:
  python plot_fixed_isa.py isa.json figures
  python plot_fixed_gpu.py gpu.json figures
  python plot_fixed_overview.py isa.json gpu.json figures

The CUDA integer source supports DP4A on SM61+ and integer MMA on SM80+.
Auto measures synchronous matrix calls per shape and keeps Tensor Core only with
a >=5% median advantage. Actual dispatch counters and choices are recorded.
P630's earlier Vulkan FP32 path is not presented as native hardware INT8.

The archive contains code, public measurements and source changes. Models,
credentials, remote connection details, staged packages and binaries are excluded.
