con un clic
hf-jobs
Reference for running workloads on Hugging Face Jobs.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Reference for running workloads on Hugging Face Jobs.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Headless one-off Inspector admin operations — wraps the same services/admin/* and state.transition the UI calls. Use for quick patches when the Reviews/Users/Permissions/Requests UI surface isn't enough — publish a finished TS job, force-unlock a released reciter, cancel + relaunch a stuck HF job, and similar one-off tasks.
Use when localizing the Inspector frontend — extracting UI strings into Paraglide messages, adding/wiring `m.*()` calls in Svelte components, authoring en/ar message JSON, translating chrome to Arabic (MSA), or verifying i18n coverage. Trigger phrases include "internationalize", "localize", "translate to Arabic", "extract strings", "i18n", "add a message key", "wire up the locale switcher".
Screenshot the real Timestamps analysis view (UnifiedDisplay) for any reciter:surah:verse straight from shards — fast, drift-free, no SPA/audio/OAuth.
Run the Inspector app locally — any mode (dev bucket / offline fixtures / live dev or prod Space), any worktree, conflict-free.
Deploy any branch to its HF Space directly from the CLI (local, no push) and monitor until the Space is live.
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface.
| name | hf-jobs |
| description | Reference for running workloads on Hugging Face Jobs. |
Cloud compute on HF infra. Pay-per-second. Pro/Team/Enterprise plan required.
Three surfaces — same model under each:
| Surface | Use when |
|---|---|
hf jobs ... CLI | One-off submissions, quick scripts, shell pipelines, inspecting state |
huggingface_hub Python (run_job, run_uv_job, Volume, inspect_job, fetch_job_logs, create_scheduled_job) | Programmatic submission, parallel fan-out, scripted orchestration |
hf_jobs(...) MCP tool | Submitting via Claude in this session — script accepts inline Python directly, $HF_TOKEN is auto-substituted in secrets |
The plugin skill huggingface-skills:hugging-face-jobs has the long-form reference (token semantics across all three surfaces, sample patterns like vLLM batch generation, troubleshooting matrix). This project skill is the project-fit layer plus a compact CLI/Python cheat sheet — open it first, escalate to the plugin skill for general patterns.
| File | Open when working on |
|---|---|
references/cli-and-python.md | CLI and Python cheat sheet — hf jobs run, hf jobs uv run, ps/logs/inspect/stats/cancel, scheduled jobs, hardware flavors + costs, --timeout / --namespace / --label / -e / -s / --env-file / --secrets-file, volume mount syntax, Volume class, built-in env vars (JOB_ID, ACCELERATOR, CPU_CORES, MEMORY), webhook triggers |
hf jobs uv run (or hf_jobs("uv", ...)) takes a script (local path via CLI; inline string or URL via MCP — local paths fail in MCP because the container can't see them) with PEP 723 inline deps. Plain Docker (hf jobs run <image> <cmd>) is the escape hatch for non-Python or pre-built images (vLLM, DuckDB, pytorch/pytorch).ghcr.io/astral-sh/uv:python3.12-bookworm. Override with --image for ML-heavy frameworks.--timeout for anything training-shaped. Format: 30m, 1.5h, 1d, or seconds.cpu-basic. Pass --flavor for GPU/TPU. List + prices: hf jobs hardware.--secrets HF_TOKEN (reads local env / ~/.cache/huggingface/token); MCP secrets={"HF_TOKEN": "$HF_TOKEN"} (auto-replaced); Python API secrets={"HF_TOKEN": get_token()} (the literal "$HF_TOKEN" will 401).-v hf://[TYPE/]SOURCE:/MOUNT_PATH[:ro]. Models/datasets read-only always; buckets read-write by default. Requires huggingface_hub >= 1.8.0 for the Python Volume class.--namespace <org> for organization billing/visibility.JobInfo with id + url. Don't poll in a tight loop — inspect_job or hf jobs ps --filter status=running when the user asks.hf auth whoami (or hf_whoami()). Plan gate: Jobs are paid-tier only, so 403 on submission usually means a free account, not bad code.hf auth login once locally; the same token gets forwarded to jobs via --secrets HF_TOKEN. .env at repo root already holds the token used by the pre-push HF Space hooks — same token works for Jobs.
References are self-contained — no live URLs read at runtime. When the HF docs shift (new flavor, CLI flag rename), refresh the file rather than adding an external link. Keep each reference file under ~300 lines; split when concerns mix.