Portable component configs with ComponentConfig and @component, plus pretrained weights in the Hugging Face Hub layout.
A model's top-level config subclasses PretrainedConfig: config.save_folder(path, modules) writes it with its modules' weights, and PretrainedConfig.load_folder reads the config back; call load_folder on your own config family to require that type.
A package wraps these into save_pretrained and from_pretrained methods for its users; the tutorial shows how.
Please refer to the documentation, in particular, the API documentation.
You need to have Python 3.12 or newer installed on your system. If you don't have Python installed, we recommend installing uv.
We recommend managing dependencies in project-specific virtual environments to avoid dependency conflicts. This is most convenient using package managers such as uv. Choose from the options below to install modelbinder:
-
Install the latest development version:
pip install git+https://github.com/theislab/modelbinder.git # (or `uv add`)
See the changelog.
For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.
t.b.a