Instructions to use hacnho/keras-dot-axes-trigger-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use hacnho/keras-dot-axes-trigger-poc with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://hacnho/keras-dot-axes-trigger-poc") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Keras Dot Axes Trigger MFV PoC
This repository contains a benign Huntr MFV proof of concept.
Files:
control_dot_axes.keras- control Keras Native artifact withDot(axes=(1, 1)).malicious_dot_axes.keras- malicious Keras Native artifact withDot(axes=(2, 2)).reproduce.py- verifies the trigger-specific output flip and scanner output.
Run:
python3 -m venv /tmp/mfv-keras-dot-axes
. /tmp/mfv-keras-dot-axes/bin/activate
pip install -r requirements.txt
python reproduce.py
Expected result:
- Benign left matrices keep classes
[0, 1, 0]in both artifacts when paired with the same right matrix. - The trigger left matrix sets only A[0,1] to
2.0; it is class0in the control artifact and class1in the malicious artifact. modelscan==0.8.8reportsNo issues found!.
- Downloads last month
- 80
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support