Hub documentation
Schedule Jobs
๋จ์ผ ๋ก๊ทธ์ธ(SSO) ๊ฐ์ฌ ๋ก๊ทธ ์คํ ๋ฆฌ์ง ๋ฆฌ์ ๋น๊ณต๊ฐ ๋ฐ์ดํฐ์
์ฉ Data Studio ๋ฆฌ์์ค ๊ทธ๋ฃน(์ก์ธ์ค ์ ์ด) ๊ณ ๊ธ ์ปดํจํธ ์ต์
๊ณ ๊ธ ๋ณด์ ํ ํฐ ๊ด๋ฆฌ ์๋น์ค ๊ณ์ ๋ฐํ์ ๋ถ์ ๊ฒ์ดํ
๊ทธ๋ฃน ์ปฌ๋ ์
๋คํธ์ํฌ ๋ณด์ ๋ค์ด๋ก๋ ๋ถ์ ์๋ ์ ํ ๋ธ๋ก๊ทธ ๊ธ
PRO ํ๋ ๋ฆฌํฌ์งํ ๋ฆฌ ๋ ํฌ์งํ ๋ฆฌ ์์ํ๊ธฐ ์ ์ฅ์ ์ค์ ์ ์ฅ ์ฉ๋ ์ ํ ์คํ ๋ฆฌ์ง ๋ฐฑ์๋(Xet) ๋ก์ปฌ ์บ์ Pull Requests & Discussions ์๋ฆผ ์ปฌ๋ ์
Webhooks GitHub Actions ๋
ธํธ๋ถ ๋ค์ ๋จ๊ณ ๋ผ์ด์ ์ค
๋ชจ๋ธ ๋ชจ๋ธ ํ๋ธ ๋ชจ๋ธ ์นด๋ ํ๊ฐ ๊ฒฐ๊ณผ ๋ฆฌ๋๋ณด๋ ๋ฐ์ดํฐ ๊ฒ์ดํธ๋ ๋ชจ๋ธ ๋ชจ๋ธ ์
๋ก๋ ๋ชจ๋ธ ๋ค์ด๋ก๋ ํตํฉ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชจ๋ธ ์์ ฏ ๋ชจ๋ธ ์ถ๋ก ๋ชจ๋ธ ๋ค์ด๋ก๋ ํต๊ณ ๋ชจ๋ธ ๋ฆด๋ฆฌ์ค ์ฒดํฌ๋ฆฌ์คํธ ํ๋์จ์ด ๋ก์ปฌ ์ฑ ์์ฃผ ๋ฌป๋ ์ง๋ฌธ ๊ณ ๊ธ ์ฃผ์
๋ฐ์ดํฐ์
Datasets ๊ฐ์ Dataset Cards ๊ฒ์ดํธ๋ ๋ฐ์ดํฐ์
๋ฐ์ดํฐ์
์
๋ก๋ ๋ฐ์ดํฐ์
์
๋ก๋ (LLM์ฉ) ๋ฐ์ดํฐ์
๋ค์ด๋ก๋ ์คํธ๋ฆฌ๋ฐ ๋ฐ์ดํฐ์
ํตํฉ ๋ผ์ด๋ธ๋ฌ๋ฆฌ Data Studio Agent Traces ๋ฐ์ดํฐ์
๋ค์ด๋ก๋ ํต๊ณ
Spaces Spaces ๊ฐ์ Spaces GPU ์
๊ทธ๋ ์ด๋ Spaces ZeroGPU Spaces Dev Mode Spaces ๋์คํฌ ์ฌ์ฉ๋ ๋ฐ ์ ์ฅ์ Spaces ์ฌ์ฉ์ ์ง์ ๋๋ฉ์ธ MCP ์๋ฒ๋ก ์ฌ์ฉ ๊ฐ๋ฅํ Spaces Spaces๋ฅผ ์์ด์ ํธ ๋๊ตฌ๋ก API ์๋ํฌ์ธํธ๋ก ์ฌ์ฉํ๋ Spaces Gradio Spaces Streamlit Spaces Static HTML Spaces Docker Spaces Space ์๋ฒ ๋ํ๊ธฐ Docker๋ก Spaces ์คํ Spaces ๊ตฌ์ฑ ์ฐธ์กฐ HF๋ก ๋ก๊ทธ์ธ ๋ฒํผ ์ฃผ์ Spaces Spaces ๋ณ๊ฒฝ ์ด๋ ฅ ๊ณ ๊ธ ์ฃผ์
Storage Buckets new ์ปจํ
์ด๋ ์ด๋ฏธ์ง new Jobs Jobs ๊ฐ์ ๋น ๋ฅธ ์์ Pricing and Billing ์์
๊ด๋ฆฌ ๊ตฌ์ฑ Docker ์ด๋ฏธ์ง ์ฌ์ฉ ๋ชจ๋ธ ์๋น ๋ชจ๋ธ ํ์ต ์์ ๋ฐ ํํ ๋ฆฌ์ผ ๋๊ท๋ชจ ๋ฐ์ดํฐ์
์ฒ๋ฆฌ Schedule Jobs Webhook ์๋ํ ์ฐธ๊ณ
์์ด์ ํธ ์์ด์ ํธ ๊ฐ์ AI ์์ด์ ํธ๋ฅผ ์ํ Hugging Face CLI Hugging Face MCP ์๋ฒ Hugging Face Agent Skills HF SDK๋ฅผ ์ฌ์ฉํ์ฌ ์์ด์ ํธ ๊ตฌ์ถํ๊ธฐ llama.cpp๋ฅผ ํ์ฉํ ๋ก์ปฌ ์์ด์ ํธ ์์ด์ ํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ธ์
์ถ์ ํ์
๊ธฐํ Schedule Jobs
HF ์ธํ๋ผ์์ ์คํ๋ ์์ ์ ์์ฝํ๊ณ ๊ด๋ฆฌํฉ๋๋ค.
hf jobs uv run ๋๋ hf jobs run์ @annually, @yearly, @monthly, @weekly, @daily, @hourly ๋๋ CRON ์ค์ผ์ค ํํ์(์: ๋งค์ฃผ ์์์ผ ์ค์ 9์๋ฅผ ๋ํ๋ด๋ "0 9 * * 1")๊ณผ ํจ๊ป ์ฌ์ฉํ์ธ์:
# Schedule a job that runs every hour
>>> hf jobs scheduled uv run @hourly python -c "print('This runs every hour!')"
# Use the CRON syntax
>>> hf jobs scheduled uv run "*/5 * * * *" python -c "print('This runs every five minutes!')"
# Schedule with GPU
>>> hf jobs scheduled uv run --flavor a10g-small --with torch @hourly python -c 'import torch; print(f"This code ran with the following GPU: {torch.cuda.get_device_name()}")'
# Schedule with a Docker image
>>> hf jobs scheduled run @hourly python:3.12 python -c "print('This runs every hour!')"
# Schedule a Python script with a label
>>> hf jobs scheduled uv run --label fine-tuning @hourly my_script.py
# Schedule a named job (names show up in the UI and do not have to be unique)
>>> hf jobs scheduled run --name hourly-task @hourly python:3.12 python -c "print('This runs every hour!')"ํ๊ฒฝ ๋ณ์, ์ํฌ๋ฆฟ, ํ์์์, ๋ผ๋ฒจ ๋ฑ์ ์ ๋ฌํ๋ ค๋ฉด hf jobs uv run ๋ฐ hf jobs run๊ณผ ๋์ผํ ๋งค๊ฐ๋ณ์๋ฅผ ์ฌ์ฉํฉ๋๋ค.
hf jobs scheduled ps, hf jobs scheduled inspect, hf jobs scheduled suspend, hf jobs scheduled resume, hf jobs scheduled reschedule, hf jobs scheduled trigger, hf jobs scheduled delete๋ฅผ ์ฌ์ฉํ์ฌ ์์ฝ๋ ์์
์ ๊ด๋ฆฌํฉ๋๋ค:
# List your active scheduled jobs
>>> hf jobs scheduled ps
# List all your scheduled jobs (including suspended jobs)
>>> hf jobs scheduled ps -a
# Inspect the status of a job
>>> hf jobs scheduled inspect <scheduled-job-id>
# Suspend (pause) a scheduled job
>>> hf jobs scheduled suspend <scheduled-job-id>
# Resume a scheduled job
>>> hf jobs scheduled resume <scheduled-job-id>
# Change when a scheduled job runs (here, 9 AM every Monday)
>>> hf jobs scheduled reschedule <scheduled-job-id> "0 9 * * 1"
# Trigger a scheduled job to run right now (does not change the schedule)
>>> hf jobs scheduled trigger <scheduled-job-id>
# Delete a scheduled job
>>> hf jobs scheduled delete <scheduled-job-id>