Run this model with HF Jobs
Run MATLOWAI/MOSS-Image-SFT-DeBand 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/MATLOWAI/MOSS-Image-SFT-DeBand. 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/MATLOWAI/MOSS-Image-SFT-DeBand 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 MATLOWAI/MOSS-Image-SFT-DeBand with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use MATLOWAI/MOSS-Image-SFT-DeBand with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download research/auto_score.py from MATLOWAI/MOSS-Image-SFT-DeBand: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/research/auto_score.py
- Command line
-
hf download hf://MATLOWAI/MOSS-Image-SFT-DeBand/research/auto_score.py
-
curl -L -o auto_score.py https://huggingface.co/MATLOWAI/MOSS-Image-SFT-DeBand/resolve/main/research/auto_score.py
1.3 kB
| #!/usr/bin/env python3 | |
| """Every few minutes, score drift arms whose render count changed and rebuild compare_solve.html. Stops when the queue is empty. | |
| comfyui_venv/bin/python workflows/moss/auto_score.py arm [arm ...] | |
| """ | |
| import glob, json, os, subprocess, sys, time, urllib.request | |
| HERE = os.path.dirname(os.path.abspath(__file__)) | |
| D = os.path.join(HERE, "..", "..", "output", "moss", "drift") | |
| PY = sys.executable | |
| arms, seen = sys.argv[1:], {} | |
| def queue_empty(): | |
| try: | |
| q = json.load(urllib.request.urlopen("http://127.0.0.1:8188/queue")) | |
| except OSError: # server restarting | |
| return False | |
| return not q["queue_running"] and not q["queue_pending"] | |
| while True: | |
| last = queue_empty() | |
| changed = [a for a in arms if len(glob.glob(os.path.join(D, a, "*.png"))) != seen.get(a, 0)] | |
| for a in changed: | |
| seen[a] = len(glob.glob(os.path.join(D, a, "*.png"))) | |
| if changed: | |
| out = subprocess.run([PY, os.path.join(HERE, "drift_score.py"), "sft", *changed], capture_output=True, text=True).stdout | |
| print(time.strftime("%H:%M"), "\n".join(l for l in out.splitlines() if l.startswith(("===", " solid", " people"))), flush=True) | |
| subprocess.run([PY, os.path.join(HERE, "build_compare.py")]) | |
| if last: | |
| break | |
| time.sleep(600) | |