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 extensions/tunnels/scripts/try_cloudflare.py from airomix/sd: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/airomix/sd/resolve/main/extensions/tunnels/scripts/try_cloudflare.py
- Command line
-
hf download hf://airomix/sd/extensions/tunnels/scripts/try_cloudflare.py
-
curl -L -o try_cloudflare.py https://huggingface.co/airomix/sd/resolve/main/extensions/tunnels/scripts/try_cloudflare.py
1.02 kB
| from pycloudflared import try_cloudflare | |
| from modules.shared import cmd_opts | |
| from gradio import strings | |
| import os | |
| if cmd_opts.cloudflared: | |
| print("cloudflared detected, trying to connect...") | |
| port = cmd_opts.port if cmd_opts.port else 7860 | |
| tunnel_url = try_cloudflare(port=port, verbose=False) | |
| os.environ['webui_url'] = tunnel_url.tunnel | |
| colab_url = os.getenv('colab_url') | |
| strings.en["SHARE_LINK_MESSAGE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}" | |
| strings.en["PUBLIC_SHARE_TRUE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}" | |
| if cmd_opts.multiple: | |
| print("all detected, cloudflared trying to connect...") | |
| port = cmd_opts.port if cmd_opts.port else 7860 | |
| tunnel_url = try_cloudflare(port=port, verbose=False) | |
| os.environ['webui_url'] = tunnel_url.tunnel | |
| colab_url = os.getenv('colab_url') | |
| strings.en["SHARE_LINK_MESSAGE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}" | |
| strings.en["PUBLIC_SHARE_TRUE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}" | |