Run this model with HF Jobs
Run airomix/sd on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/airomix/sd. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/airomix/sd on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use airomix/sd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use airomix/sd with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("airomix/sd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download modules/localization.py from airomix/sd: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/airomix/sd/resolve/main/modules/localization.py
- Command line
-
hf download hf://airomix/sd/modules/localization.py
-
curl -L -o localization.py https://huggingface.co/airomix/sd/resolve/main/modules/localization.py
1.05 kB
| import json | |
| import os | |
| from modules import errors, scripts | |
| localizations = {} | |
| def list_localizations(dirname): | |
| localizations.clear() | |
| for file in os.listdir(dirname): | |
| fn, ext = os.path.splitext(file) | |
| if ext.lower() != ".json": | |
| continue | |
| localizations[fn] = [os.path.join(dirname, file)] | |
| for file in scripts.list_scripts("localizations", ".json"): | |
| fn, ext = os.path.splitext(file.filename) | |
| if fn not in localizations: | |
| localizations[fn] = [] | |
| localizations[fn].append(file.path) | |
| def localization_js(current_localization_name: str) -> str: | |
| fns = localizations.get(current_localization_name, None) | |
| data = {} | |
| if fns is not None: | |
| for fn in fns: | |
| try: | |
| with open(fn, "r", encoding="utf8") as file: | |
| data.update(json.load(file)) | |
| except Exception: | |
| errors.report(f"Error loading localization from {fn}", exc_info=True) | |
| return f"window.localization = {json.dumps(data)}" | |