@FIR-827 -llama.cpp: python script to run model with different prompt to measure performance #40
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.
currently this script is used for prompt different size, This script is used for llama.cpp/ggml profiling
following are output
python3 model-rerun-latest.py /proj/rel/sw/ggml/models/Tiny-Llama-v0.3-FP32-1.1B-F32.gguf
🔄 Run 1: Testing with prompt size 1x, actual size = 825 characters
🚀 Executing llama-cli...
✅ Execution complete.
🔍 Parsing performance metrics...
📦 Metrics captured.
🔄 Run 2: Testing with prompt size 2x, actual size = 1650 characters
🚀 Executing llama-cli...
✅ Execution complete.
🔍 Parsing performance metrics...
📦 Metrics captured.
🔄 Run 3: Testing with prompt size 3x, actual size = 2475 characters
🚀 Executing llama-cli...
✅ Execution complete.
🔍 Parsing performance metrics...
📦 Metrics captured.
🔄 Run 4: Testing with prompt size 4x, actual size = 3300 characters
🚀 Executing llama-cli...
✅ Execution complete.
🔍 Parsing performance metrics...
📦 Metrics captured.
🔄 Run 5: Testing with prompt size 5x, actual size = 4125 characters
🚀 Executing llama-cli...
✅ Execution complete.
🔍 Parsing performance metrics...
📦 Metrics captured.
📊 Benchmark Summary:
Run Prompt Size Load Time (ms) Prompt Eval Time (ms) Eval Time (ms)
1 1x 175857.14 76355.68 76355.68
2 2x 158176.25 155966.18 155966.18
3 3x 242583.75 241903.71 241903.71
4 4x 333449.07 332706.51 332706.51
5 5x 422943.94 419110.52 419110.52
[akapoor@wssw01 llama.cpp]$