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": 2964, "estimated_inference_peak_memory": 165826560, "first_load_time": 117398, "first_load_peak_memory": 116396032, "warm_load_time": 119192, "warm_load_peak_memory": 128565248, "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, 2872272], "first_load_memory_peak_range": [1818624, 11197040], "warm_load_memory_increase_range": [0, 1570160], "warm_load_memory_peak_range": [946176, 10568032], "inference_memory_increase_range": [0, 161936], "inference_memory_peak_range": [8417280, 17976128], "all_compile_times": [], "all_first_load_times": [117398], "all_warm_load_times": [119192], "all_inference_times": [4189, 4096, 3274, 3330, 3502, 3357, 3291, 3243, 3201, 3240, 3344, 3745, 3529, 3143, 3181, 3135, 3129, 3103, 3085, 3095, 3116, 3122, 3066, 3086, 3055, 3048, 3141, 3331, 3308, 3225, 3189, 3152, 3101, 3110, 3204, 3093, 3197, 3042, 3050, 3037, 3020, 3033, 3035, 3048, 3024, 3028, 3013, 3010, 3017, 3017, 3081, 3116, 3029, 3016, 3017, 3003, 3009, 3006, 3011, 3013, 3035, 2997, 3024, 3011, 3000, 2992, 3040, 3003, 2995, 3038, 3018, 2988, 2992, 2978, 3018, 2992, 2984, 2984, 3094, 3060, 2992, 3078, 3099, 3002, 2997, 3012, 2976, 2977, 2983, 2978, 2974, 2984, 2975, 2973, 3004, 2977, 2975, 2967, 2994, 2964]}, "execution_detail": [{"name": "Input", "type": "Input", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 1269995}, {"name": "QNN_DATATYPE_FLOAT_32_converted_x_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 134163}, {"name": "rms_norm_/layers.0/Mul_1_output_0", "type": "rms", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 16521}, {"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_197", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 611448}, {"name": "node_Slice_200", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 177324}, {"name": "node_Slice_203", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 170897}, {"name": "/layers.0/Reshape", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 552}, {"name": "/layers.0/Reshape_1", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 446}, {"name": "/layers.0/Reshape_2", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 684}, {"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": 9884}, {"name": "/layers.0/Reshape_3", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 4009}, {"name": "node_Slice_398", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "node_Slice_401", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 1403}, {"name": "fused_/layers.0/Slice_3_/layers.0/Slice_5", "type": "fused", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "fused_/layers.0/Slice_3_/layers.0/Slice_6", "type": "fused", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_cos_full_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 9730}, {"name": "/layers.0/Mul_2", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 327}, {"name": "/layers.0/Neg", "type": "/layers.0/Neg", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 579}, {"name": "/layers.0/Concat", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_sin_full_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 9690}, {"name": "/layers.0/Mul_3", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 338}, {"name": "/layers.0/Add_1", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 9710}, {"name": "/layers.0/Concat_1", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 1441}, {"name": "node_Slice_380", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "node_Slice_383", "type": "node", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "fused_/layers.0/Slice_7_/layers.0/Slice_9", "type": "fused", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "fused_/layers.0/Slice_7_/layers.0/Slice_10", "type": "fused", "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": 3211}, {"name": "/layers.0/Neg_1", "type": "/layers.0/Neg", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 18997}, {"name": "/layers.0/Concat_2", "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": 159}, {"name": "/layers.0/Add_2", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 1817}, {"name": "/layers.0/Concat_3", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 0}, {"name": "QNN_DATATYPE_FLOAT_32_converted_k_cache_0_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 561388}, {"name": "/layers.0/Concat_4", "type": "/layers.0/Concat", "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": 1305384}, {"name": "/layers.0/Concat_5", "type": "/layers.0/Concat", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 400832}, {"name": "/layers.0/Reshape_4", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 233}, {"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": 1911875}, {"name": "/layers.0/Mul_6", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 104156}, {"name": "QNN_DATATYPE_FLOAT_32_converted_mask_full_QNN_DATATYPE_FLOAT_16", "type": "QNN", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 24472}, {"name": "/layers.0/Add_3", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 138055}, {"name": "/layers.0/Softmax", "type": "/layers.0/Softmax", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 32128}, {"name": "/layers.0/MatMul_1", "type": "/layers.0/MatMul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 4851959}, {"name": "/layers.0/Reshape_5", "type": "/layers.0/Reshape", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 9552}, {"name": "/layers.0/Mul_7", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 5168}, {"name": "/layers.0/out_proj/MatMul", "type": "/layers.0/out", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 187870}, {"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_4", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 134932}, {"name": "rms_norm_/layers.0/Mul_9_output_0", "type": "rms", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 26788}, {"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": 749979}, {"name": "/layers.0/up_proj/MatMul", "type": "/layers.0/up", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 755165}, {"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_12", "type": "/layers.0/Mul", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 11232}, {"name": "/layers.0/down_proj/MatMul", "type": "/layers.0/down", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 763836}, {"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_7", "type": "/layers.0/Add", "compute_unit": "NPU", "execution_time": 0, "execution_cycles": 6915}, {"name": "/layers.0/Concat_3_identity", "type": "/layers.0/Concat", "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": 17325}]} |