Repository navigation
fix(llm-edge): restore end-to-end execution of compression benchmark - #1036
BLVCK-MAMBA-6 wants to merge 1 commit into
Conversation
84c62d7 to
8d482ba
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLVCK-MAMBA-6 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
8d482ba to
21c0c3f
Compare
21c0c3f to
a40a532
Compare
MooreZheng
left a comment
There was a problem hiding this comment.
Thank you Adeyemo for the modification and improvement. A video should be fine to ensure the revisions and example can be run in an end-to-end manner.
|
Hi, could you run the end-to-end compression benchmark with a few more models, such as Llama 3.1 and Qwen3? The current results only cover Qwen2.5-0.5B-Instruct. Please confirm that the benchmark loads the quantized GGUF for each model and share the resulting metrics. |
|
Can this example be fully executed in CI? If not, what would be the main blockers? For example, model download size, build time, runner resource limitations, or simply taking too long to run on GitHub Actions? |
@ken6078, sorry for the confusion on the call—I thought you meant whether the upstream PR checks already run the full example. It does run end to end in GitHub Actions. I tested Qwen2.5-0.5B-Instruct in a separate workflow on my fork using an Ubuntu 24.04 CPU runner with no GPU. The full run took 3m58s, including dependency installation, downloads, compression, inference and verification of both result files. The logs confirm that inference loaded the generated Q8_0 GGUF. [Successful run and logs](https://github.com/BLVCK-MAMBA-6/ianvs/actions/runs/43510958344) For this model, I didn’t encounter a runner resource or timeout blocker. The main setup costs are downloading the roughly 1.27 GB FP16 model and compiling llama-cpp-python from source. |
Thank you @MooreZheng. I'll record a short terminal walkthrough of the full end-to-end run and share it here soon. |
Thank you @hsj576. I'll run the benchmark on Qwen3 and Llama 3.1 next and post the logs showing each run loads its quantized GGUF, along with the metrics, soon. And probably a few more models. |
|
Thanks for the detailed follow-up! If it's running smoothly in CI, would it be possible to integrate it into the validator as well? I think that would be a great addition to help keep things consistent and make the validation process more reliable. |
|
That sound good @ken6078. I'll wire |
|
@ken6078 the compression example is now part of the existing validator in this PR. The upstream "PR dynamic example validation" job passed on Python 3.11 in 2m 59s, covering dependency installation, asset preparation, compression, inference, and result verification. The JSON report confirms inference loaded the freshly generated |
ianvs-compression-demo-short.mp4@MooreZheng here's the walkthrough. The run completes with Qwen2.5-0.5B-Instruct and covers fresh FP16 → Q8_0 quantization, loading the generated Quantization took 14.2 seconds and shrank the file from roughly 1.2 GiB to 645 MiB. Across the three bundled prompts, the run recorded:
The last part of the video shows the compressed-model loading confirmation, both file sizes, and the results together, so these numbers only show that the bundled prompts execute. To reproduce it from this PR's checkout on Ubuntu 24.04 x86-64 with Python 3.11 installed: The first run also downloads the approximately 1.27 GB model and builds llama-cpp-python, so setup takes longer than shown in the video. For the video, I prepared the dependencies and FP16 input beforehand and shortened idle pauses for readability. Thanks for suggesting the walkthrough! |
|
@hsj576 I ran the benchmark on two more models, Qwen3-0.6B and Llama-3.1-8B-Instruct, after the earlier Qwen2.5-0.5B-Instruct run. Both worked. Both runs used the benchmark code from
The logs confirm each run loaded its generated model:
The native llama.cpp loader also opens those same compressed files. The Llama 3.1 Actions run finished in 10m 43s, including setup and downloads. Its full logs, configs, summaries, and result tables are in the |
Signed-off-by: Adeyemo Favour <118637798+BLVCK-MAMBA-6@users.noreply.github.com>
ffbedd3 to
d80c810
Compare
What type of PR is this?
/kind bug
What this PR does / why we need it
This PR restores end-to-end execution of
examples/llm-edge-benchmark-suite/single_task_bench_with_compression. The example referenced missing dataset files, importedpsutilwithout declaring it, and could run inference with the original model instead of the file produced by quantization.This PR supersedes #542 by carrying forward Fahmid Arman’s JSONL fixtures and dataset path fixes and addressing the remaining benchmark issues. Fahmid is credited as co-author in the squashed commit.
psutilto the example’s requirements for process memory measurement and documents the CPU setup using the bundled Sedna wheel._q8_0.gguffor inference and raises an error if quantization does not produce a usable model path.prefill_latencyfield name and documents that it measures time to the first streamed chunk containing generated text. An empty response raises an error instead of contributing a zero to the latency average.Which issue(s) this PR fixes
Fixes #249
Testing performed
Ran the documented Qwen2.5-0.5B-Instruct FP16 setup on commit
a40a532with Python 3.11 on an Ubuntu 24.04 CPU runner. The GitHub Actions run passed in 3 min 58 sec, including setup and downloads.Ianvs generated
qwen2.5-0.5b-instruct-fp16_q8_0.gguf, loaded it for inference, and wroteselected_rank.csvandall_rank.csv. Both files reported the same metrics:These results are from one Q8_0 run. No FP16 performance comparison was performed.
Separate Windows mock-stream tests verified that a metadata-only chunk does not start the first-text measurement and that a stream with no generated text raises an error.
git diff --checkalso passed.