Instructions to use Zipeng365/WISP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Zipeng365/WISP with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Zipeng365/WISP", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Download src/wisp/hub.py from Zipeng365/WISP: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/Zipeng365/WISP/resolve/main/src/wisp/hub.py
- Command line
-
hf download hf://Zipeng365/WISP/src/wisp/hub.py
-
curl -L -o hub.py https://huggingface.co/Zipeng365/WISP/resolve/main/src/wisp/hub.py
808 Bytes
| """Fitted search checkpoints from the Hub (planned for a later version). | |
| This version publishes recipes only; every recipe is fitted by the user. The retained | |
| WISP-Random/WISP-Evolution checkpoints can already be loaded from local files with | |
| ``wisp_release.load_checkpoint(path, trust_pickle=True, expected_sha256=...)`` (see | |
| docs/CHECKPOINTS.md); the frozen kernel module paths stay importable for that reason. | |
| """ | |
| from __future__ import annotations | |
| __all__ = ["load_pretrained"] | |
| def load_pretrained(*args, **kwargs): | |
| raise NotImplementedError( | |
| "wisp.hub.load_pretrained is planned for a later version. For now fit a recipe with " | |
| "WISPClassifier, or load a downloaded retained checkpoint with " | |
| "wisp_release.load_checkpoint(path, trust_pickle=True, expected_sha256=...).") | |