-
Notifications
You must be signed in to change notification settings - Fork 126
[LFX Term 1 2026] Restoring LLM Edge Benchmark Suite Single Task Bench With Compression #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kubeedge-bot
merged 2 commits into
kubeedge:main
from
NishantSinghhhhh:Restoration_single_task_bench_with_compression
May 7, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
57 changes: 56 additions & 1 deletion
57
examples/llm-edge-benchmark-suite/single_task_bench_with_compression/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,57 @@ | ||
| Large Language Model Edge Benchmark Suite: Implementation on KubeEdge-lanvs | ||
| # llm-edge-benchmark-suite single_task_bench_with_compression | ||
|
|
||
| This guide outlines the complete setup, configuration, and execution process for running the **Compression** Large Language Model (LLM) benchmarking suite using the [Ianvs](https://github.com/kubeedge/ianvs) edge computing framework. | ||
|
|
||
| > **CRITICAL FIRST STEPS: ABSOLUTE PATHS & DEPENDENCIES** | ||
| > 1. **Correct all paths:** You **must** change every relative path (e.g., `models/qwen/...` or `dataset/...`) in all your `.yaml` configuration files to **absolute paths** (e.g., `/home/user/ianvs/models/qwen/...`). Ianvs will crash if it encounters relative paths. | ||
| > 2. **Dependencies:** You must install the necessary packages via `requirements.txt` before executing any runs. | ||
|
|
||
| --- | ||
|
|
||
| ## Step 1: Environment Setup | ||
|
|
||
| First, ensure your Ianvs virtual environment is active: | ||
| ```bash | ||
| source /path/to/your/ianvs_env/bin/activate | ||
| ``` | ||
|
|
||
| Install the requirements.txt | ||
| ```bash | ||
| pip install -r ianvs/examples/llm-edge-benchmark-suite/single_task_bench_with_compression/requirements.txt | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Step 2: Shared Model Acquisition | ||
|
|
||
| This benchmark shares the same `.gguf` model file as the standard suite. Ensure the `Qwen1.5-0.5B-Chat` model exists in your central models directory. | ||
|
|
||
| If it is missing, download it using a resumable command: | ||
| ```bash | ||
| mkdir -p /ianvs/models/qwen | ||
| wget -c -O ianvs/models/qwen/qwen_1_5_0_5b.gguf [https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat-GGUF/resolve/main/qwen1_5-0_5b-chat-q4_k_m.gguf](https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat-GGUF/resolve/main/qwen1_5-0_5b-chat-q4_k_m.gguf) | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Step 3: Configuration Alignment (Fixing the YAMLs) | ||
|
|
||
| You must manually update three different YAML files to remove relative paths and fix framework naming strictness. | ||
|
|
||
| ### 1. Test Environment (`testenv/testenv.yaml`) | ||
| Update the dataset location to an absolute path: | ||
| ```yaml | ||
| dataset: | ||
| train_data: "ianvs/dataset/data.jsonl" | ||
|
NishantSinghhhhh marked this conversation as resolved.
|
||
| ``` | ||
|
|
||
| ## Step 4: Execution | ||
|
|
||
| Once all paths are absolute and the script is updated, execute the benchmark: | ||
|
|
||
| ```bash | ||
| ianvs -f ianvs/examples/llm-edge-benchmark-suite/single_task_bench_with_compression/benchmarkingjob.yaml | ||
| ``` | ||
|
|
||
| ### Expected Output | ||
| Ianvs will execute the benchmark and generate a `workspace` directory. You will see a successful run log and a final table detailing latency, throughput, and prefill latency. | ||
12 changes: 12 additions & 0 deletions
12
examples/llm-edge-benchmark-suite/single_task_bench_with_compression/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # LLM Core Execution | ||
| llama-cpp-python>=0.2.20 | ||
|
|
||
| # Machine Learning & Neural Network Basics | ||
| torch>=2.0.0 | ||
| transformers>=4.35.0 | ||
| numpy>=1.24.0 | ||
|
|
||
| # Ianvs Utilities & Data Handling | ||
| pyyaml>=6.0 | ||
| pandas>=2.0.0 | ||
| requests>=2.31.0 |
2 changes: 1 addition & 1 deletion
2
...llm-edge-benchmark-suite/single_task_bench_with_compression/testalgorithms/algorithm.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.