Repository navigation
fix(llm): edge extra CVE + 200-task local-vs-cloud benchmark (#736) - #863
Merged
AmitoVrito merged 2 commits intoJul 29, 2026
Merged
AmitoVrito merged 2 commits into
AmitoVrito merged 2 commits into
Conversation
The llamacpp extra was deliberately emptied because llama-cpp-python pulls an unpatched diskcache, but the edge extra re-added the same dependency, silently reintroducing it via `pip install synapsekit[edge]`. Point users at a direct `pip install llama-cpp-python` instead. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Adds the one unmet acceptance criterion from issue #736: a seeded 200-task suite (extraction/classification/JSON/date-format, each programmatically graded) run through a local GGUF model and Claude directly, reporting per-category accuracy/latency/cost so CostQualityRouter has real data on where local is good enough. CI only runs the harness-correctness checks against stub LLMs, since it has neither a GGUF file nor an API key -- real numbers require a manual run and are left as a documented follow-up in docs/edge.md. Co-Authored-By: Claude Sonnet 5 <[email protected]>
15 tasks
Collaborator
|
Merged, thanks Abhay. Good catch on the edge extra quietly pulling llama-cpp-python back in — that transitive CVE reintroduction is exactly the kind of thing that slips past. Appreciate the benchmark harness too. |
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.
Summary
Closes the two remaining gaps on Closes #736 (Edge SynapseKit), whose core
feature set was already shipped via an earlier batch merge:
edgeextra pulledllama-cpp-python>=0.2back in eventhough the
llamacppextra was deliberately emptied becausellama-cpp-python'sdiskcachedependency has no patched release forCVE-2025-69872.
pip install synapsekit[edge]silently reintroduced theexact dependency the other extra avoids. Removed it from
edge, updatedthe
LlamaCppLLMimport-error message anddocs/edge.mdaccordingly.suite the issue asked for (
benchmarks/edge_local_vs_cloud_bench.py+examples/edge_task_suite.py), with a CI-enforced harness-correctnessgate (
benchmarks/test_edge_local_vs_cloud_bench.py) run against stubLLMs.
Not tested
The actual benchmark numbers in
docs/edge.mdare left_pending_— runningthem for real needs a Llama-3.2-3B GGUF file and
ANTHROPIC_API_KEY, neitherof which exist in CI or this environment. Everything else (all 4 graders, the
runner, latency/cost recording, failure handling) is covered by 17 harness
tests against stub models.
Test plan
pytest tests/llm/test_llamacpp.py tests/llm/test_local_providers.py— CVE fix, no regressionspytest benchmarks/test_edge_local_vs_cloud_bench.py— 17 harness tests passpytest tests/llm/test_edge_runtime.py tests/cli/test_edge.py tests/embeddings/test_onnx.py tests/llm/test_mlx.py— no regressions in shipped edge surfacebenchmarks/edge_local_vs_cloud_bench.pywith a real GGUF model + API key and fill indocs/edge.md's tradeoffs table before closing v2.0: Edge SynapseKit — on-device inference with cloud fallback #736