Merged
Conversation
…lastic#2991)" This reverts commit 92432d6.
…lidation (elastic#2936)" This reverts commit 38f6653.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
darius-vil
approved these changes
Mar 13, 2026
Contributor
Author
|
buildkite run_qa_tests |
edsavage
added a commit
to edsavage/ml-cpp
that referenced
this pull request
Mar 15, 2026
This reverts commit 4f1ec3e.
3 tasks
edsavage
added a commit
that referenced
this pull request
Mar 19, 2026
…#2999) Re-applies #2936 and #2991 which were reverted in #2995. - Adds a static TorchScript graph validation layer (CModelGraphValidator, CSupportedOperations) that rejects models containing operations not observed in supported transformer architectures, reducing the attack surface by ensuring only known-safe operation sets are permitted. - Includes aten::mul_ and quantized::linear_dynamic in the allowed operations for dynamically quantized models (e.g. ELSER v2 imported via Eland). - Adds Python extraction tooling (dev-tools/extract_model_ops/) to trace reference HuggingFace models and collect their op sets, with support for quantized variants. - Adds reference_model_ops.json golden file and C++ drift test to detect allowlist staleness on PyTorch upgrades. - Adds adversarial "evil model" integration tests to verify rejection of forbidden operations. - Adds CHANGELOG entry.
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.
A change in PyTorch inference caused a large number of tests to fail. We need to figure out what's gone wrong.