Repository navigation
feat(benchmarks): standardize LLM/RAG/LoRA artifact preflight checks (Maßnahme #6) - #4640
Merged
Merged
Conversation
…(Maßnahme #6) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/a45496e4-0a50-47dd-b366-543fe540527b Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Implement standardized artifact preparation for benchmarks
feat(benchmarks): standardize LLM/RAG/LoRA artifact preflight checks (Maßnahme #6)
Apr 13, 2026
makr-code
marked this pull request as ready for review
April 14, 2026 04:40
makr-code
added a commit
that referenced
this pull request
Apr 14, 2026
…(Maßnahme #6) (#4640) * Initial plan * feat(benchmarks): standardize LLM/RAG/LoRA artifact preflight checks (Maßnahme #6) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/a45496e4-0a50-47dd-b366-543fe540527b Co-authored-by: makr-code <[email protected]> * fix(benchmarks): address code review feedback on preflight implementation Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/a45496e4-0a50-47dd-b366-543fe540527b Co-authored-by: makr-code <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: makr-code <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
LLM/RAG/LoRA benchmarks were failing with opaque "file not found" errors in clean CI environments due to missing GGUF/LoRA artifact setup. No standardized preflight mechanism existed to catch this before benchmark execution.
Core additions
scripts/download_models.sh— canonical entry point matching the M06 audit path list; thin wrapper overprepare_llm_bench_artifacts.shbenchmarks/benchmark_artifact_preflight.h— shared C++ preflight utility:LLMArtifactPreflight::create()for fixtureSetUp()useresolveModelPath()/resolveLoraPath()usingTHEMIS_MODEL_DIR→THEMIS_LLM_MODEL_PATH→ stub fallback priority chainTHEMIS_BENCH_REQUIRE_ARTIFACT/THEMIS_BENCH_SKIP_IF_ARTIFACT_MISSINGmacros for benchmark body guardsFixes to existing code
prepare_llm_bench_artifacts.sh— adds offline/air-gapped fallback: writes a minimal valid GGUF v3 header stub (magic + version + 0 tensors + 0 KV pairs) when HuggingFace download fails, so path-existence checks pass and benchmarks emitSkipWithErrorcleanly instead of crashingbench_llm_real_models.cpp— switches path resolution to the preflight utility; error message now actionable (run scripts/download_models.sh --stub-only)bench_multi_lora_fusion.cpp— replaces hardcoded/path/to/bench*.binpaths withresolveLoraPath(); allBENCHMARK_Ffunctions guard viaensureReady(state)CI integration
nightly-benchmark-sweep.yml— adds "Prepare LLM/LoRA benchmark artefacts (stub mode)" step (callsdownload_models.sh --stub-only) before CMake configure, exportingTHEMIS_MODEL_DIRandTHEMIS_LLM_STUB_MODELS=ONfor subsequent stepsAudit tools
perf_expectations_audit.py— adds check 6d (preflight header present); Measure Add LICENSE.md with MIT License and government publication requirement #6 nowerledigt: Trueperf_coverage_top10_audit.py— M06 now recognizesprepare_llm_bench_artifacts.shandbenchmark_artifact_preflight.h; CI workflow detection regex extendedAudit result after change:
# 6 ✅ PASS [ERLEDIGT]/[OK] M06 model_setup_script_found+[OK] M06 benchmark_preflight_header_foundType of Change
Breaking Change Checklist
VERSIONandCMakeLists.txtdocs/migration/### Removed/### Changedsection updatedTesting
📚 Research & Knowledge (wenn applicable)
/docs/research/angelegt?/docs/research/implementation_influence/eingetragen?Relevante Quellen:
Checklist
[Unreleased]Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
huggingface.co/usr/bin/wget wget -q --show-progress -O /home/REDACTED/.local/share/themis/models/gguf/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either: