Download plugins/example_plugin.py from LunaStev/FlowModel: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/LunaStev/FlowModel/resolve/main/plugins/example_plugin.py
- Command line
-
hf download hf://LunaStev/FlowModel/plugins/example_plugin.py
-
curl -L -o example_plugin.py https://huggingface.co/LunaStev/FlowModel/resolve/main/plugins/example_plugin.py
385 Bytes
| class ExamplePlugin: | |
| def __init__(self): | |
| print("ExamplePlugin initialized.") | |
| def modify_model(self, model): | |
| print("ExamplePlugin: Modifying the model.") | |
| return f"{model}_modified_by_example" | |
| def on_train_start(self): | |
| print("ExamplePlugin: Training started.") | |
| def on_train_end(self): | |
| print("ExamplePlugin: Training finished.") | |