The packaging commit shipped the code and a summary of the numbers. It left out
everything the numbers are measured *against*, which is most of what makes them
checkable.
Added:
baselines/ llama.cpp runs (thread sweeps, NUMA sweeps, the
interleaved A/B passes behind the headline decode
figure) and the quality references: each build
against its own bf16 over 12 greedy prompts.
benchmarks/.../results/ 102 artifacts backing the published figures, each
with a provenance block naming the model,
quantization, thread set and build SHAs.
docs/engines/ the engine analyses -- llama.cpp, ExecuTorch, MNN,
ncnn, vLLM, vLLM-Omni -- and the cross-engine and
device-simulation comparisons.
docs/analysis/ the full study documents the summaries distil.
docs/edge/comparisons.md where this fork sits against llama.cpp and why:
decode is llama.cpp's, prefill is ours by ~2x, and
since neither engine exceeds 39% of the measured
222 GB/s ceiling the decode gap is the execution
model rather than the kernels.
docs/edge/environment.md pins and machine, and the correction below.
On "the modified vllm": there isn't one, and the doc says so plainly because it
is the obvious assumption. The vLLM checkout is clean upstream (0 commits
ahead, 0 uncommitted) and the installed wheel is stock 0.28.0+cpu. This fork
changes vLLM's CPU *behaviour* through vLLM's own extension points at import
time -- three CPU patches in vllm_omni/patch.py, the quantization-config
registry, the IR op registry, platform hooks -- specifically so the changes
survive a wheel upgrade rather than being lost on it. One of those patches is
why "KV sizing is not a memory lever" looked true for months: CpuPlatform
overwrote kv_cache_memory_bytes unconditionally, so the setting had no effect.
There is no patch series to apply; pin the version and let patch.py do the rest.
.gitignore gains explicit exceptions: upstream's blanket `*.json` and `results/`
rules were silently eating the measurement artifacts, which in this fork are the
substance rather than build output. Binary captures stay ignored.
No vLLM or llama.cpp source is redistributed -- only output produced with them.
NOTICE records both.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L1ax5wYLA6XbqEL1i8L9gZ
1 line
10 KiB
JSON
1 line
10 KiB
JSON
{"execution_summary": {"estimated_inference_time": 1535, "estimated_inference_peak_memory": 140099584, "first_load_time": 118480, "first_load_peak_memory": 113537024, "warm_load_time": 119765, "warm_load_peak_memory": 124760064, "compile_time": 0, "compile_peak_memory": 0, "compile_memory_increase_range": [0, 0], "compile_memory_peak_range": [0, 0], "first_load_memory_increase_range": [0, 3750256], "first_load_memory_peak_range": [2940928, 12303072], "warm_load_memory_increase_range": [0, 1695824], "warm_load_memory_peak_range": [0, 10174496], "inference_memory_increase_range": [0, 2129968], "inference_memory_peak_range": [0, 9041792], "all_compile_times": [], "all_first_load_times": [118480], "all_warm_load_times": [119765], "all_inference_times": [2433, 1845, 1775, 1750, 1746, 1712, 1710, 1617, 1608, 1599, 1592, 2135, 1871, 1768, 1643, 1652, 1625, 1601, 1642, 1628, 1594, 1599, 1586, 1684, 1596, 1673, 1794, 1720, 1643, 1633, 1785, 1822, 1792, 1709, 1677, 1608, 1569, 1561, 1567, 1559, 1559, 1588, 1585, 1571, 1599, 1555, 1553, 1599, 1702, 1771, 1831, 1741, 1813, 1716, 1891, 1808, 1710, 1573, 1564, 1568, 1555, 1546, 1557, 1547, 1544, 1550, 1535, 1550, 1578, 1621, 1620, 1611, 1576, 1583, 1640, 1649, 1675, 1589, 1605, 1734, 1707, 1830, 1744, 1761, 1783, 1618, 1707, 1621, 1652, 1712, 1616, 1601, 1605, 1669, 1593, 1659, 1790, 1640, 1628, 1598]}, "execution_detail": [{"name": "Input", "type": "Input", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 16153}, {"name": "QNN_DATATYPE_FLOAT_32_converted_x_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 110098}, {"name": "rms_norm_/layers.0/Mul_1_output_0", "type": "rms", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 19199}, {"name": "/layers.0/q_k_v_proj/MatMul", "type": "/layers.0/q", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/q_k_v_proj/MatMul_post_reshape", "type": "/layers.0/q", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "node_Slice_180", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 250822}, {"name": "node_Slice_183", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 73962}, {"name": "node_Slice_186", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 60326}, {"name": "/layers.0/Reshape", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 468}, {"name": "/layers.0/Reshape_1", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 232}, {"name": "/layers.0/Reshape_2", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/g_proj/MatMul", "type": "/layers.0/g", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/g_proj/MatMul_post_reshape", "type": "/layers.0/g", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Sigmoid", "type": "/layers.0/Sigmoid", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 18026}, {"name": "/layers.0/Reshape_3", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 4499}, {"name": "node_Slice_331", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 2506}, {"name": "node_Slice_334", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_cos_sw_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 19291}, {"name": "/layers.0/Mul_2", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 1037}, {"name": "/layers.0/Neg", "type": "/layers.0/Neg", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 2438}, {"name": "/layers.0/Concat", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_sin_sw_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 2102}, {"name": "/layers.0/Mul_3", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 975}, {"name": "/layers.0/Add_1", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 14896}, {"name": "node_Slice_338", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "node_Slice_341", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Mul_4", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 2937}, {"name": "/layers.0/Neg_1", "type": "/layers.0/Neg", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 11155}, {"name": "/layers.0/Concat_1", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Mul_5", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 345}, {"name": "/layers.0/Add_2", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 5722}, {"name": "/layers.0/Reshape_4", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 267}, {"name": "QNN_DATATYPE_FLOAT_32_converted_k_cache_0_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 130807}, {"name": "/layers.0/Transpose", "type": "/layers.0/Transpose", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/MatMul", "type": "/layers.0/MatMul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 335671}, {"name": "/layers.0/Mul_6", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 36543}, {"name": "/layers.0/Mul_7", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 13766}, {"name": "/layers.0/ReduceSum", "type": "/layers.0/ReduceSum", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 14631}, {"name": "/layers.0/Mul_8", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 5612}, {"name": "/layers.0/Concat_2", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_mask_sw_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 1141}, {"name": "/layers.0/Add_3", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 47450}, {"name": "/layers.0/Softmax", "type": "/layers.0/Softmax", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 10622}, {"name": "node_Slice_345", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "node_Slice_348", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_v_cache_0_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 87913}, {"name": "/layers.0/MatMul_1", "type": "/layers.0/MatMul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 40921}, {"name": "/layers.0/MatMul_2", "type": "/layers.0/MatMul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 37973}, {"name": "/layers.0/Add_4", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 4267}, {"name": "/layers.0/Reshape_5", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 416}, {"name": "/layers.0/Mul_9", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 3650}, {"name": "/layers.0/out_proj/MatMul", "type": "/layers.0/out", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 176300}, {"name": "/layers.0/out_proj/MatMul_post_reshape", "type": "/layers.0/out", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Add_5", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 86132}, {"name": "rms_norm_/layers.0/Mul_11_output_0", "type": "rms", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 4391}, {"name": "/layers.0/gate_proj/MatMul", "type": "/layers.0/gate", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/gate_proj/MatMul_post_reshape", "type": "/layers.0/gate", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "node_Gelu_0", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 823660}, {"name": "/layers.0/up_proj/MatMul", "type": "/layers.0/up", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 824889}, {"name": "/layers.0/up_proj/MatMul_post_reshape", "type": "/layers.0/up", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Mul_18", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 12179}, {"name": "/layers.0/down_proj/MatMul", "type": "/layers.0/down", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 834809}, {"name": "/layers.0/down_proj/MatMul_post_reshape", "type": "/layers.0/down", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Add_9", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 6887}, {"name": "/layers.0/Add_2_identity", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "/layers.0/Reshape_2_identity", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_16_converted_output_0_QNN_DATATYPE_FLOAT_32", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_16_converted_output_1_QNN_DATATYPE_FLOAT_32", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_16_converted_output_2_QNN_DATATYPE_FLOAT_32", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "Output", "type": "Output", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 22903}]} |