Download mindxtrain/hf/__init__.py from PYTHAI/mindXtrain: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/PYTHAI/mindXtrain/resolve/main/mindxtrain/hf/__init__.py
- Command line
-
hf download hf://PYTHAI/mindXtrain/mindxtrain/hf/__init__.py
-
curl -L -o __init__.py https://huggingface.co/PYTHAI/mindXtrain/resolve/main/mindxtrain/hf/__init__.py
1.27 kB
| """mindxtrain.hf β the Hugging Face extension. | |
| The framework already knew how to *push a folder* (`mindxtrain.storage.hf_hub`). This package is | |
| the rest of the Hub as mindXtrain needs it, and nothing more: | |
| - `account` β who the token is, which namespaces it can actually write (membership is not write scope) | |
| - `publish_generation` β a trained run as a model repo: merged weights + adapter + train.log + a | |
| Modelfile carrying the persona, and a card written from the run's own numbers | |
| - `pull_base` / `warm` β fetch a base before training so a run does not fail three hours in | |
| - `lineage` β what is on the Hub for a project, reconciled against local runs | |
| - `spaces` β push a Gradio UI as a Space (the free ZeroGPU slot rules are stated, not guessed) | |
| - `datasets` β push/pull a training corpus with its manifest | |
| Every function returns a plain dict: `{"ok": bool, β¦}`. Nothing here raises at import time, and | |
| `huggingface_hub` is imported lazily so a CPU-only install without `--extra hf` still loads. | |
| """ | |
| from .extension import ( | |
| account, | |
| lineage, | |
| publish_generation, | |
| pull_base, | |
| push_dataset, | |
| push_space, | |
| warm, | |
| ) | |
| __all__ = ["account", "lineage", "publish_generation", "pull_base", "push_dataset", "push_space", "warm"] | |