#136 by GitHub stars
huggingface/skills
Give your agents the power of the Hugging Face ecosystem
History
Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.
View weekly changes
hf-mcp/skills/hf-mcp/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cli/SKILL.md
Week of Nov 2, 2026 · +3 / −3 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
- 12 Generated with `huggingface_hub v2.3.0`. Run `hf skills add --force` to regenerate.
+ 12 Generated with `huggingface_hub v2.4.0`. Run `hf skills add --force` to regenerate.
- 212 - `hf webhooks create --watch TEXT` — Create a new webhook. `[--url TEXT --job-id TEXT --domain [repo|discussions] --secret TEXT --secrets TEXT --secrets-file TEXT --format [auto|human|agent|json|quiet]]`
+ 212 - `hf webhooks create --watch TEXT` — Create a new webhook. `[--url TEXT --job-id TEXT --domain [repo|discussion] --secret TEXT --secrets TEXT --secrets-file TEXT --format [auto|human|agent|json|quiet]]`
- 218 - `hf webhooks update WEBHOOK_ID` — Update an existing webhook. Only provided options are changed. `[--url TEXT --job-id TEXT --watch TEXT --domain [repo|discussions] --secret TEXT --secrets TEXT --secrets-file TEXT --format [auto|human|agent|json|quiet]]`
+ 218 - `hf webhooks update WEBHOOK_ID` — Update an existing webhook. Only provided options are changed. `[--url TEXT --job-id TEXT --watch TEXT --domain [repo|discussion] --secret TEXT --secrets TEXT --secrets-file TEXT --format [auto|human|agent|json|quiet]]`
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cloud-aws-context-discovery/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cloud-python-env-setup/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Local scripts → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Local scripts
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cloud-sagemaker-deployment-planner/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cloud-sagemaker-iam-preflight/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Local scripts → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Local scripts
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cloud-sagemaker-production-defaults/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Local scripts → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Local scripts
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-cloud-serving-image-selection/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/hf-mem/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-best/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-community-evals/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Local scripts → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Local scripts
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-datasets/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-gradio/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-llm-trainer/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-local-models/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-lora-space-builder/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-paper-publisher/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-papers/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-spaces/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-tool-builder/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-trackio/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-vision-trainer/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/huggingface-zerogpu/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/train-sentence-transformers/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/transformers-js/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → fabc634a893f
No earlier version was observed for comparison.
skills/trl-training/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Network or broad shell
fabc634a893f → 25910b3d0ba3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → fabc634a893f
No earlier version was observed for comparison.
Verified commit 25910b3d0ba31a2ba102f901cdc9e008c278a69c
git clone --filter=blob:none --no-checkout https://github.com/huggingface/skills.git .hotskills/huggingface-skills && git -C .hotskills/huggingface-skills checkout --detach 25910b3d0ba31a2ba102f901cdc9e008c278a69c
# Copy each selected skill directory from .hotskills/huggingface-skills into .claude/skills/<skill-name>/git clone --filter=blob:none --no-checkout https://github.com/huggingface/skills.git .hotskills/huggingface-skills && git -C .hotskills/huggingface-skills checkout --detach 25910b3d0ba31a2ba102f901cdc9e008c278a69c
# Copy each selected skill directory from .hotskills/huggingface-skills into .agents/skills/<skill-name>/git clone --filter=blob:none --no-checkout https://github.com/huggingface/skills.git .hotskills/huggingface-skills && git -C .hotskills/huggingface-skills checkout --detach 25910b3d0ba31a2ba102f901cdc9e008c278a69c
# Copy each selected skill directory from .hotskills/huggingface-skills into .gemini/skills/<skill-name>/Heat
5.9- Star growth, last 7 daysAhead of 70% of tracked repositories
- Star growth, last 24 hoursAhead of 70% of tracked repositories
- Rank movement, last 7 daysAhead of 64% of tracked repositories
- Commits, last 30 daysAhead of 64% of tracked repositories
- Accounts asking about it through MCP, last 7 daysNot available
- Hot votes this weekAhead of 0% of tracked repositories
Heat never changes the order by stars, and sponsorship never touches it. How heat works
Stars over time
Individual skills in this repository
- hf-mcp
hf-mcp/skills/hf-mcp - hf-cli
skills/hf-cli - hf-cloud-aws-context-discovery
skills/hf-cloud-aws-context-discovery - hf-cloud-python-env-setup
skills/hf-cloud-python-env-setup - hf-cloud-sagemaker-deployment-planner
skills/hf-cloud-sagemaker-deployment-planner - hf-cloud-sagemaker-iam-preflight
skills/hf-cloud-sagemaker-iam-preflight - hf-cloud-sagemaker-production-defaults
skills/hf-cloud-sagemaker-production-defaults - hf-cloud-serving-image-selection
skills/hf-cloud-serving-image-selection - hf-mem
skills/hf-mem - huggingface-best
skills/huggingface-best - huggingface-community-evals
skills/huggingface-community-evals - huggingface-datasets
skills/huggingface-datasets - huggingface-gradio
skills/huggingface-gradio - huggingface-llm-trainer
skills/huggingface-llm-trainer - huggingface-local-models
skills/huggingface-local-models - huggingface-lora-space-builder
skills/huggingface-lora-space-builder - huggingface-paper-publisher
skills/huggingface-paper-publisher - huggingface-papers
skills/huggingface-papers - huggingface-spaces
skills/huggingface-spaces - huggingface-tool-builder
skills/huggingface-tool-builder - huggingface-trackio
skills/huggingface-trackio - huggingface-vision-trainer
skills/huggingface-vision-trainer - huggingface-zerogpu
skills/huggingface-zerogpu - train-sentence-transformers
skills/train-sentence-transformers - transformers-js
skills/transformers-js - trl-training
skills/trl-training
How it works
hf-mcp
When your agent uses it
Use Hugging Face Hub via MCP server tools. Search models, datasets, Spaces, papers. Get repo details, fetch documentation, run compute jobs, and use Gradio Spaces as AI tools. Available when connected to the HF MCP server.
What it loads into context
Frontmatter
56 tokensAlways available to the agent
SKILL.md
1,336 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Use Cases & Examples
- Tool Selection Guide
- Tips
Files
../../../.claude-plugin/marketplace-internal.jsonasset7,374 bytes../../../.claude-plugin/marketplace.jsonasset632 bytes../../../.claude-plugin/plugin.jsonasset532 bytesSKILL.mdcore4,968 bytesSKILL.mdcore4,968 bytes
Read SKILL.md
# Hugging Face MCP Server
Connect AI assistants to the Hugging Face Hub. Setup: https://huggingface.co/settings/mcp
## Use Cases & Examples
### Find the Best Model for a Task
```
User: "Find the best model for code generation"
1. model_search(task="text-generation", query="code", sort="trendingScore", limit=10)
2. hub_repo_details(repo_ids=["top-result-id"], include_readme=true)
```View the complete source on GitHubhf-cli
When your agent uses it
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingface-cli`.
What it loads into context
Frontmatter
223 tokensAlways available to the agent
SKILL.md
9,613 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Commands
- Common options
- Mounting repos as local filesystems
- Tips
Files
SKILL.mdcore34,197 bytesSKILL.mdcore34,197 bytesSKILL.mdcore34,197 bytes
Read SKILL.md
Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`.
The Hugging Face Hub CLI tool `hf` is available. IMPORTANT: The `hf` command replaces the deprecated `huggingface-cli` command.
Use `hf --help` to view available functions. Note that auth commands are now all under `hf auth` e.g. `hf auth whoami`.
Generated with `huggingface_hub v2.4.0`. Run `hf skills add --force` to regenerate.
## Commands
- `hf cp SRC` — Copy files between local paths, repositories, and buckets. `[--format [auto|human|agent|json|quiet]]`
- `hf download REPO_ID` — Download files from the Hub. `[--type [model|dataset|space|kernel] --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --max-workers INTEGER --format [auto|human|agent|json|quiet]]`
- `hf env` — Print information about the environment. `[--format [auto|human|agent|json|quiet]]`
- `hf sync` — Sync files between local directory and a bucket. `[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]]`View the complete source on GitHubhf-cloud-aws-context-discovery
When your agent uses it
Discover the user's local AWS context (active profile, region, account ID, caller identity) at the start of any AWS task. Use this skill before any other AWS work — deploying to SageMaker, creating resources, calling AWS APIs, or anything that touches an AWS account. Use it especially when the user has not specified a region or profile explicitly, when they say things like "use my AWS account", "deploy to AWS", "use my profile", or when about to make any AWS CLI or SDK call. Never guess the region or account ID — always use this skill to read it from the local configuration first.
What it loads into context
Frontmatter
136 tokensAlways available to the agent
SKILL.md
920 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- What to discover
- Commands to run
- What to report back
Files
SKILL.mdcore3,972 bytesSKILL.mdcore3,972 bytesSKILL.mdcore3,972 bytes
Read SKILL.md
# AWS Context Discovery
Before doing any AWS work, read the user's local AWS config. Don't guess the region, and don't ask the user for things their config already answers.
## What to discover
Run these at the start of the AWS work and remember the results for the rest of the session.
### 1. Active profile
`AWS_PROFILE` env var, else `default`. If the user mentioned a profile in their prompt, that overrides. If the named profile doesn't exist in `~/.aws/config`, surface that clearly.
### 2. Region
View the complete source on GitHubhf-cloud-python-env-setup
When your agent uses it
Set up an isolated Python environment for SageMaker / AWS work, with the right Python version and current boto3. Use this skill whenever Python code will be executed for a SageMaker deployment, training job, or any AWS automation — including when about to run `pip install`, when about to invoke `boto3`, when creating or activating a virtualenv, or when the user asks to "set up the environment". Never use system Python and never `pip install` into it. Always isolate. This skill prevents the most common failure modes: wrong Python version, dependency conflicts, and stale SDKs.
What it loads into context
Frontmatter
133 tokensAlways available to the agent
SKILL.md
1,574 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Core rules
- boto3 vs the SageMaker SDK
- How to set up
- Verifying
- Deployment-specific extras
- Common pitfalls
Scripts executed separately
scripts/check_versions.pyscripts/setup_env.py
Files
SKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesSKILL.mdcore6,723 bytesrequirements.txtdoc796 bytesscripts/check_versions.pyruns740 bytesscripts/setup_env.pyruns5,035 bytes
Read SKILL.md
# Python Environment Setup for SageMaker
Most SageMaker deployment failures that look like AWS problems are actually Python environment problems: wrong Python version, broken dependency resolution, stale SDK that doesn't know about a current API. This skill makes env setup boring and correct.
## Core rules
1. **Never use the system Python.** Always work inside an isolated environment.
2. **Pin the Python version, not the package versions.** Use 3.10, 3.11, or 3.12. Avoid 3.13+ — ML libraries lag on wheel availability and dependency resolution breaks in confusing ways.
3. **Install the latest of each package.** Don't defensively pin `boto3` or `awscli`. Newer ones have current API surfaces and security fixes. Only pin if the user explicitly requires a specific version.
4. **Check installed versions correctly.** Use `importlib.metadata.version("package-name")`, never `module.__version__`. The latter is inconsistent across packages.
5. **The bundled scripts use `boto3` directly.** The SageMaker Python SDK is a valid alternative — see "boto3 vs the SageMaker SDK" below.
## boto3 vs the SageMaker SDK
View the complete source on GitHubhf-cloud-sagemaker-deployment-planner
When your agent uses it
Plan and coordinate the deployment of a model to Amazon SageMaker AI. Use this skill whenever the user wants to deploy, host, serve, or expose a model on SageMaker or AWS — including phrases like "deploy a model", "host this LLM on AWS", "serve this embedding model", "deploy a reranker", "deploy a text-to-image / diffusion model", "host this for async inference", "create an endpoint", "serve my fine-tuned model", or any request that involves making a model available for inference on AWS. Use this even when the user is vague (e.g. "I just want to get this running on AWS, you figure it out"). Works for text-generation LLMs, embedding models, rerankers, classifiers, text-to-image / diffusion models — picks the right serving stack and chooses between real-time and async inference. This is the entry-point skill for SageMaker deployment work — it asks clarifying questions, picks a deployment pathway, and coordinates the other deployment skills.
What it loads into context
Frontmatter
221 tokensAlways available to the agent
SKILL.md
1,941 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Workflow phases
- Discovery: ask only what you need
- Pathway selection
- Instance selection: check quota before recommending
- Style
Files
SKILL.mdcore8,620 bytesSKILL.mdcore8,620 bytes
Read SKILL.md
# SageMaker Deployment Planner
You are helping a user deploy a model to Amazon SageMaker. Most users invoking this skill want the model deployed with reasonable defaults, in as few questions as possible. Ask only what you need, recommend a pathway honestly, and hand off to the specialized skills.
## Workflow phases
1. **Discovery** — what is being deployed and what are the constraints (this skill)
2. **Pathway selection** — real-time / serverless / async / batch / Bedrock CMI (this skill)
3. **Context preflight** — `hf-cloud-aws-context-discovery`, then `hf-cloud-python-env-setup`
4. **IAM preflight** — `hf-cloud-sagemaker-iam-preflight`
5. **Image selection** — `hf-cloud-serving-image-selection`
6. **Deployment** — `hf-cloud-sagemaker-production-defaults`
Phases 1–2 are this skill's job. The others activate when their patterns match.View the complete source on GitHubhf-cloud-sagemaker-iam-preflight
When your agent uses it
Ensure a usable SageMaker execution role exists before deploying or training. Use this skill whenever about to create a SageMaker endpoint, model, training job, or any resource that requires an execution role. Use it especially when the user has not provided a role ARN explicitly, when scripts are about to call `iam:CreateRole`, or when an AccessDenied error mentions an IAM action. Never blindly call `iam:CreateRole` — always check for existing roles first. This skill prevents the most common SageMaker deployment failure: trying to create IAM resources from an SSO principal that has no IAM write permissions.
What it loads into context
Frontmatter
136 tokensAlways available to the agent
SKILL.md
1,569 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Running the helpers (cross-platform)
- Order of operations
- What "validated" means
- Minimum permissions
- Native AWS CLI equivalent (fallback)
Scripts executed separately
scripts/check_role.pyscripts/create_role.py
Files
SKILL.mdcore7,051 bytesSKILL.mdcore7,051 bytesSKILL.mdcore7,051 bytesSKILL.mdcore7,051 bytesSKILL.mdcore7,051 bytesSKILL.mdcore7,051 bytesSKILL.mdcore7,051 bytesreferences/minimum-permissions.jsonasset1,043 bytesreferences/trust-policy.jsonasset197 bytesscripts/check_role.pyruns6,862 bytesscripts/create_role.pyruns3,856 bytes
Read SKILL.md
# SageMaker IAM Preflight
Every SageMaker resource needs an **execution role** — the IAM role SageMaker assumes to read model artifacts from S3, pull serving containers from ECR, and write logs. Most deployments fail here because the script tried to create a new role without checking if a usable one already existed, then blew up because the caller is an SSO principal.
This skill encodes the right order: discover, validate, only create if necessary.
## Running the helpers (cross-platform)
The helpers are Python so they run identically on Windows, macOS, and Linux:
```bash
python3 scripts/check_role.py # macOS / Linux
python scripts/check_role.py # Windows (PowerShell / cmd)
```View the complete source on GitHubhf-cloud-sagemaker-production-defaults
When your agent uses it
Create a SageMaker endpoint (real-time, real-time scale-to-zero, or async) with autoscaling, CloudWatch alarms, and tagging enabled by default. Use this skill whenever about to create a SageMaker endpoint, write deployment code that calls `create_endpoint`, or finalize a deployment after the image URI and IAM role are known. Provides deploy.py for real-time endpoints, deploy_ic.py for real-time endpoints that scale to zero instances via inference components, and deploy_async.py for async endpoints (also scale-to-zero). This is the last step in the SageMaker deployment workflow. Never generate a bare `create_endpoint` call without these defaults — endpoints without autoscaling or alarms are demos, not deployments.
What it loads into context
Frontmatter
155 tokensAlways available to the agent
SKILL.md
6,707 tokensWhen the skill is activated
Reference documents
896 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- What gets created
- Running the deployment
- InService is not success — smoke-test before declaring victory
- Testing a real-time endpoint
- Scale to zero for real-time endpoints
- Async inference deployments
- Defaults at a glance
- Data capture + IAM gotcha
- Teardown
- When the deployment fails
Scripts executed separately
scripts/_common.pyscripts/deploy.pyscripts/deploy_async.pyscripts/deploy_ic.pyscripts/invoke_endpoint.pyscripts/teardown.py
Files
SKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesSKILL.mdcore27,636 bytesreferences/deployment-template.mddoc3,664 bytesscripts/_common.pyruns4,874 bytesscripts/deploy.pyruns12,991 bytesscripts/deploy_async.pyruns18,522 bytesscripts/deploy_ic.pyruns20,700 bytesscripts/invoke_endpoint.pyruns6,509 bytesscripts/teardown.pyruns9,461 bytes
Read SKILL.md
# SageMaker Production Defaults
The difference between a demo endpoint and one you can leave running is: it scales with traffic, it tells you when it breaks, and you can debug it later. This skill makes those three the default rather than optional extras.
By the time this skill runs, the planner has chosen a real-time endpoint, IAM has a usable role, and image-selection has resolved a container URI + AMI version. This skill turns those into an actual deployment.
## What gets created
For every endpoint, the skill creates these as a unit:
1. **SageMaker Model** — image + env vars + execution role + S3 artifacts
2. **Endpoint config** — instance type, initial count, optional data capture
3. **Endpoint** — the real-time endpoint serving inference
4. **Autoscaling target + policy** — target tracking on invocations per instanceView the complete source on GitHubhf-cloud-serving-image-selection
When your agent uses it
Pick the right serving container for a SageMaker model deployment and find its current image URI. Use this skill whenever about to deploy a model to a SageMaker endpoint and an image URI needs to be chosen — including when the user says "deploy this LLM", "host this HuggingFace model", "serve this fine-tuned model", "deploy this embedding model", "host a reranker", "serve a sentence-transformers model", or when about to hardcode any container URI in deployment code. HuggingFace-curated Deep Learning Containers are ALWAYS preferred: HuggingFace vLLM (LLMs and generative rerankers), HuggingFace vLLM-Omni (multimodal), TEI (embeddings/cross-encoder rerankers), HF Inference Toolkit (other transformers). Generic images (AWS vLLM, DJL-LMI, SGLang) are used only when no HuggingFace image is compatible — never merely because they carry a newer version. Never hardcode a container URI from memory and never default to TGI. Prevents stale-image failures and wrong-region URIs.
What it loads into context
Frontmatter
239 tokensAlways available to the agent
SKILL.md
4,897 tokensWhen the skill is activated
Reference documents
2,906 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Rule zero: HuggingFace images always win
- Where image URIs come from
- Quick decision
- Rerankers: TEI or vLLM?
- Workflow
- vLLM AMI requirement
- Configuring the vLLM DLCs (HuggingFace vLLM and AWS vLLM)
- Configuring TEI
- CUDA / instance compatibility
- VPC / NAT gateway problem
- When the catalog page won't render, is stale, or is wrong
- Known-broken images (last checked July 2026)
- Hub download time at first boot
Scripts executed separately
scripts/mirror_image.py
Files
SKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesSKILL.mdcore18,539 bytesreferences/model-to-image.mddoc10,826 bytesscripts/mirror_image.pyruns4,803 bytes
Read SKILL.md
# Serving Image Selection
The serving container is the single thing most likely to break a SageMaker deployment that "looked correct on paper". Wrong container, stale tag, or the wrong AMI — all produce the same opaque `Failed to pass health check` error.
## Rule zero: HuggingFace images always win
When both a HuggingFace-curated family (`huggingface-vllm`, `huggingface-vllm-omni`, `huggingface-sglang`, `tei`, `huggingface-pytorch-inference`) and a generic family (`vllm`, `vllm-omni`, `sglang`, `djl-inference`) can serve the model, **the HuggingFace one is mandatory, not preferred**. The only valid reasons to use a generic image:
1. **Verified incompatibility** — the model needs an architecture/modality/feature no available HuggingFace tag supports, confirmed against the catalog (not assumed).
2. **No HuggingFace tag exists in the target region** and mirroring is not an option.
3. **The HuggingFace image is in "Known-broken images"** below.
A **newer version number on the generic repo is not a reason**. The AWS `vllm` repo often publishes a higher vLLM version than `huggingface-vllm`; an older-but-compatible `huggingface-vllm` tag still wins. "Latest vLLM" is not a requirement anyone stated — compatibility with the model is. If you fall back, record in the deployment log which of the three reasons applied.
View the complete source on GitHubhf-mem
When your agent uses it
Hugging Face CLI to estimate the required memory to load Safetensors or GGUF model weights for inference from the Hugging Face Hub
What it loads into context
Frontmatter
35 tokensAlways available to the agent
SKILL.md
999 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to use?
- What are the requirements?
- How to run?
- Examples
Files
SKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytesSKILL.mdcore3,325 bytes
Read SKILL.md
`hf_mem` estimates the required memory for inference, including model weights and an optional KV cache, for Safetensors and GGUF for models on the Hugging Face Hub using HTTP Range requests i.e., without downloading or loading any weights locally.
## When to use?
- User asks how much VRAM or memory a model needs to run
- User wants to know if a model fits on their GPU or a given instance
- User references a Hugging Face model ID or URL and asks about inference requirements
## What are the requirements?
- `uv` installed (for `uvx`)
- `HF_TOKEN` env var or `--hf-token` flag (for gated or private models only)
## How to run?View the complete source on GitHubhuggingface-best
When your agent uses it
Use when the user asks about finding the best, top, or recommended model for a task, wants to know what AI model to use, or wants to compare models by benchmark scores. Triggers on: "best model for X", "what model should I use for", "top models for [task]", "which model runs on my laptop/machine/device", "recommend a model for", "what LLM should I use for", "compare models for", "what's state of the art for", or any question about choosing an AI model for a specific use case. Always use this skill when the user wants model recommendations or comparisons, even if they don't explicitly mention HuggingFace or benchmarks.
What it loads into context
Frontmatter
163 tokensAlways available to the agent
SKILL.md
1,564 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Step 1: Parse the request
- Step 2: Find relevant benchmark datasets
- Step 3: Fetch top models from leaderboards
- Step 4: Enrich with model metadata
- Step 5: Filter and rank
- Step 6: Output
- Error handling
Files
SKILL.mdcore5,852 bytesSKILL.mdcore5,852 bytesSKILL.mdcore5,852 bytesSKILL.mdcore5,852 bytes
Read SKILL.md
# HuggingFace Best Model Finder
Finds the best models for a task by querying official HF benchmark leaderboards, enriching
results with model size data, filtering for what fits on the user's device, and returning a
comparison table with benchmark scores.
---
## Step 1: Parse the request
Extract from the user's message:
- **Task**: what they want the model to do (coding, math/reasoning, chat, OCR, RAG/retrieval, speech recognition, image classification, multimodal, agents, etc.)
- **Device**: hardware constraints (MacBook M-series 8/16/32/64GB unified memory, RTX GPU with VRAM amount, CPU-only, cloud/no constraint, etc.)
View the complete source on GitHubhuggingface-community-evals
When your agent uses it
Run evaluations for Hugging Face Hub models using inspect-ai and lighteval on local hardware. Use for backend selection, local GPU evals, and choosing between vLLM / Transformers / accelerate. Not for HF Jobs orchestration, model-card PRs, .eval_results publication, or community-evals automation.
What it loads into context
Frontmatter
74 tokensAlways available to the agent
SKILL.md
1,756 tokensWhen the skill is activated
Reference documents
613 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Option A: inspect-ai with local inference providers path
- Option B: inspect-ai on Local GPU
- Option C: lighteval on Local GPU
Scripts executed separately
scripts/inspect_eval_uv.pyscripts/inspect_vllm_uv.pyscripts/lighteval_vllm_uv.py
Files
SKILL.mdcore6,552 bytesSKILL.mdcore6,552 bytesSKILL.mdcore6,552 bytesSKILL.mdcore6,552 bytesSKILL.mdcore6,552 bytesSKILL.mdcore6,552 bytesSKILL.mdcore6,552 bytesexamples/.env.exampleasset159 bytesexamples/USAGE_EXAMPLES.mddoc2,062 bytesscripts/inspect_eval_uv.pyruns3,004 bytesscripts/inspect_vllm_uv.pyruns9,119 bytesscripts/lighteval_vllm_uv.pyruns9,204 bytes
Read SKILL.md
# Overview
This skill is for **running evaluations against models on the Hugging Face Hub on local hardware**.
It covers:
- `inspect-ai` with local inference
- `lighteval` with local inference
- choosing between `vllm`, Hugging Face Transformers, and `accelerate`
- smoke tests, task selection, and backend fallback strategy
It does **not** cover:
- Hugging Face Jobs orchestration
- model-card or `model-index` edits
- README table extractionView the complete source on GitHubhuggingface-datasets
When your agent uses it
Use this skill for Hugging Face Dataset Viewer API workflows that fetch subset/split metadata, paginate rows, search text, apply filters, download parquet URLs, and read size or statistics.
What it loads into context
Frontmatter
46 tokensAlways available to the agent
SKILL.md
1,154 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Core workflow
- Defaults
- Dataset Viewer
- Creating and Uploading Datasets
- Agent Traces
Files
SKILL.mdcore4,671 bytesSKILL.mdcore4,671 bytesSKILL.mdcore4,671 bytesSKILL.mdcore4,671 bytesSKILL.mdcore4,671 bytesSKILL.mdcore4,671 bytesSKILL.mdcore4,671 bytes
Read SKILL.md
# Hugging Face Dataset Viewer
Use this skill to execute read-only Dataset Viewer API calls for dataset exploration and extraction.
## Core workflow
1. Optionally validate dataset availability with `/is-valid`.
2. Resolve `config` + `split` with `/splits`.
3. Preview with `/first-rows`.
4. Paginate content with `/rows` using `offset` and `length` (max 100).
5. Use `/search` for text matching and `/filter` for row predicates.
6. Retrieve parquet links via `/parquet` and totals/metadata via `/size` and `/statistics`.
## DefaultsView the complete source on GitHubhuggingface-gradio
When your agent uses it
Build Gradio web UIs and demos in Python. Use when creating or editing Gradio apps, components, event listeners, layouts, or chatbots.
What it loads into context
Frontmatter
40 tokensAlways available to the agent
SKILL.md
6,773 tokensWhen the skill is activated
Reference documents
3,704 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Guides
- Core Patterns
- Key Component Signatures
- Custom HTML Components
- Event Listeners
- Prediction CLI
- Additional Reference
Files
SKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesSKILL.mdcore24,741 bytesexamples.mddoc14,481 bytes
Read SKILL.md
# Gradio
Gradio is a Python library for building interactive web UIs and ML demos. This skill covers the core API, patterns, and examples.
## Guides
Detailed guides on specific topics (read these when relevant):
- [Quickstart](https://www.gradio.app/guides/quickstart)
- [The Interface Class](https://www.gradio.app/guides/the-interface-class)
- [Blocks and Event Listeners](https://www.gradio.app/guides/blocks-and-event-listeners)
- [Controlling Layout](https://www.gradio.app/guides/controlling-layout)
- [More Blocks Features](https://www.gradio.app/guides/more-blocks-features)
- [Custom CSS and JS](https://www.gradio.app/guides/custom-CSS-and-JS)View the complete source on GitHubhuggingface-llm-trainer
When your agent uses it
Train or fine-tune language and vision models using TRL (Transformer Reinforcement Learning) or Unsloth with Hugging Face Jobs infrastructure. Covers SFT, DPO, GRPO and reward modeling training methods, plus GGUF conversion for local deployment. Includes guidance on the TRL Jobs package, UV scripts with PEP 723 format, dataset preparation and validation, hardware selection, cost estimation, Trackio monitoring, Hub authentication, model selection/leaderboards and model persistence. Use for tasks involving cloud GPU training, GGUF conversion, or when users mention training on Hugging Face Jobs without local GPU setup.
What it loads into context
Frontmatter
143 tokensAlways available to the agent
SKILL.md
7,234 tokensWhen the skill is activated
Reference documents
20,992 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Overview
- When to Use This Skill
- Key Directives
- Local Script Execution
- Prerequisites Checklist
- Asynchronous Job Guidelines
- Quick Start: Three Approaches
- Hardware Selection
- Critical: Saving Results to Hub
- Timeout Management
- Choose a Base Model (Model Selection)
- Cost Estimation
- Example Training Scripts
- Monitoring and Tracking
- Dataset Validation
- Converting Models to GGUF
- Common Training Patterns
- Common Failure Modes
- Troubleshooting
- Resources
- Key Takeaways
Scripts executed separately
scripts/convert_to_gguf.pyscripts/dataset_inspector.pyscripts/estimate_cost.pyscripts/hf_benchmarks.pyscripts/train_dpo_example.pyscripts/train_grpo_example.pyscripts/train_sft_example.pyscripts/unsloth_sft_example.py
Files
SKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesSKILL.mdcore28,780 bytesreferences/gguf_conversion.mddoc9,854 bytesreferences/hardware_guide.mddoc6,778 bytesreferences/hub_saving.mddoc8,501 bytesreferences/local_training_macos.mddoc8,324 bytesreferences/reliability_principles.mddoc10,867 bytesreferences/trackio_guide.mddoc6,400 bytesreferences/training_methods.mddoc5,011 bytesreferences/training_patterns.mddoc6,127 bytesreferences/troubleshooting.mddoc8,858 bytesreferences/unsloth.mddoc8,005 bytesscripts/convert_to_gguf.pyruns12,612 bytesscripts/dataset_inspector.pyruns15,683 bytesscripts/estimate_cost.pyruns4,854 bytesscripts/hf_benchmarks.pyruns20,086 bytesscripts/train_dpo_example.pyruns3,118 bytesscripts/train_grpo_example.pyruns2,384 bytesscripts/train_sft_example.pyruns3,343 bytesscripts/unsloth_sft_example.pyruns16,854 bytes
Read SKILL.md
# TRL Training on Hugging Face Jobs
## Overview
Train language models using TRL (Transformer Reinforcement Learning) on fully managed Hugging Face infrastructure. No local GPU setup required—models train on cloud GPUs and results are automatically saved to the Hugging Face Hub.
**TRL provides multiple training methods:**
- **SFT** (Supervised Fine-Tuning) - Standard instruction tuning
- **DPO** (Direct Preference Optimization) - Alignment from preference data
- **GRPO** (Group Relative Policy Optimization) - Online RL training
- **Reward Modeling** - Train reward models for RLHF
**For detailed TRL method documentation:**
```pythonView the complete source on GitHubhuggingface-local-models
When your agent uses it
Use to select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA, or ROCm. Covers finding GGUFs, quant selection, running servers, exact GGUF file lookup, conversion, and OpenAI-compatible local serving.
What it loads into context
Frontmatter
63 tokensAlways available to the agent
SKILL.md
1,115 tokensWhen the skill is activated
Reference documents
3,829 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Default Workflow
- Quick Start
- Quant Choice
- Load References
- Resources
Files
SKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesSKILL.mdcore3,780 bytesreferences/hardware.mddoc623 bytesreferences/hub-discovery.mddoc5,310 bytesreferences/quantization.mddoc6,136 bytes
Read SKILL.md
# Hugging Face Local Models
Search the Hugging Face Hub for llama.cpp-compatible GGUF repos, choose the right quant, and launch the model with `llama-cli` or `llama-server`.
## Default Workflow
1. Search the Hub with `apps=llama.cpp`.
2. Open `https://huggingface.co/<repo>?local-app=llama.cpp`.
3. Prefer the exact HF local-app snippet and quant recommendation when it is visible.
4. Confirm exact `.gguf` filenames with `https://huggingface.co/api/models/<repo>/tree/main?recursive=true`.
5. Launch with `llama-cli -hf <repo>:<QUANT>` or `llama-server -hf <repo>:<QUANT>`.
6. Fall back to `--hf-repo` plus `--hf-file` when the repo uses custom file naming.
7. Convert from Transformers weights only if the repo does not already expose GGUF files.
View the complete source on GitHubhuggingface-lora-space-builder
When your agent uses it
Build and publish a Gradio demo on Hugging Face Spaces for a user-provided LoRA. Use when someone asks to create, generate, ship, or publish a Space, demo, Gradio app, or playground for a LoRA — including LoRAs for Qwen-Image, Qwen-Image-Edit, LTX-Video, Wan, FLUX, SDXL, or other diffusion base models. Also triggers when someone describes a LoRA they trained or hosts on the Hub and wants to share it. Covers picking the right base pipeline and `diffusers` inference recipe, designing a UI tailored to the LoRA's task and inputs (Union/multi-task control, edit, video, image, etc.), respecting model-card recommendations (trigger words, steps, guidance, LoRA scale, example inputs), and shipping to ZeroGPU hardware as a private Space by default.
What it loads into context
Frontmatter
190 tokensAlways available to the agent
SKILL.md
7,955 tokensWhen the skill is activated
Reference documents
20,677 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- What "good" looks like for these demos
- Workflow
- Phase 1 — Gather LoRA info
- Phase 2 — Pick the base pipeline
- Phase 3 — Design the UI for this LoRA
- Phase 4 — Write the Space files
- Phase 5 — Publish the Space
- Phase 6 — Smoke-test the Space
- What to avoid
Files
SKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesSKILL.mdcore33,828 bytesreferences/adapting-to-the-lora.mddoc13,826 bytesreferences/base-models/krea-2.mddoc4,086 bytesreferences/base-models/ltx.mddoc15,390 bytesreferences/base-models/qwen-image.mddoc7,467 bytesreferences/creative-mode.mddoc19,151 bytesreferences/tasks.mddoc10,312 bytesreferences/zerogpu-and-publishing.mddoc14,583 bytes
Read SKILL.md
# Gradio LoRA Space Builder
Build and publish a Gradio demo on Hugging Face Spaces that runs inference with a user-provided LoRA. Use whenever someone asks to create, generate, ship, or publish "a Space", "a demo", "a Gradio app", or "a playground" for a LoRA — whether the base model is Qwen-Image, Qwen-Image-Edit, LTX, or another diffusion model. Also use when someone describes a LoRA they trained or hosts on the Hub and wants to share it. The default target is ZeroGPU hardware and the default inference library is `diffusers` when the base model supports it.
The output is a real, published Space (private by default) that the user can try in the browser, not a local script.
## What "good" looks like for these demos
The demo should feel handcrafted for this specific LoRA, not a generic template with the LoRA bolted on. Two LoRAs that share a task can still need different demos: a pose-control video LoRA and an outpainting video LoRA both take video in and produce video out, but the inputs the user provides, the preprocessing, and the controls are completely different. Recognizing that is the central job here.
Concretely, a good demo:
- Loads fast and runs fast — minimal model loading, sensible step count, no wasted computation per call.
- Has a UI with exactly the controls this LoRA needs and nothing else. Excess sliders are a cost, not a feature.View the complete source on GitHubhuggingface-paper-publisher
When your agent uses it
Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating professional markdown-based research articles.
What it loads into context
Frontmatter
45 tokensAlways available to the agent
SKILL.md
4,353 tokensWhen the skill is activated
Reference documents
10,148 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Integration with HF Ecosystem
- 1. Paper Page Management
- 2. Link Papers to Artifacts
- 3. Research Article Creation
- 4. Metadata Management
Scripts executed separately
scripts/paper_manager.py
Files
SKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesSKILL.mdcore16,704 bytesexamples/example_usage.mddoc8,478 bytesreferences/quick_reference.mddoc4,499 bytesscripts/paper_manager.pyruns21,926 bytestemplates/arxiv.mddoc7,318 bytestemplates/ml-report.mddoc6,865 bytestemplates/modern.mddoc6,431 bytestemplates/standard.mddoc3,180 bytes
Read SKILL.md
# Overview
This skill provides comprehensive tools for AI engineers and researchers to publish, manage, and link research papers on the Hugging Face Hub. It streamlines the workflow from paper creation to publication, including integration with arXiv, model/dataset linking, and authorship management.
## Integration with HF Ecosystem
- **Paper Pages**: Index and discover papers on Hugging Face Hub
- **arXiv Integration**: Automatic paper indexing from arXiv IDs
- **Model/Dataset Linking**: Connect papers to relevant artifacts through metadata
- **Authorship Verification**: Claim and verify paper authorship
- **Research Article Template**: Generate professional, modern scientific papers
# Version
1.0.0
# DependenciesView the complete source on GitHubhuggingface-papers
When your agent uses it
Look up and read Hugging Face paper pages in markdown, and use the papers API for structured metadata such as authors, linked models/datasets/spaces, Github repo and project page. Use when the user shares a Hugging Face paper page URL, an arXiv URL or ID, or asks to summarize, explain, or analyze an AI research paper.
What it loads into context
Frontmatter
81 tokensAlways available to the agent
SKILL.md
2,507 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use
- Parsing the paper ID
- Error Handling
- Notes
Files
SKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytesSKILL.mdcore9,348 bytes
Read SKILL.md
# Hugging Face Paper Pages
Hugging Face Paper pages (hf.co/papers) is a platform built on top of arXiv (arxiv.org), specifically for research papers in the field of artificial intelligence (AI) and computer science. Hugging Face users can submit their paper at hf.co/papers/submit, which features it on the Daily Papers feed (hf.co/papers). Each day, users can upvote papers and comment on papers. Each paper page allows authors to:
- claim their paper (by clicking their name on the `authors` field). This makes the paper page appear on their Hugging Face profile.
- link the associated model checkpoints, datasets and Spaces by including the HF paper or arXiv URL in the model card, dataset card or README of the Space
- link the Github repository and/or project page URLs
- link the HF organization. This also makes the paper page appear on the Hugging Face organization page.
Whenever someone mentions a HF paper or arXiv abstract/PDF URL in a model card, dataset card or README of a Space repository, the paper will be automatically indexed. Note that not all papers indexed on Hugging Face are also submitted to daily papers. The latter is more a manner of promoting a research paper. Papers can only be submitted to daily papers up until 14 days after their publication date on arXiv.
The Hugging Face team has built an easy-to-use API to interact with paper pages. Content of the papers can be fetched as markdown, or structured metadata can be returned such as author names, linked models/datasets/spaces, linked Github repo and project page.
## When to Use
View the complete source on GitHubhuggingface-spaces
When your agent uses it
Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community grants. Use whenever the user asks to create or host an app on Hugging Face, port code onto ZeroGPU, fix a Space that won't build or run, or otherwise work with `hf spaces …`, `@spaces.GPU`, Space README frontmatter, or the `spaces` Python package.
What it loads into context
Frontmatter
109 tokensAlways available to the agent
SKILL.md
4,484 tokensWhen the skill is activated
Reference documents
35,434 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- 0. Getting ready
- 1. What a Space is
- 2. Look for an existing demo first
- 3. Decide SDK and hardware
- 4. Create the Space
- 5. Build the app
- 6. Iterate on the Space, not locally
- 7. Verify
- 8. Permanent storage (buckets)
- 9. When things break
- Reference index
Files
README.mddoc412 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesSKILL.mdcore17,903 bytesreferences/3d-cuda-extensions.mddoc9,342 bytesreferences/3d-generation.mddoc8,760 bytesreferences/3d-gsplat.mddoc7,376 bytesreferences/3d-models.mddoc20,120 bytesreferences/3d-outputs.mddoc9,553 bytesreferences/buckets.mddoc4,384 bytesreferences/debugging.mddoc11,562 bytesreferences/gradio.mddoc9,423 bytesreferences/grants.mddoc3,203 bytesreferences/inference-providers.mddoc3,873 bytesreferences/known-errors.mddoc13,625 bytesreferences/requirements.mddoc11,520 bytesreferences/zerogpu.mddoc21,401 bytes
Read SKILL.md
# Hugging Face Spaces
Hugging Face Spaces host machine-learning applications. There are 1M+ today; each Space is a git repo. This skill covers creating, building, debugging, and maintaining them.
## 0. Getting ready
Before anything else:
1. Check the `hf` CLI is installed: `which hf`. If not, `pip install -U huggingface_hub`.
2. Check the user is logged in: `hf auth whoami`. If not, run `hf auth login` — it prints a URL and a one-time code; ask the user to open the URL and enter the code, then login completes automatically (OAuth, no token needed). Alternatively, pass a write-scoped token from https://huggingface.co/settings/tokens with `--token`.
3. Note `whoami`'s `canPay` and `isPro` flags — they gate hardware choices below. A free (`isPro=False`) account can only host Static Spaces and up to 2 ZeroGPU Spaces.
The `hf-cli` skill teaches an agent every `hf` command and is the recommended companion to this one. Install it with `hf skills add hf-cli` (add `--claude --global` to install for Claude Code as well, user-level).
View the complete source on GitHubhuggingface-tool-builder
When your agent uses it
Use this skill when the user wants to build tool/scripts or achieve a task where using data from the Hugging Face API would help. This is especially useful when chaining or combining API calls or the task will be repeated/automated. This Skill creates a reusable script to fetch, enrich or process data.
What it loads into context
Frontmatter
70 tokensAlways available to the agent
SKILL.md
1,315 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Script Rules
- Sample Scripts
- High Level Endpoints
- Accessing the API
- Using the HF command line tool
Scripts executed separately
references/baseline_hf_api.pyreferences/baseline_hf_api.shreferences/baseline_hf_api.tsxreferences/find_models_by_paper.shreferences/hf_enrich_models.shreferences/hf_model_card_frontmatter.shreferences/hf_model_papers_auth.sh
Files
SKILL.mdcore5,905 bytesSKILL.mdcore5,905 bytesSKILL.mdcore5,905 bytesSKILL.mdcore5,905 bytesSKILL.mdcore5,905 bytesSKILL.mdcore5,905 bytesreferences/baseline_hf_api.pyruns1,369 bytesreferences/baseline_hf_api.shruns707 bytesreferences/baseline_hf_api.tsxruns1,265 bytesreferences/find_models_by_paper.shruns7,695 bytesreferences/hf_enrich_models.shruns2,267 bytesreferences/hf_model_card_frontmatter.shruns4,548 bytesreferences/hf_model_papers_auth.shruns4,840 bytes
Read SKILL.md
# Hugging Face API Tool Builder
Your purpose is now is to create reusable command line scripts and utilities for using the Hugging Face API, allowing chaining, piping and intermediate processing where helpful. You can access the API directly, as well as use the `hf` command line tool. Model and Dataset cards can be accessed from repositories directly.
## Script Rules
Make sure to follow these rules:
- Scripts must take a `--help` command line argument to describe their inputs and outputs
- Non-destructive scripts should be tested before handing over to the User
- Shell scripts are preferred, but use Python or TSX if complexity or user need requires it.
[Credential-related source omitted]
- Investigate the shape of the API results before commiting to a final design; make use of piping and chaining where composability would be an advantage - prefer simple solutions where possible.
- Share usage examples once complete.
View the complete source on GitHubhuggingface-trackio
When your agent uses it
Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing alerts for training diagnostics, or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, alerts with webhooks, HF Space syncing, and JSON output for automation.
What it loads into context
Frontmatter
66 tokensAlways available to the agent
SKILL.md
1,177 tokensWhen the skill is activated
Reference documents
5,185 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Three Interfaces
- When to Use Each
- Minimal Logging Setup
- Autonomous ML Experiment Workflow
Files
SKILL.mdcore5,128 bytesSKILL.mdcore5,128 bytesSKILL.mdcore5,128 bytesSKILL.mdcore5,128 bytesSKILL.mdcore5,128 bytesreferences/alerts.mddoc5,950 bytesreferences/logging_metrics.mddoc5,576 bytesreferences/retrieving_metrics.mddoc8,707 bytes
Read SKILL.md
# Trackio - Experiment Tracking for ML Training
Trackio is an experiment tracking library for logging and visualizing ML training metrics. It syncs to Hugging Face Spaces for real-time monitoring dashboards.
## Three Interfaces
| Task | Interface | Reference |
|------|-----------|-----------|
| **Logging metrics** during training | Python API | [references/logging_metrics.md](references/logging_metrics.md) |
| **Firing alerts** for training diagnostics | Python API | [references/alerts.md](references/alerts.md) |
| **Retrieving metrics & alerts** after/during training | CLI | [references/retrieving_metrics.md](references/retrieving_metrics.md) |
## When to Use Each
View the complete source on GitHubhuggingface-vision-trainer
When your agent uses it
Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classification (timm models — MobileNetV3, MobileViT, ResNet, ViT/DINOv3 — plus any Transformers classifier), and SAM/SAM2 segmentation using Hugging Face Transformers on Hugging Face Jobs cloud GPUs. Covers COCO-format dataset preparation, Albumentations augmentation, mAP/mAR evaluation, accuracy metrics, SAM segmentation with bbox/point prompts, DiceCE loss, hardware selection, cost estimation, Trackio monitoring, and Hub persistence. Use when users mention training object detection, image classification, SAM, SAM2, segmentation, image matting, DETR, D-FINE, RT-DETR, ViT, timm, MobileNet, ResNet, bounding box models, or fine-tuning vision models on Hugging Face Jobs.
What it loads into context
Frontmatter
197 tokensAlways available to the agent
SKILL.md
7,600 tokensWhen the skill is activated
Reference documents
19,531 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use This Skill
- Related Skills
- Local Script Execution
- Prerequisites Checklist
- Dataset Validation
- Automatic Bbox Preprocessing
- Training workflow
- Critical directives
- Model & hardware selection
- Quick start — Object Detection
- Quick start — Image Classification
- Quick start — SAM/SAM2 Segmentation
- Checking job status
- Common failure modes
- Reference files
- External links
Scripts executed separately
scripts/dataset_inspector.pyscripts/estimate_cost.pyscripts/image_classification_training.pyscripts/object_detection_training.pyscripts/sam_segmentation_training.py
Files
SKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesSKILL.mdcore30,195 bytesreferences/finetune_sam2_trainer.mddoc6,432 bytesreferences/hub_saving.mddoc16,949 bytesreferences/image_classification_training_notebook.mddoc11,075 bytesreferences/object_detection_training_notebook.mddoc29,917 bytesreferences/reliability_principles.mddoc9,487 bytesreferences/timm_trainer.mddoc3,547 bytesscripts/dataset_inspector.pyruns31,851 bytesscripts/estimate_cost.pyruns7,400 bytesscripts/image_classification_training.pyruns13,385 bytesscripts/object_detection_training.pyruns27,371 bytesscripts/sam_segmentation_training.pyruns13,946 bytes
Read SKILL.md
# Vision Model Training on Hugging Face Jobs
Train object detection, image classification, and SAM/SAM2 segmentation models on managed cloud GPUs. No local GPU setup required—results are automatically saved to the Hugging Face Hub.
## When to Use This Skill
Use this skill when users want to:
- Fine-tune object detection models (D-FINE, RT-DETR v2, DETR, YOLOS) on cloud GPUs or local
- Fine-tune image classification models (timm: MobileNetV3, MobileViT, ResNet, ViT/DINOv3, or any Transformers classifier) on cloud GPUs or local
- Fine-tune SAM or SAM2 models for segmentation / image matting using bbox or point prompts
- Train bounding-box detectors on custom datasets
- Train image classifiers on custom datasets
- Train segmentation models on custom mask datasets with prompts
- Run vision training jobs on Hugging Face Jobs infrastructureView the complete source on GitHubhuggingface-zerogpu
When your agent uses it
AI demos and GPU compute with Gradio Spaces and Hugging Face Spaces ZeroGPU. Use when writing or reviewing code that uses `@spaces.GPU`, configuring `python_version` or `requirements.txt` for a ZeroGPU Space, or handling ZeroGPU-specific code constraints — pickle-based process isolation, `gr.State` semantics across the worker boundary, no `torch.compile` (use AoTI instead), CUDA wheel-only builds (no `nvcc` at build or runtime), large vs xlarge sizing, and dynamic duration callables. Make sure to use this skill whenever the user mentions ZeroGPU, `@spaces.GPU`, or the `spaces` Python package, or hits ZeroGPU-specific code errors like `PicklingError` across the worker boundary, `illegal duration`, or `flash-attn` wheel-build failures — even when the user does not explicitly ask for ZeroGPU coding guidance. Trigger on `import spaces` or `@spaces.GPU` in code.
What it loads into context
Frontmatter
208 tokensAlways available to the agent
SKILL.md
4,296 tokensWhen the skill is activated
Reference documents
3,750 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Scope
- Reference Files
- Hardware
- Basic Pattern
- CUDA Availability Model
- Local Development: Just Install `spaces`
- Duration and Quota
- Process Isolation and Pickle
- Concurrency
- Call Granularity
- CUDA Build Constraints
- Example Caching
- Dependency Management
Files
SKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesSKILL.mdcore18,278 bytesreferences/concurrency.mddoc2,564 bytesreferences/cuda-and-deps.mddoc4,802 bytesreferences/how-quota-works.mddoc3,887 bytesreferences/how-zerogpu-works.mddoc4,820 bytes
Read SKILL.md
# Hugging Face ZeroGPU
Rules and patterns for ML demos on Hugging Face Spaces with **ZeroGPU** hardware. Covers `@spaces.GPU`, duration and quota tuning, process isolation, the CUDA availability model, concurrency safety, and CUDA build constraints.
## Scope
This skill is for **Gradio SDK Spaces using ZeroGPU hardware**. Docker and Static Spaces cannot schedule onto ZeroGPU, and Streamlit apps now run as Docker Spaces — so this skill applies only to Gradio. For general Gradio coding (components, layouts, event listeners), see the `huggingface-gradio` skill in this repo. The authoritative ZeroGPU docs live at https://huggingface.co/docs/hub/spaces-zerogpu — refer to them for the current backing GPU, runtime version lists, and tier thresholds, all of which change over time.
## Reference Files
| Reference | When to read |
|-----------|--------------|
| `references/concurrency.md` | Always read alongside SKILL.md when writing ZeroGPU code — handlers run in parallel by default |
| `references/how-zerogpu-works.md` | When reasoning about cold-starts, worker reuse, why module-scope warmup does not carry to requests, or why returning CUDA tensors hangs |View the complete source on GitHubtrain-sentence-transformers
When your agent uses it
Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder, dense or static embedding model for retrieval, similarity, clustering, classification, paraphrase mining, dedup, multimodal), `CrossEncoder` (reranker, pair scoring for two-stage retrieval / pair classification), `SparseEncoder` (SPLADE, sparse embedding model for learned-sparse retrieval), and `MultiVectorEncoder` (ColBERT / late-interaction, per-token embeddings scored with MaxSim). Covers loss selection, hard-negative mining, evaluators, distillation, LoRA, Matryoshka, and Hugging Face Hub publishing. Use for any sentence-transformers training task.
What it loads into context
Frontmatter
150 tokensAlways available to the agent
SKILL.md
2,541 tokensWhen the skill is activated
Reference documents
32,579 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- 1. Identify the model type
- 2. Required reading
- 3. Defaults
- 4. Constraints the produced script must satisfy
- 5. Workflow
- Prerequisites
Scripts executed separately
scripts/mine_hard_negatives.pyscripts/train_cross_encoder_distillation_example.pyscripts/train_cross_encoder_example.pyscripts/train_cross_encoder_listwise_example.pyscripts/train_multi_vector_encoder_example.pyscripts/train_sentence_transformer_distillation_example.pyscripts/train_sentence_transformer_example.pyscripts/train_sentence_transformer_make_multilingual_example.pyscripts/train_sentence_transformer_matryoshka_example.pyscripts/train_sentence_transformer_multi_dataset_example.pyscripts/train_sentence_transformer_static_embedding_example.pyscripts/train_sentence_transformer_with_lora_example.pyscripts/train_sparse_encoder_distillation_example.pyscripts/train_sparse_encoder_example.py
Files
SKILL.mdcore10,502 bytesSKILL.mdcore10,502 bytesreferences/base_model_selection.mddoc7,647 bytesreferences/dataset_formats.mddoc6,484 bytesreferences/evaluators_cross_encoder.mddoc5,602 bytesreferences/evaluators_multi_vector_encoder.mddoc6,734 bytesreferences/evaluators_sentence_transformer.mddoc5,986 bytesreferences/evaluators_sparse_encoder.mddoc5,024 bytesreferences/hardware_guide.mddoc6,031 bytesreferences/hf_jobs_execution.mddoc7,279 bytesreferences/losses_cross_encoder.mddoc9,736 bytesreferences/losses_multi_vector_encoder.mddoc10,723 bytesreferences/losses_sentence_transformer.mddoc10,980 bytesreferences/losses_sparse_encoder.mddoc5,174 bytesreferences/model_architectures.mddoc9,176 bytesreferences/prompts_and_instructions.mddoc6,540 bytesreferences/training_args.mddoc15,388 bytesreferences/troubleshooting.mddoc13,237 bytesscripts/mine_hard_negatives.pyruns8,460 bytesscripts/train_cross_encoder_distillation_example.pyruns9,412 bytesscripts/train_cross_encoder_example.pyruns9,232 bytesscripts/train_cross_encoder_listwise_example.pyruns10,411 bytesscripts/train_multi_vector_encoder_example.pyruns9,017 bytesscripts/train_sentence_transformer_distillation_example.pyruns12,232 bytesscripts/train_sentence_transformer_example.pyruns7,722 bytesscripts/train_sentence_transformer_make_multilingual_example.pyruns11,825 bytesscripts/train_sentence_transformer_matryoshka_example.pyruns7,302 bytesscripts/train_sentence_transformer_multi_dataset_example.pyruns10,115 bytesscripts/train_sentence_transformer_static_embedding_example.pyruns10,517 bytesscripts/train_sentence_transformer_with_lora_example.pyruns10,567 bytesscripts/train_sparse_encoder_distillation_example.pyruns9,655 bytesscripts/train_sparse_encoder_example.pyruns8,259 bytes
Read SKILL.md
# Train a sentence-transformers Model
**This SKILL.md is a router, not a manual.** It tells you which references and example scripts to load for your task. The actual content (recommended losses, evaluators, training-script structure, model selection, training-arg knobs, troubleshooting) lives in `references/` and `scripts/`.
**Do not synthesize a training script from this file alone.** Open the per-type production template (`scripts/train_<type>_example.py`) and copy it as your starting point. The templates contain load-bearing scaffolding (autocast helper, model-card class, logger silencing list, `force=True`, `seed`, TF32, version-compatible imports, named-evaluator metric handling) that prior agent runs have repeatedly missed when rolling their own from a synthesized snippet.
## 1. Identify the model type
| Tag | Class | What it does | When to pick |
|---|---|---|---|
| **[SentenceTransformer]** | `SentenceTransformer` (bi-encoder) | Maps each input to a fixed-dim dense vector | Retrieval, similarity, clustering, classification, paraphrase mining, dedup |
| **[CrossEncoder]** | `CrossEncoder` (reranker) | Scores `(query, passage)` pairs jointly | Two-stage retrieval (rerank top-100 from bi-encoder), pair classification |
| **[SparseEncoder]** | `SparseEncoder` (SPLADE) | Sparse vectors over the vocabulary | Learned-sparse retrieval, inverted-index backends (Elasticsearch / OpenSearch / Lucene) |
| **[MultiVectorEncoder]** | `MultiVectorEncoder` (ColBERT) | One embedding per token, scored with MaxSim | Late-interaction retrieval, recall gains over bi-encoders at higher storage cost, multimodal (ColPali / ColQwen2) |View the complete source on GitHubtransformers-js
When your agent uses it
Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks. Works in browsers and server-side runtimes (Node.js, Bun, Deno) with WebGPU/WASM using pre-trained models from Hugging Face Hub.
What it loads into context
Frontmatter
196 tokensAlways available to the agent
SKILL.md
5,797 tokensWhen the skill is activated
Reference documents
17,226 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use This Skill
- Installation
- Core Concepts
- Supported Tasks
- Finding and Choosing Models
- Advanced Configuration
- Runtime-Specific Considerations
- Error Handling
- Performance Tips
- Memory Management
- Troubleshooting
- Reference Documentation
- Best Practices
- Quick Reference: Task IDs
Files
SKILL.mdcore24,911 bytesSKILL.mdcore24,911 bytesSKILL.mdcore24,911 bytesreferences/CACHE.mddoc9,195 bytesreferences/CONFIGURATION.mddoc11,043 bytesreferences/EXAMPLES.mddoc15,691 bytesreferences/MODEL_ARCHITECTURES.mddoc5,590 bytesreferences/MODEL_REGISTRY.mddoc6,052 bytesreferences/PIPELINE_OPTIONS.mddoc14,950 bytesreferences/TEXT_GENERATION.mddoc7,876 bytes
Read SKILL.md
# Transformers.js - Machine Learning for JavaScript
Transformers.js enables running state-of-the-art machine learning models directly in JavaScript across browsers and server-side runtimes (Node.js, Bun, Deno), with no Python server required.
## When to Use This Skill
Use this skill when you need to:
- Run ML models for text analysis, generation, or translation in JavaScript
- Perform image classification, object detection, or segmentation
- Implement speech recognition or audio processing
- Build multimodal AI applications (text-to-image, image-to-text, etc.)
- Run models client-side in the browser without a backend
## InstallationView the complete source on GitHubtrl-training
When your agent uses it
Post-train LLMs with TRL (Transformers Reinforcement Learning) — SFT, DPO, GRPO, KTO, and reward-model training. Use when writing or debugging training code with the TRL Python API or the trl CLI.
What it loads into context
Frontmatter
89 tokensAlways available to the agent
SKILL.md
1,120 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Dataset formats
- SFT: the fields that matter
- GRPO: online RL
- CLI
Files
SKILL.mdcore4,323 bytesSKILL.mdcore4,323 bytesSKILL.mdcore4,323 bytesSKILL.mdcore4,323 bytes
Read SKILL.md
# TRL
Each method pairs a `*Trainer` class with a `*Config` dataclass. Configs extend `transformers.TrainingArguments`, so all of its arguments work in any trainer config.
| Trainer | Dataset type |
|---|---|
| `SFTTrainer` | language modeling or prompt-completion |
| `DPOTrainer` | preference (chosen/rejected pairs) |
| `GRPOTrainer` | prompt-only + reward function(s) |
| `DistillationTrainer` | prompt-only + a teacher model (on-policy distillation) |
| `KTOTrainer` | unpaired preference (per-sample bool label) |
| `RewardTrainer` | preference (chosen/rejected pairs); trains a scalar reward model, not a policy |
Many more trainers (OnlineDPO, ORPO, CPO, GKD, …) live in `trl.experimental` with unstable APIs: https://huggingface.co/docs/trl/experimental_overviewView the complete source on GitHubSkills included
- hf-mcp
- hf-cli
- hf-cloud-aws-context-discovery
- hf-cloud-python-env-setup
- hf-cloud-sagemaker-deployment-planner
- hf-cloud-sagemaker-iam-preflight
- hf-cloud-sagemaker-production-defaults
- hf-cloud-serving-image-selection
- hf-mem
- huggingface-best
- huggingface-community-evals
- huggingface-datasets
- huggingface-gradio
- huggingface-llm-trainer
- huggingface-local-models
- huggingface-lora-space-builder
- huggingface-paper-publisher
- huggingface-papers
- huggingface-spaces
- huggingface-tool-builder
- huggingface-trackio
- huggingface-vision-trainer
- huggingface-zerogpu
- train-sentence-transformers
- transformers-js
- trl-training
Repository facts
- License
- Apache-2.0
- Created
- Nov 24, 2025
- Last pushed
- Oct 30, 2026
- Forks
- 786
- Open issues
- 13
- Project activity
- Active
Rank over the last 12 weeks
Now #136 · best #114 · down 12 in 30 days
- #133 on Oct 29
- #134 on Oct 30
- #135 on Oct 31
- #134 from Nov 1 to Nov 2
- #137 on Nov 3
- #136 since Nov 4
44 earlier periods
- #109 on Aug 2
- #110 on Aug 7
- #112 on Aug 10
- #114 on Aug 11
- #115 from Aug 12 to Aug 15
- #114 on Aug 16
- #115 on Aug 17
- #116 from Aug 18 to Aug 21
- #115 on Aug 22
- #116 from Aug 23 to Aug 25
- #117 from Aug 26 to Aug 29
- #116 on Aug 30
- #117 on Aug 31
- #119 on Sep 1
- #118 on Sep 2
- #119 from Sep 3 to Sep 4
- #120 on Sep 5
- #119 on Sep 6
- #120 from Sep 7 to Sep 15
- #119 on Sep 16
- #121 on Sep 17
- #122 on Sep 18
- #121 on Sep 19
- #122 from Sep 20 to Sep 23
- #123 from Sep 24 to Sep 25
- #122 on Sep 26
- #123 on Sep 27
- #124 from Sep 28 to Sep 29
- #123 on Sep 30
- #124 from Oct 1 to Oct 3
- #123 on Oct 4
- #124 on Oct 5
- #122 on Oct 6
- #124 on Oct 7
- #125 from Oct 8 to Oct 9
- #127 on Oct 10
- #128 from Oct 11 to Oct 12
- #129 on Oct 13
- #130 on Oct 14
- #129 from Oct 15 to Oct 17
- #130 from Oct 18 to Oct 22
- #131 from Oct 23 to Oct 24
- #132 on Oct 25
- #130 on Oct 28
Before you install
Network or broad shellAutomated signals, not a guarantee
Checked Nov 4, 2026
Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.
Show 214 notes
hf-mcp/skills/hf-mcp/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cli/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cli/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-aws-context-discovery/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-aws-context-discovery/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-python-env-setup/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-sagemaker-deployment-planner/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-sagemaker-iam-preflight/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-sagemaker-iam-preflight/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-sagemaker-iam-preflight/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-sagemaker-iam-preflight/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/hf-cloud-sagemaker-iam-preflight/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzed
- No broad tool permissions
- 12 dangerous shell commandsin 6 files: huggingface-llm-trainer/scripts/convert_to_gguf.py:27 hf-cli/SKILL.md:6 huggingface-spaces/references/requirements.md:59 and 3 more
- 763 network referencesin 105 files: transformers-js/SKILL.md:7 huggingface-llm-trainer/SKILL.md:21 huggingface-papers/SKILL.md:20 and 102 more
- 1 obfuscation signalin 1 file: huggingface-paper-publisher/scripts/paper_manager.py:474
- No instruction overrides
- 49 executable scriptsin 49 files: hf-cloud-python-env-setup/scripts/check_versions.py:1 hf-cloud-python-env-setup/scripts/setup_env.py:1 hf-cloud-sagemaker-iam-preflight/scripts/check_role.py:1 and 46 more
- 202 references to secretsin 75 files: huggingface-llm-trainer/references/local_training_macos.md:73 huggingface-vision-trainer/references/hub_saving.md:57 huggingface-llm-trainer/references/hub_saving.md:35 and 72 more
- No requests to vote in Hot
Show all 1,027 signals by file
.claude-plugin/plugin.json
- Network accessline 6
"name": "Hugging Face" }, "homepage": "https://github.com/huggingface/skills", - Network accessline 7
}, "homepage": "https://github.com/huggingface/skills", "repository": "https://github.com/huggingface/skills", - Network accessline 8
"homepage": "https://github.com/huggingface/skills", - Network accessline 9
"repository": "https://github.com/huggingface/skills",
hf-mcp/skills/hf-mcp/SKILL.md
- Network accessline 8
Connect AI assistants to the Hugging Face Hub. Setup: https://huggingface.co/settings/mcp - Network accessline 73
1. hf_doc_search(query="LoRA fine-tuning", product="peft") 2. hf_doc_fetch(doc_url="https://huggingface.co/docs/peft/...") - Network accessline 74
2. hf_doc_fetch(doc_url="https://huggingface.co/docs/peft/...") - Access to secretsline 97
[Credential-related source omitted] - Access to secretsline 177
[Credential-related source omitted]
skills/hf-cli/SKILL.md
- Dangerous shell operationline 6
Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`. - Network accessline 6
Install: `curl -LsSf https://hf.co/cli/install.sh | bash -s`. - Dangerous shell operationline 49
- `hf cache rm TARGETS` — Remove cached repositories, revisions or files. `[--cache-dir TEXT --yes --dry-run --format [auto|human|agent|json|quiet]]` - Network accessline 230
To mount Hub repositories or buckets as local filesystems — no download, no copy, no waiting — use `hf-mount`. Files are fetched on demand. GitHub: https://github.com/huggingface/hf-mount - Network accessline 232
Install: `brew install hf-mount`, or download a binary from https://github.com/huggingface/hf-mount/releases - Access to secretsline 236
[Credential-related source omitted]
skills/hf-cloud-aws-context-discovery/SKILL.md
skills/hf-cloud-python-env-setup/SKILL.md
- Network accessline 20
The bundled deploy scripts (`deploy.py`, `deploy_async.py`, `teardown.py`) use `boto3` directly and read image URIs from [AWS's published Deep Learning Containers catalog](https://aws.github.io/deep-learning-containers/reference/available_i - Network accessline 22
The SageMaker Python SDK (v3) is fine to use when the user prefers it or their project already does. Since [PR #5960](https://github.com/aws/sagemaker-python-sdk/pull/5960) (June 2026), `ModelBuilder` auto-routes HuggingFace models to the c
skills/hf-cloud-python-env-setup/scripts/check_versions.py
- Executable scriptline 1
#!/usr/bin/env python
skills/hf-cloud-python-env-setup/scripts/setup_env.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 86
installer = "uv" if shutil.which("uv") else "venv" if installer == "venv": log("uv not found — falling back to python + venv. Consider: https://docs.astral.sh/uv/") - Network accessline 88
log("uv not found — falling back to python + venv. Consider: https://docs.astral.sh/uv/")
skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py
- Executable scriptline 1
#!/usr/bin/env python3
skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py
- Executable scriptline 1
#!/usr/bin/env python3
skills/hf-cloud-sagemaker-production-defaults/SKILL.md
- Network accessline 170
The agent reads the image URI from AWS's [Deep Learning Containers catalog](https://aws.github.io/deep-learning-containers/reference/available_images/) — pick the row that matches the model family (HuggingFace vLLM for LLMs, TEI for embeddi
skills/hf-cloud-sagemaker-production-defaults/scripts/_common.py
- Executable scriptline 1
Executable file
skills/hf-cloud-sagemaker-production-defaults/scripts/deploy.py
- Executable scriptline 1
#!/usr/bin/env python
skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_async.py
- Executable scriptline 1
#!/usr/bin/env python
skills/hf-cloud-sagemaker-production-defaults/scripts/deploy_ic.py
- Executable scriptline 1
#!/usr/bin/env python
skills/hf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py
skills/hf-cloud-sagemaker-production-defaults/scripts/teardown.py
skills/hf-cloud-serving-image-selection/SKILL.md
- Network accessline 24
URL: https://aws.github.io/deep-learning-containers/reference/available_images/ - Network accessline 28
The example URLs use `763104351884` as the account ID for most regions. A few regions use different accounts (e.g. `eu-south-1` uses `692866216735`). Check the [Region Availability page](https://aws.github.io/deep-learning-containers/refere - Network accessline 51
**Do not use TGI.** Text Generation Inference is archived. Models released after the archive (Qwen3 most famously) fail ping health checks on TGI. Use vLLM instead. (The SageMaker SDK v3 agrees: since [PR #5960](https://github.com/aws/sagem - Network accessline 65
curl -s https://huggingface.co/<model-id>/raw/main/config.json - Network accessline 78
1. Open https://aws.github.io/deep-learning-containers/reference/available_images/ - Network accessline 94
**Note on the TEI account ID**: the catalog page shows `683313688378` as the example account, but TEI is published from a different account namespace than the main AWS DLCs and the per-region account IDs vary. If `683313688378.dkr.ecr.<regi - Network accessline 189
curl -s https://api.github.com/repos/aws/deep-learning-containers/contents/docs/src/data/huggingface-vllm - Network accessline 190
curl -s https://raw.githubusercontent.com/aws/deep-learning-containers/main/docs/src/data/huggingface-vllm/0.21.0-gpu-sagemaker.yml - Network accessline 198
3. [Release notes on the DLC GitHub repo](https://github.com/aws/deep-learning-containers/releases).
skills/hf-cloud-serving-image-selection/references/model-to-image.md
- Network accessline 5
The canonical source for AWS Deep Learning Container image URIs is: **https://aws.github.io/deep-learning-containers/reference/available_images/** - Network accessline 6
**https://aws.github.io/deep-learning-containers/reference/available_images/** - Network accessline 32
The SageMaker SDK v2 helper `get_huggingface_llm_image_uri` returned TGI URIs; the v3 SDK removed it entirely. Since [sagemaker-python-sdk PR #5960](https://github.com/aws/sagemaker-python-sdk/pull/5960) (merged June 2026), v3's `ModelBuild - Network accessline 38
- **Encoder cross-encoders** (BAAI/bge-reranker-*, mixedbread rerankers): BERT-family + classification head, `config.json` `architectures` ends in `ForSequenceClassification`. TEI serves these natively via its `/rerank` route. - **Generativ - Network accessline 39
- **Generative rerankers** (Qwen/Qwen3-Reranker-0.6B/4B/8B and similar): decoder-only causal LMs that emit a yes/no judgment token; relevance = P(yes)/(P(yes)+P(no)) from the logprobs. `config.json` `architectures` ends in `ForCausalLM`. Th - Network accessline 73
Listed on the AWS catalog under "HuggingFace Text Embeddings Inference". The catalog row uses account ID `683313688378` (different from the main `763104351884` used by most other DLCs). TEI is published from its own account namespace and th - Network accessline 101
Configuration goes in a `serving.properties` file packaged alongside the model artifacts (or the equivalent `OPTION_*` env vars) rather than `SM_VLLM_*`/`HF_MODEL_ID` — check the [DJL Serving docs](https://docs.djl.ai/master/docs/serving/in
skills/hf-cloud-serving-image-selection/scripts/mirror_image.py
skills/huggingface-best/SKILL.md
- Network accessline 46
[Credential-related source omitted] - Network accessline 47
"https://huggingface.co/api/datasets?filter=benchmark:official&limit=500" | jq '[.[] | {id, tags, description}]' - Network accessline 59
[Credential-related source omitted] - Network accessline 60
"https://huggingface.co/api/datasets/<namespace>/<repo>/leaderboard" | jq '[.[:15] | .[] | {rank, modelId, value, verified}]' - Network accessline 72
[Credential-related source omitted] - Network accessline 73
[Credential-related source omitted] - Network accessline 74
"https://huggingface.co/api/models/org/model1" | jq '{safetensors, tags, cardData}' - Network accessline 107
| # | Model | Params | [Benchmark 1] | [Benchmark 2] | License | On device | |---|-------|--------|--------------|--------------|---------|-----------| | ⭐1 | [org/name](https://huggingface.co/org/name) | 7B | 85.2% | — | Apache 2.0 | Yes ( - Network accessline 108
|---|-------|--------|--------------|--------------|---------|-----------| | ⭐1 | [org/name](https://huggingface.co/org/name) | 7B | 85.2% | — | Apache 2.0 | Yes (fp16) | | 2 | [org/name](https://huggingface.co/org/name) | 13B | 83.1% | 71. - Network accessline 109
| ⭐1 | [org/name](https://huggingface.co/org/name) | 7B | 85.2% | — | Apache 2.0 | Yes (fp16) | - Network accessline 110
| 2 | [org/name](https://huggingface.co/org/name) | 13B | 83.1% | 71.5% | MIT | Q4 only | - Network accessline 111
| 3 | [org/name](https://huggingface.co/org/name) | 70B | 90.0% | 81.0% | Llama | Too large | - Network accessline 114
- Link model names to `https://huggingface.co/<model_id>` - Network accessline 123
If they say yes, ask whether they'd prefer to: - **Run locally** — ask about their device if not already known, then give appropriate setup instructions - **Run on HF Jobs** — point them to the HF Jobs guide: https://huggingface.co/docs/hug - Network accessline 125
- **Run on HF Jobs** — point them to the HF Jobs guide: https://huggingface.co/docs/huggingface_hub/en/guides/jobs
skills/huggingface-community-evals/examples/.env.example
skills/huggingface-community-evals/examples/USAGE_EXAMPLES.md
- Access to secretsline 26
[Credential-related source omitted]
skills/huggingface-community-evals/scripts/inspect_eval_uv.py
skills/huggingface-community-evals/scripts/inspect_vllm_uv.py
skills/huggingface-community-evals/scripts/lighteval_vllm_uv.py
skills/huggingface-datasets/SKILL.md
- Network accessline 21
- Base URL: `https://datasets-server.huggingface.co` - Network accessline 44
curl "https://datasets-server.huggingface.co/rows?dataset=stanfordnlp/imdb&config=plain_text&split=train&offset=0&length=100" - Network accessline 45
curl "https://datasets-server.huggingface.co/rows?dataset=stanfordnlp/imdb&config=plain_text&split=train&offset=100&length=100" - Network accessline 64
- Create dataset repo in browser: `https://huggingface.co/new-dataset` - Network accessline 69
curl -s "https://datasets-server.huggingface.co/parquet?dataset=<namespace>/<repo>" - Access to secretsline 77
[Credential-related source omitted]
skills/huggingface-gradio/SKILL.md
- Network accessline 14
- [Quickstart](https://www.gradio.app/guides/quickstart) - Network accessline 15
- [The Interface Class](https://www.gradio.app/guides/the-interface-class) - Network accessline 16
- [Blocks and Event Listeners](https://www.gradio.app/guides/blocks-and-event-listeners) - Network accessline 17
- [Controlling Layout](https://www.gradio.app/guides/controlling-layout) - Network accessline 18
- [More Blocks Features](https://www.gradio.app/guides/more-blocks-features) - Network accessline 19
- [Custom CSS and JS](https://www.gradio.app/guides/custom-CSS-and-JS) - Network accessline 20
- [Streaming Outputs](https://www.gradio.app/guides/streaming-outputs) - Network accessline 21
- [Streaming Inputs](https://www.gradio.app/guides/streaming-inputs) - Network accessline 22
- [Sharing Your App](https://www.gradio.app/guides/sharing-your-app) - Network accessline 23
- [Custom HTML Components](https://www.gradio.app/guides/custom-HTML-components) - Network accessline 24
- [Getting Started with the Python Client](https://www.gradio.app/guides/getting-started-with-the-python-client) - Network accessline 25
- [Getting Started with the JS Client](https://www.gradio.app/guides/getting-started-with-the-js-client) - Network accessline 112
If a task requires significant customization of an existing component or a component that doesn't exist in Gradio, you can create one with `gr.HTML`. It supports `html_template` (with `${}` JS expressions and `{{}}` Handlebars syntax), `css - Network accessline 121
html_template = """ <h2>${label} rating:</h2> ${Array.from({length: 5}, (_, i) => `<img class='${i < value ? '' : 'faded'}' src='https://upload.wikimedia.org/wikipedia/commons/d/df/Award-star-gold-3d.svg'>`).join('')} - Network accessline 122
<h2>${label} rating:</h2> ${Array.from({length: 5}, (_, i) => `<img class='${i < value ? '' : 'faded'}' src='https://upload.wikimedia.org/wikipedia/commons/d/df/Award-star-gold-3d.svg'>`).join('')} """ - Network accessline 123
${Array.from({length: 5}, (_, i) => `<img class='${i < value ? '' : 'faded'}' src='https://upload.wikimedia.org/wikipedia/commons/d/df/Award-star-gold-3d.svg'>`).join('')}
skills/huggingface-llm-trainer/SKILL.md
- Network accessline 21
hf_doc_search("your query", product="trl") hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer") # SFT - Network accessline 22
hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer") # SFT - Network accessline 23
hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer") # DPO - Network accessline 73
### ✅ **Account & Authentication** - Hugging Face Account with [Pro](https://hf.co/pro), [Team](https://hf.co/enterprise), or [Enterprise](https://hf.co/enterprise) plan (Jobs require paid plan) - Network accessline 74
- Hugging Face Account with [Pro](https://hf.co/pro), [Team](https://hf.co/enterprise), or [Enterprise](https://hf.co/enterprise) plan (Jobs require paid plan) - Access to secretsline 78
[Credential-related source omitted] - Access to secretsline 89
[Credential-related source omitted] - Network accessline 121
Job ID: abc123xyz Monitor: https://huggingface.co/jobs/username/abc123xyz - Network accessline 122
Monitor: https://huggingface.co/jobs/username/abc123xyz - Access to secretsline 200
[Credential-related source omitted] - Network accessline 230
# ✅ From Hugging Face Hub hf_jobs("uv", {"script": "https://huggingface.co/user/repo/resolve/main/train.py"}) - Network accessline 231
hf_jobs("uv", {"script": "https://huggingface.co/user/repo/resolve/main/train.py"}) - Network accessline 233
# ✅ From GitHub hf_jobs("uv", {"script": "https://raw.githubusercontent.com/user/repo/main/train.py"}) - Network accessline 234
hf_jobs("uv", {"script": "https://raw.githubusercontent.com/user/repo/main/train.py"}) - Network accessline 236
# ✅ From Gist hf_jobs("uv", {"script": "https://gist.githubusercontent.com/user/id/raw/train.py"}) - Network accessline 237
hf_jobs("uv", {"script": "https://gist.githubusercontent.com/user/id/raw/train.py"}) - Network accessline 242
hf repos create my-training-scripts --type model hf upload my-training-scripts ./train.py train.py # Use: https://huggingface.co/USERNAME/my-training-scripts/resolve/main/train.py - Network accessline 244
# Use: https://huggingface.co/USERNAME/my-training-scripts/resolve/main/train.py - Network accessline 252
hf_jobs("uv", { "script": "https://github.com/huggingface/trl/blob/main/trl/scripts/sft.py", - Network accessline 253
"script": "https://github.com/huggingface/trl/blob/main/trl/scripts/sft.py", - Access to secretsline 263
[Credential-related source omitted] - Network accessline 267
**Benefits:** No code to write, maintained by TRL team, production-tested **When to use:** Standard TRL training, quick experiments, don't need custom code **Available:** Scripts are available from https://github.com/huggingface/trl/tree/ma - Network accessline 269
**Available:** Scripts are available from https://github.com/huggingface/trl/tree/main/examples/scripts - Network accessline 292
# ✅ CORRECT syntax - flags BEFORE script URL hf jobs uv run --flavor a10g-large --timeout 2h --secrets HF_TOKEN "https://example.com/train.py" - Network accessline 293
hf jobs uv run --flavor a10g-large --timeout 2h --secrets HF_TOKEN "https://example.com/train.py" - Network accessline 295
# ❌ WRONG - "run uv" instead of "uv run" hf jobs run uv "https://example.com/train.py" --flavor a10g-large - Network accessline 296
hf jobs run uv "https://example.com/train.py" --flavor a10g-large - Network accessline 298
# ❌ WRONG - flags AFTER script URL (will be ignored!) hf jobs uv run "https://example.com/train.py" --flavor a10g-large - Network accessline 299
hf jobs uv run "https://example.com/train.py" --flavor a10g-large - Network accessline 301
# ❌ WRONG - "--secret" instead of "--secrets" (plural) hf jobs uv run --secret HF_TOKEN "https://example.com/train.py" - Network accessline 302
hf jobs uv run --secret HF_TOKEN "https://example.com/train.py" - Network accessline 313
hf jobs uv run --flavor a10g-large --timeout 2h --secrets HF_TOKEN "https://huggingface.co/user/repo/resolve/main/train.py" - Network accessline 315
--timeout 2h \ --secrets HF_TOKEN \ "https://huggingface.co/user/repo/resolve/main/train.py" - Network accessline 317
"https://huggingface.co/user/repo/resolve/main/train.py" - Network accessline 339
**Benefits:** Pre-configured settings, automatic Trackio integration, automatic Hub push, one-line commands **When to use:** User working in terminal directly (not Claude Code context), quick local experimentation **Repository:** https://gi - Network accessline 341
**Repository:** https://github.com/huggingface/trl-jobs - Access to secretsline 384
[Credential-related source omitted] - Network accessline 536
hf_jobs("uv", { "script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", - Network accessline 537
"script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", - Network accessline 557
# 1. Inspect dataset (costs ~$0.01, <1 min on CPU) hf_jobs("uv", { "script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", - Network accessline 558
hf_jobs("uv", { "script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", "script_args": ["--dataset", "argilla/distilabel-math-preference-dpo", "--split", "train"] - Network accessline 559
"script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", - Access to secretsline 615
[Credential-related source omitted] - Network accessline 647
uv run https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py \ - Access to secretsline 666
[Credential-related source omitted] - Network accessline 715
### External Scripts - [Dataset Inspector](https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py) - Validate dataset format before training (use via `uv run` or `hf_jobs`) - Network accessline 716
- [Dataset Inspector](https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py) - Validate dataset format before training (use via `uv run` or `hf_jobs`) - Network accessline 718
### External Links - [TRL Documentation](https://huggingface.co/docs/trl) - Network accessline 719
- [TRL Documentation](https://huggingface.co/docs/trl) - Network accessline 720
- [TRL Jobs Training Guide](https://huggingface.co/docs/trl/en/jobs_training) - Network accessline 721
- [TRL Jobs Package](https://github.com/huggingface/trl-jobs) - Network accessline 722
- [HF Jobs Documentation](https://huggingface.co/docs/huggingface_hub/guides/jobs) - Network accessline 723
- [TRL Example Scripts](https://github.com/huggingface/trl/tree/main/examples/scripts) - Network accessline 724
- [UV Scripts Guide](https://docs.astral.sh/uv/guides/scripts/) - Network accessline 725
- [UV Scripts Organization](https://huggingface.co/uv-scripts)
skills/huggingface-llm-trainer/references/gguf_conversion.md
- Access to secretsline 115
[Credential-related source omitted] - Network accessline 221
- Ensure llama.cpp supports the model architecture - Check for standard architecture (Qwen, Llama, Mistral, etc.) - Update llama.cpp to latest: `git clone --depth 1 https://github.com/ggerganov/llama.cpp.git` - Network accessline 222
- Check for standard architecture (Qwen, Llama, Mistral, etc.) - Update llama.cpp to latest: `git clone --depth 1 https://github.com/ggerganov/llama.cpp.git` - Check llama.cpp documentation for model support - Network accessline 223
- Update llama.cpp to latest: `git clone --depth 1 https://github.com/ggerganov/llama.cpp.git` - Network accessline 277
**External:** - [llama.cpp Repository](https://github.com/ggerganov/llama.cpp) - Network accessline 278
- [llama.cpp Repository](https://github.com/ggerganov/llama.cpp) - Network accessline 279
- [GGUF Specification](https://github.com/ggerganov/ggml/blob/master/docs/gguf.md) - Network accessline 280
- [Ollama Documentation](https://ollama.ai) - Network accessline 281
- [LM Studio](https://lmstudio.ai)
skills/huggingface-llm-trainer/references/hardware_guide.md
- Access to secretsline 238
[Credential-related source omitted]
skills/huggingface-llm-trainer/references/hub_saving.md
- Access to secretsline 35
[Credential-related source omitted] - Access to secretsline 39
[Credential-related source omitted] - Network accessline 80
print("✅ Model saved to: https://huggingface.co/myusername/my-trained-model") - Access to secretsline 90
[Credential-related source omitted] - Access to secretsline 134
[Credential-related source omitted] - Access to secretsline 150
[Credential-related source omitted] - Access to secretsline 163
[Credential-related source omitted] - Access to secretsline 207
[Credential-related source omitted] - Network accessline 240
**Possible causes:** 1. Repository is private—check https://huggingface.co/username - Network accessline 241
1. Repository is private—check https://huggingface.co/username - Access to secretsline 302
[Credential-related source omitted] - Network accessline 345
print("✅ Training complete!") print(f"Model available at: https://huggingface.co/myusername/qwen-capybara-sft") - Network accessline 346
print(f"Model available at: https://huggingface.co/myusername/qwen-capybara-sft") - Access to secretsline 356
[Credential-related source omitted] - Access to secretsline 362
[Credential-related source omitted]
skills/huggingface-llm-trainer/references/local_training_macos.md
- Access to secretsline 73
[Credential-related source omitted] - Access to secretsline 74
[Credential-related source omitted] - Access to secretsline 75
[Credential-related source omitted] - Access to secretsline 76
[Credential-related source omitted] - Access to secretsline 77
[Credential-related source omitted] - Access to secretsline 78
[Credential-related source omitted] - Access to secretsline 79
[Credential-related source omitted] - Access to secretsline 80
[Credential-related source omitted] - Access to secretsline 81
[Credential-related source omitted] - Access to secretsline 183
[Credential-related source omitted] - Access to secretsline 184
[Credential-related source omitted] - Access to secretsline 192
[Credential-related source omitted] - Network accessline 224
[MLX](https://github.com/ml-explore/mlx) offers tighter Apple Silicon integration but has a smaller ecosystem and less mature training APIs. For this skill's workflow (local validation → HF Jobs), PyTorch + MPS is recommended for consistenc
skills/huggingface-llm-trainer/references/reliability_principles.md
- Network accessline 28
# Check script/file paths (for URL-based scripts) # Verify before using: https://github.com/user/repo/blob/main/script.py - Network accessline 29
# Verify before using: https://github.com/user/repo/blob/main/script.py - Network accessline 182
# ❌ INCOMPLETE: Assumes build tools exist subprocess.run(["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"]) - Network accessline 183
subprocess.run(["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"]) - Network accessline 187
subprocess.run(["apt-get", "update", "-qq"], check=True) subprocess.run(["apt-get", "install", "-y", "-qq", "build-essential", "cmake"], check=True) subprocess.run(["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.c - Network accessline 188
subprocess.run(["apt-get", "install", "-y", "-qq", "build-essential", "cmake"], check=True) subprocess.run(["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"]) # ... then build - Network accessline 189
subprocess.run(["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"])
skills/huggingface-llm-trainer/references/trackio_guide.md
- Network accessline 29
**Option B: Create manually** - Create Space via Hub UI at https://huggingface.co/new-space - Network accessline 30
- Create Space via Hub UI at https://huggingface.co/new-space - Access to secretsline 141
[Credential-related source omitted] - Access to secretsline 167
[Credential-related source omitted] - Network accessline 183
After starting training: 1. Navigate to the Space: `https://huggingface.co/spaces/username/trackio` - Network accessline 184
1. Navigate to the Space: `https://huggingface.co/spaces/username/trackio`
skills/huggingface-llm-trainer/references/training_methods.md
- Network accessline 36
**Documentation:** `hf_doc_fetch("https://huggingface.co/docs/trl/sft_trainer")` - Network accessline 68
**Documentation:** `hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer")` - Network accessline 83
# Use TRL maintained script hf_jobs("uv", { "script": "https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py", - Network accessline 84
hf_jobs("uv", { "script": "https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py", "script_args": [ - Network accessline 85
"script": "https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py", - Access to secretsline 93
[Credential-related source omitted] - Network accessline 97
**Documentation:** `hf_doc_fetch("https://huggingface.co/docs/trl/grpo_trainer")` - Network accessline 110
**Documentation:** `hf_doc_fetch("https://huggingface.co/docs/trl/reward_trainer")` - Network accessline 136
hf_doc_fetch("https://huggingface.co/docs/trl/dataset_formats") - Network accessline 141
uv run https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py \ - Network accessline 148
- `scripts/train_sft_example.py` - Complete SFT template - `scripts/train_dpo_example.py` - Complete DPO template - [Dataset Inspector](https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py) - Dataset format validat - Network accessline 150
- [Dataset Inspector](https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py) - Dataset format validation tool
skills/huggingface-llm-trainer/references/training_patterns.md
- Access to secretsline 17
[Credential-related source omitted] - Access to secretsline 73
[Credential-related source omitted] - Network accessline 77
**For DPO documentation:** Use `hf_doc_fetch("https://huggingface.co/docs/trl/dpo_trainer")` - Network accessline 84
hf_jobs("uv", { "script": "https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py", - Network accessline 85
"script": "https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py", - Access to secretsline 95
[Credential-related source omitted] - Network accessline 99
**For GRPO documentation:** Use `hf_doc_fetch("https://huggingface.co/docs/trl/grpo_trainer")`
skills/huggingface-llm-trainer/references/troubleshooting.md
- Network accessline 70
[Credential-related source omitted] - Access to secretsline 70
[Credential-related source omitted] - Network accessline 71
- [ ] User has write access to target repo - [ ] Token has write permissions (check at https://huggingface.co/settings/tokens) - [ ] Training script calls `trainer.push_to_hub()` at the end - Network accessline 72
- [ ] Token has write permissions (check at https://huggingface.co/settings/tokens) - Network accessline 120
hf_doc_fetch("https://huggingface.co/docs/trl/dataset_formats") - Network accessline 125
uv run https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py \ - Network accessline 130
hf_jobs("uv", { "script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", - Network accessline 131
"script": "https://huggingface.co/datasets/mcp-tools/skills/raw/main/dataset_inspector.py", - Network accessline 181
2. **Check token permissions:** - Go to https://huggingface.co/settings/tokens - Network accessline 182
- Go to https://huggingface.co/settings/tokens - Access to secretsline 188
[Credential-related source omitted] - Network accessline 200
**Solutions:** - Check Jobs dashboard for status: https://huggingface.co/jobs - Network accessline 201
- Check Jobs dashboard for status: https://huggingface.co/jobs - Network accessline 273
hf_doc_fetch("https://huggingface.co/docs/huggingface_hub/guides/jobs") - Network accessline 282
4. **Ask in HF forums:** https://discuss.huggingface.co/
skills/huggingface-llm-trainer/references/unsloth.md
- Network accessline 5
- **GitHub**: [unslothai/unsloth](https://github.com/unslothai/unsloth) - Network accessline 6
- **Docs**: [unsloth.ai/docs](https://unsloth.ai/docs) - Access to secretsline 303
[Credential-related source omitted] - Network accessline 309
- `scripts/unsloth_sft_example.py` - Complete text LLM training example - [Unsloth Documentation](https://unsloth.ai/docs) - Network accessline 310
- [Unsloth Documentation](https://unsloth.ai/docs) - Network accessline 311
- [LFM2.5 Guide](https://unsloth.ai/docs/models/tutorials/lfm2.5) - Network accessline 312
- [Qwen3-VL Guide](https://unsloth.ai/docs/models/qwen3-vl-how-to-run-and-fine-tune) - Network accessline 313
- [Unsloth GitHub](https://github.com/unslothai/unsloth)
skills/huggingface-llm-trainer/scripts/convert_to_gguf.py
- Executable scriptline 1
#!/usr/bin/env python3 - Dangerous shell operationline 27
- Ubuntu/Debian: sudo apt-get update && sudo apt-get install -y build-essential cmake - Dangerous shell operationline 28
- RHEL/CentOS: sudo yum groupinstall -y "Development Tools" && sudo yum install -y cmake - Dangerous shell operationline 57
print(" Ubuntu/Debian: sudo apt-get install git") - Dangerous shell operationline 58
print(" RHEL/CentOS: sudo yum install git") - Dangerous shell operationline 68
print(" Ubuntu/Debian: sudo apt-get install build-essential cmake") - Dangerous shell operationline 69
print(" RHEL/CentOS: sudo yum groupinstall 'Development Tools' && sudo yum install cmake") - Access to secretsline 111
[Credential-related source omitted] - Access to secretsline 112
[Credential-related source omitted] - Access to secretsline 113
[Credential-related source omitted] - Access to secretsline 114
[Credential-related source omitted] - Network accessline 173
if not run_command( ["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"], - Network accessline 174
["git", "clone", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"], - Network accessline 179
if not run_command( ["git", "clone", "--depth", "1", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"], - Network accessline 180
["git", "clone", "--depth", "1", "https://github.com/ggerganov/llama.cpp.git", "/tmp/llama.cpp"], - Network accessline 334
This is a GGUF conversion of [{ADAPTER_MODEL}](https://huggingface.co/{ADAPTER_MODEL}), which is a LoRA fine-tuned version of [{BASE_MODEL}](https://huggingface.co/{BASE_MODEL}). - Network accessline 393
year = {{2025}}, publisher = {{Hugging Face}}, url = {{https://huggingface.co/{OUTPUT_REPO}}} - Network accessline 394
publisher = {{Hugging Face}}, url = {{https://huggingface.co/{OUTPUT_REPO}}} }} - Network accessline 395
url = {{https://huggingface.co/{OUTPUT_REPO}}} - Network accessline 414
print("\n" + "=" * 60) print("✅ GGUF Conversion Complete!") print(f"📦 Repository: https://huggingface.co/{OUTPUT_REPO}") - Network accessline 415
print("✅ GGUF Conversion Complete!") print(f"📦 Repository: https://huggingface.co/{OUTPUT_REPO}") print(f"\n📥 Download with:") - Network accessline 416
print(f"📦 Repository: https://huggingface.co/{OUTPUT_REPO}") print(f"\n📥 Download with:") print(f" hf download {OUTPUT_REPO} {model_name}-q4_k_m.gguf")
skills/huggingface-llm-trainer/scripts/dataset_inspector.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 14
Usage with HF Jobs: hf_jobs("uv", { "script": "https://huggingface.co/datasets/evalstate/trl-helpers/raw/main/dataset_inspector.py", - Network accessline 15
hf_jobs("uv", { "script": "https://huggingface.co/datasets/evalstate/trl-helpers/raw/main/dataset_inspector.py", "script_args": ["--dataset", "your/dataset", "--split", "train"] - Network accessline 16
"script": "https://huggingface.co/datasets/evalstate/trl-helpers/raw/main/dataset_inspector.py", - Network accessline 33
parser.add_argument("--config", type=str, default="default", help="Dataset config name (default: default)") parser.add_argument("--preview", type=int, default=150, help="Max chars per field preview") parser.add_argument("--samples", - Network accessline 34
parser.add_argument("--preview", type=int, default=150, help="Max chars per field preview") parser.add_argument("--samples", type=int, default=5, help="Number of samples to fetch (default: 5)") parser.add_argument("--json-output", a - Network accessline 35
parser.add_argument("--samples", type=int, default=5, help="Number of samples to fetch (default: 5)") - Network accessline 42
try: with urllib.request.urlopen(url, timeout=10) as response: - Network accessline 43
with urllib.request.urlopen(url, timeout=10) as response: - Network accessline 55
url = f"https://datasets-server.huggingface.co/splits?dataset={urllib.parse.quote(dataset)}" - Network accessline 61
url = f"https://datasets-server.huggingface.co/rows?dataset={urllib.parse.quote(dataset)}&config={config}&split={split}&offset={offset}&length={length}"
skills/huggingface-llm-trainer/scripts/estimate_cost.py
skills/huggingface-llm-trainer/scripts/hf_benchmarks.py
- Executable scriptline 1
#!/usr/bin/env -S uv run --script - Network accessline 31
BASE_URL = "https://huggingface.co" - Access to secretsline 122
[Credential-related source omitted] - Network accessline 141
req = urllib.request.Request(url, headers=auth_headers()) - Network accessline 142
try: with urllib.request.urlopen(req, timeout=DEFAULT_TIMEOUT) as resp: return json.loads(resp.read().decode("utf-8")) - Network accessline 143
with urllib.request.urlopen(req, timeout=DEFAULT_TIMEOUT) as resp:
skills/huggingface-llm-trainer/scripts/train_dpo_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Access to secretsline 23
[Credential-related source omitted] - Network accessline 105
print("✅ Complete! Model at: https://huggingface.co/username/qwen-dpo-aligned") - Network accessline 106
print("📊 View metrics at: https://huggingface.co/spaces/username/trackio")
skills/huggingface-llm-trainer/scripts/train_grpo_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Access to secretsline 24
[Credential-related source omitted] - Network accessline 29
Note: For most GRPO use cases, the TRL maintained script is recommended: https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py - Network accessline 30
https://raw.githubusercontent.com/huggingface/trl/main/examples/scripts/grpo.py - Network accessline 88
print("✅ Complete! Model at: https://huggingface.co/username/qwen-grpo-math") - Network accessline 89
print("📊 View metrics at: https://huggingface.co/spaces/username/trackio")
skills/huggingface-llm-trainer/scripts/train_sft_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Access to secretsline 29
[Credential-related source omitted] - Network accessline 121
print("✅ Complete! Model at: https://huggingface.co/username/qwen-capybara-sft") - Network accessline 122
print("📊 View metrics at: https://huggingface.co/spaces/username/trackio")
skills/huggingface-llm-trainer/scripts/unsloth_sft_example.py
- Executable scriptline 1
Executable file - Access to secretsline 251
[Credential-related source omitted] - Network accessline 254
if args.trackio_space: os.environ["TRACKIO_SPACE_ID"] = args.trackio_space logger.info(f"Trackio dashboard: https://huggingface.co/spaces/{args.trackio_space}") - Access to secretsline 255
[Credential-related source omitted] - Network accessline 256
logger.info(f"Trackio dashboard: https://huggingface.co/spaces/{args.trackio_space}") - Access to secretsline 266
[Credential-related source omitted] - Network accessline 466
save_method="merged_16bit", ) print(f"Merged model available at: https://huggingface.co/{args.output_repo}") - Network accessline 467
) print(f"Merged model available at: https://huggingface.co/{args.output_repo}") else: - Network accessline 468
print(f"Merged model available at: https://huggingface.co/{args.output_repo}") - Network accessline 474
print(f"\nPushing adapter to {args.output_repo}...") model.push_to_hub(args.output_repo, tokenizer=tokenizer) print(f"Adapter available at: https://huggingface.co/{args.output_repo}") - Network accessline 476
print(f"Adapter available at: https://huggingface.co/{args.output_repo}")
skills/huggingface-local-models/SKILL.md
- Network accessline 12
1. Search the Hub with `apps=llama.cpp`. 2. Open `https://huggingface.co/<repo>?local-app=llama.cpp`. - Network accessline 13
2. Open `https://huggingface.co/<repo>?local-app=llama.cpp`. - Network accessline 14
3. Prefer the exact HF local-app snippet and quant recommendation when it is visible. 4. Confirm exact `.gguf` filenames with `https://huggingface.co/api/models/<repo>/tree/main?recursive=true`. 5. Launch with `llama-cli -hf <repo>:<QUANT>` - Network accessline 15
4. Confirm exact `.gguf` filenames with `https://huggingface.co/api/models/<repo>/tree/main?recursive=true`. - Network accessline 30
git clone https://github.com/ggml-org/llama.cpp - Network accessline 44
https://huggingface.co/models?apps=llama.cpp&sort=trending - Network accessline 45
https://huggingface.co/models?search=Qwen3.6&apps=llama.cpp&sort=trending - Network accessline 46
https://huggingface.co/models?search=<term>&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending - Network accessline 82
curl http://localhost:8080/v1/chat/completions \ - Network accessline 109
- llama.cpp: `https://github.com/ggml-org/llama.cpp` - Network accessline 110
- Hugging Face GGUF + llama.cpp docs: `https://huggingface.co/docs/hub/gguf-llamacpp` - Network accessline 111
- Hugging Face Local Apps docs: `https://huggingface.co/docs/hub/main/local-apps` - Network accessline 112
- Hugging Face Local Agents docs: `https://huggingface.co/docs/hub/agents-local` - Network accessline 113
- GGUF converter Space: `https://huggingface.co/spaces/ggml-org/gguf-my-repo`
skills/huggingface-local-models/references/hub-discovery.md
- Network accessline 18
Search: https://huggingface.co/models?apps=llama.cpp&sort=trending - Network accessline 19
https://huggingface.co/models?apps=llama.cpp&sort=trending - Network accessline 21
Search with text: https://huggingface.co/models?search=<term>&apps=llama.cpp&sort=trending - Network accessline 22
https://huggingface.co/models?search=<term>&apps=llama.cpp&sort=trending - Network accessline 24
Search with size bounds: https://huggingface.co/models?search=<term>&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending - Network accessline 25
https://huggingface.co/models?search=<term>&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending - Network accessline 27
Repo local-app view: https://huggingface.co/<repo>?local-app=llama.cpp - Network accessline 28
https://huggingface.co/<repo>?local-app=llama.cpp - Network accessline 30
Repo tree API: https://huggingface.co/api/models/<repo>/tree/main?recursive=true - Network accessline 31
https://huggingface.co/api/models/<repo>/tree/main?recursive=true - Network accessline 33
Repo file tree: https://huggingface.co/<repo>/tree/main - Network accessline 34
https://huggingface.co/<repo>/tree/main - Network accessline 49
Example: https://huggingface.co/models?search=Qwen&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending - Network accessline 56
https://huggingface.co/<repo>?local-app=llama.cpp - Network accessline 77
https://huggingface.co/api/models/<repo>/tree/main?recursive=true - Network accessline 105
Use `https://huggingface.co/<repo>/tree/main` only as a human fallback if the API endpoint fails or the user wants the web view. - Network accessline 137
https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF?local-app=llama.cpp - Network accessline 138
https://huggingface.co/api/models/unsloth/Qwen3.6-35B-A3B-GGUF/tree/main?recursive=true - Network accessline 139
https://huggingface.co/unsloth/Qwen3.6-35B-A3B-GGUF/tree/main
skills/huggingface-local-models/references/quantization.md
- Network accessline 23
https://huggingface.co/<repo>?local-app=llama.cpp - Network accessline 29
https://huggingface.co/api/models/<repo>/tree/main?recursive=true - Network accessline 187
https://huggingface.co/models?apps=llama.cpp&sort=trending - Network accessline 188
https://huggingface.co/models?search=<term>&apps=llama.cpp&sort=trending - Network accessline 189
https://huggingface.co/models?search=<term>&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending - Network accessline 195
https://huggingface.co/<repo>?local-app=llama.cpp - Network accessline 196
https://huggingface.co/api/models/<repo>/tree/main?recursive=true
skills/huggingface-lora-space-builder/SKILL.md
- Network accessline 64
> I need a Hugging Face access token with **write** scope (to read the LoRA if it's private/gated, and to publish the Space). Create one at https://huggingface.co/settings/tokens. Paste it here. - Network accessline 145
**Gradio component freshness.** Gradio's component set evolves. Before defaulting to plain components, consider whether something newer fits better — for example `gr.ImageSlider` for before/after on edit LoRAs, `gr.BrowserState` for persist - Network accessline 149
**`gr.Examples` for media-input Spaces.** When no fitting example media is available from the model's own repo, pull from the shared input pools — split by modality so the HF dataset viewer can render proper thumbnails: images at [`linoyts/ - Access to secretsline 175
[Credential-related source omitted] - Network accessline 193
2. **What the base-model reference's "Required dependencies" subsection says.** Each base-model file lists the non-obvious extras the pipeline pulls in — `torchvision` for Qwen-Image (Qwen 2.5-VL text encoder), `imageio[ffmpeg]` for LTX (vi - Network accessline 195
4. **The diffusers/ML stack:** `diffusers`, `transformers`, `accelerate`, `peft`, `safetensors`. Default to plain (unpinned). Switch `diffusers` to `git+https://github.com/huggingface/diffusers` if the base-model reference says the model ne - Network accessline 253
- `sdk: gradio` — required for ZeroGPU. - `sdk_version` — match the Gradio version you wrote against. Look up the current version (`pip index versions gradio`, or check https://www.gradio.app) rather than guessing. - Network accessline 254
- `sdk_version` — match the Gradio version you wrote against. Look up the current version (`pip index versions gradio`, or check https://www.gradio.app) rather than guessing. - Network accessline 255
- `hardware: zero-a10g` — the legacy string for ZeroGPU. The actual hardware is NVIDIA RTX Pro 6000 Blackwell, but the identifier is `zero-a10g`. ZeroGPU is available to PRO, Team, and Enterprise accounts; if the user isn't subscribed, the - Network accessline 257
- `short_description` — appears on the Space tile. **Keep it short (~60 characters or less).** The Hub's YAML validator rejects long values with a 400 from `https://huggingface.co/api/validate-yaml`, which surfaces as an `HfHubHTTPError` du - Access to secretsline 312
[Credential-related source omitted] - Network accessline 314
**After upload**, run the smoke-test below before sharing — the build runs asynchronously and silent failures (wrong `weight_name`, missing dep, wrong pipeline class) only surface at first inference. **Once the smoke-test passes**, share th - Network accessline 318
- **`HfHubHTTPError: 400 Bad Request` from `https://huggingface.co/api/validate-yaml`** during `create_repo` or `upload_file`. The README YAML failed server-side validation. By far the most common cause is a `short_description` that's too l - Network accessline 319
- **403 on `create_repo`** with `space_hardware="zero-a10g"`: user isn't on PRO/Team/Enterprise, so they can't request ZeroGPU at creation time. Fix: retry `create_repo` without `space_hardware`, leave `hardware: zero-a10g` in the README YA - Network accessline 346
if stage == "RUNNING": break if stage in {"BUILD_ERROR", "RUNTIME_ERROR", "CONFIG_ERROR"}: raise RuntimeError(f"Build failed: {stage}. Logs: https://huggingface.co/spaces/{repo_id}/logs/container") - Network accessline 347
if stage in {"BUILD_ERROR", "RUNTIME_ERROR", "CONFIG_ERROR"}: raise RuntimeError(f"Build failed: {stage}. Logs: https://huggingface.co/spaces/{repo_id}/logs/container") time.sleep(15) - Network accessline 348
raise RuntimeError(f"Build failed: {stage}. Logs: https://huggingface.co/spaces/{repo_id}/logs/container") - Network accessline 352
If the build fails, fetch the container logs (`https://huggingface.co/spaces/{repo_id}/logs/container`), read the traceback, and propose a fix. Don't run `gradio info` against a Space that isn't running — it'll hang or 503. - Access to secretsline 360
[Credential-related source omitted] - Access to secretsline 363
[Credential-related source omitted] - Network accessline 373
- **HTTPError 503 / "Space is sleeping"** → the Space spun down between steps 1 and 3. Wake it (`api.restart_space(repo_id)`) and retry. - **Inference error mentioning `weight_name` / `safetensors`** → the LoRA filename in `app.py` doesn't - Network accessline 374
- **Inference error mentioning `weight_name` / `safetensors`** → the LoRA filename in `app.py` doesn't match the actual file in the LoRA repo. Re-check `list_repo_files`, fix `weight_name=`, re-upload `app.py`. - **Inference error mentionin - Network accessline 375
- **Inference error mentioning a missing pipeline class or attribute** → diffusers version too old. Switch `requirements.txt` to `git+https://github.com/huggingface/diffusers` and re-upload.
skills/huggingface-lora-space-builder/references/base-models/krea-2.md
- Network accessline 5
| Repo | Role | Use it for | |------|------|------------| | [`krea/Krea-2-Turbo`](https://huggingface.co/krea/Krea-2-Turbo) | 8-step **distilled** | **Inference / demos** | - Network accessline 6
|------|------|------------| | [`krea/Krea-2-Turbo`](https://huggingface.co/krea/Krea-2-Turbo) | 8-step **distilled** | **Inference / demos** | | [`krea/Krea-2-Raw`](https://huggingface.co/krea/Krea-2-Raw) | base, non-distilled | **LoRA tra - Network accessline 7
| [`krea/Krea-2-Turbo`](https://huggingface.co/krea/Krea-2-Turbo) | 8-step **distilled** | **Inference / demos** | - Network accessline 8
| [`krea/Krea-2-Raw`](https://huggingface.co/krea/Krea-2-Raw) | base, non-distilled | **LoRA training** — *not* for inference |
skills/huggingface-lora-space-builder/references/base-models/ltx.md
- Network accessline 9
| `Lightricks/LTX-Video` (0.9.x) | Yes — `LTXPipeline`, `LTXImageToVideoPipeline`, `LTXConditionPipeline` | Yes | | `Lightricks/LTX-2` | Yes — `LTX2Pipeline` from `diffusers.pipelines.ltx2` | Yes (recent diffusers) | | `Lightricks/LT - Network accessline 11
| `Lightricks/LTX-2.3` | Partial — diffusers support is still limited overall, so the original `Lightricks/LTX-2.3` repo can still be used via the native path. Diffusers-converted variants exist at `dg845/LTX-2.3-Diffusers` and `dg845/ - Network accessline 41
git+https://github.com/huggingface/diffusers - Network accessline 47
git+https://github.com/Lightricks/LTX-Video.git - Network accessline 138
# in requirements.txt git+https://github.com/Lightricks/LTX-Video.git - Network accessline 139
git+https://github.com/Lightricks/LTX-Video.git - Network accessline 200
- **Latest pipelines often need git diffusers.** Pin to `git+https://github.com/huggingface/diffusers` in `requirements.txt` for any LTX variant released in the last few weeks. - Network accessline 201
- **`git+diffusers` is a moving target — verify LTX2 output quality.** Bare `@main` inherits whatever's there. The LTX2 text connector carried a token-reversal regression (PR #13564) that scrambled prompt tokens/registers — degrading prompt
skills/huggingface-lora-space-builder/references/base-models/qwen-image.md
- Network accessline 30
git+https://github.com/huggingface/diffusers
skills/huggingface-lora-space-builder/references/creative-mode.md
- Network accessline 47
- `gr.HTML` — https://www.gradio.app/docs/gradio/html - Network accessline 48
- Custom components — https://www.gradio.app/guides/custom-components-in-five-minutes - Network accessline 49
- `Blocks.launch(head=, css=)` — https://www.gradio.app/docs/gradio/blocks#blocks-launch - Network accessline 73
head = '<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>' - Network accessline 259
- **3D camera control via Three.js** (Approach B, `gr.HTML` subclass): https://huggingface.co/spaces/multimodalart/qwen-image-multiple-angles-3d-camera - Network accessline 260
- **Bounding-box drag/resize via canvas** (Approach A, hidden inputs + custom Run button): https://huggingface.co/spaces/linoyts/FLUX.2-klein-Move
skills/huggingface-lora-space-builder/references/tasks.md
skills/huggingface-lora-space-builder/references/zerogpu-and-publishing.md
- Network accessline 49
**ZeroGPU requires PRO/Team/Enterprise.** A free-tier user can create a Space with `hardware: zero-a10g` in the README, but it'll fall back to CPU. If the user isn't on a supporting plan, mention this and point them at two paths: upgrade to - Network accessline 74
- **User already authenticated and the LoRA repo is public**: use the existing token. Confirm the username with the user before publishing ("I'll publish to `{username}` — confirm?"). - **User already authenticated and the LoRA repo is priv - Network accessline 76
- **No cached token**: ask the user. One ask, with the explanation: "I need a Hugging Face access token with **write** scope. Create one at https://huggingface.co/settings/tokens. Paste it here." The same token will be reused for publishing - Access to secretsline 78
[Credential-related source omitted] - Access to secretsline 118
[Credential-related source omitted] - Network accessline 158
If `create_repo` rejects the hardware (typically because the user isn't on PRO), retry without `space_hardware=`, set the README's `hardware: zero-a10g` anyway, and tell the user the Space will run on CPU until they either upgrade to PRO or - Network accessline 166
The Space URL is `https://huggingface.co/spaces/{repo_id}`. Build logs are at `https://huggingface.co/spaces/{repo_id}/logs/container`. Runtime logs at `https://huggingface.co/spaces/{repo_id}/logs/run`. - Network accessline 181
- **`HfHubHTTPError: 400 Bad Request` from `https://huggingface.co/api/validate-yaml`.** The README's YAML frontmatter failed server-side validation. By far the most common cause is `short_description` exceeding the server's length cap (the - Network accessline 183
- **`HfHubHTTPError: 403 Forbidden` on `create_repo` with `space_hardware="zero-a10g"`.** The user's account can't request ZeroGPU at creation time (typically because they're not on PRO/Team/Enterprise). Fix: retry `create_repo` without the - Network accessline 191
- **`weight_name` mismatch in `load_lora_weights`.** The actual file in the repo is named differently. Fix: `api.list_repo_files(repo_id)` to find the real filename; pass `weight_name=` explicitly. - **Gated base model, no token.** The base - Network accessline 192
- **Gated base model, no token.** The base model (e.g. `black-forest-labs/FLUX.1-dev`) requires accepting a license. Fix: ensure the user has accepted the license on the Hub, and the token is set as a Space secret. - **Diffusers version too - Network accessline 193
- **Diffusers version too old for the pipeline class.** The base model was released after the latest pinned diffusers. Fix: change `requirements.txt` from `diffusers` to `git+https://github.com/huggingface/diffusers`.
skills/huggingface-paper-publisher/SKILL.md
- Network accessline 86
**Direct URL Access:** You can also visit `https://huggingface.co/papers/{arxiv-id}` directly to index a paper. - Network accessline 87
You can also visit `https://huggingface.co/papers/{arxiv-id}` directly to index a paper. - Network accessline 146
**Manual Process:** 1. Navigate to your paper's page: `https://huggingface.co/papers/{arxiv-id}` - Network accessline 147
1. Navigate to your paper's page: `https://huggingface.co/papers/{arxiv-id}` - Network accessline 345
This model is based on the approach described in [Our Paper](https://arxiv.org/abs/2301.12345). - Network accessline 374
Dataset introduced in [Our Paper](https://arxiv.org/abs/2301.12345). - Network accessline 376
For more details, see the [paper page](https://huggingface.co/papers/2301.12345). - Network accessline 547
- **Hugging Face Paper Pages**: [hf.co/papers](https://huggingface.co/papers) - Network accessline 548
- **Model Cards Guide**: [hf.co/docs/hub/model-cards](https://huggingface.co/docs/hub/en/model-cards) - Network accessline 549
- **Dataset Cards Guide**: [hf.co/docs/hub/datasets-cards](https://huggingface.co/docs/hub/en/datasets-cards) - Network accessline 550
- **Research Article Template**: [tfrere/research-article-template](https://huggingface.co/spaces/tfrere/research-article-template) - Network accessline 551
- **arXiv Format Guide**: [arxiv.org/help/submit](https://arxiv.org/help/submit) - Network accessline 555
This skill complements [tfrere's research article template](https://huggingface.co/spaces/tfrere/research-article-template) by providing:
skills/huggingface-paper-publisher/examples/example_usage.md
- Network accessline 22
{ "exists": true, "url": "https://huggingface.co/papers/2301.12345", - Network accessline 23
"exists": true, "url": "https://huggingface.co/papers/2301.12345", "arxiv_id": "2301.12345", - Network accessline 24
"url": "https://huggingface.co/papers/2301.12345", - Network accessline 25
"arxiv_id": "2301.12345", "arxiv_url": "https://arxiv.org/abs/2301.12345" } - Network accessline 26
"arxiv_url": "https://arxiv.org/abs/2301.12345" - Network accessline 203
This skill complements [tfrere's research article template](https://huggingface.co/spaces/tfrere/research-article-template): - Network accessline 206
# 1. Use tfrere's Space to create a beautiful web-based paper # Visit: https://huggingface.co/spaces/tfrere/research-article-template - Network accessline 207
# Visit: https://huggingface.co/spaces/tfrere/research-article-template - Network accessline 290
# Visit the URL directly to trigger indexing open "https://huggingface.co/papers/2301.12345" - Network accessline 291
open "https://huggingface.co/papers/2301.12345" - Access to secretsline 301
[Credential-related source omitted] - Access to secretsline 304
[Credential-related source omitted] - Access to secretsline 306
[Credential-related source omitted] - Access to secretsline 307
[Credential-related source omitted] - Network accessline 314
uv run scripts/paper_manager.py check --arxiv-id "2301.12345" uv run scripts/paper_manager.py check --arxiv-id "arxiv:2301.12345" uv run scripts/paper_manager.py check --arxiv-id "https://arxiv.org/abs/2301.12345" - Network accessline 316
uv run scripts/paper_manager.py check --arxiv-id "https://arxiv.org/abs/2301.12345" - Network accessline 323
- Explore the [Paper Pages documentation](https://huggingface.co/docs/hub/en/paper-pages) - Network accessline 324
- Check out [tfrere's research template](https://huggingface.co/spaces/tfrere/research-article-template) - Network accessline 325
- Browse [papers on HF](https://huggingface.co/papers) - Network accessline 326
- Learn about [model cards](https://huggingface.co/docs/hub/en/model-cards)
skills/huggingface-paper-publisher/references/quick_reference.md
- Network accessline 87
### Hugging Face Paper Pages - View paper: `https://huggingface.co/papers/{arxiv-id}` - Network accessline 88
- View paper: `https://huggingface.co/papers/{arxiv-id}` - Network accessline 89
- Example: `https://huggingface.co/papers/2301.12345` - Network accessline 91
### arXiv - Abstract: `https://arxiv.org/abs/{arxiv-id}` - Network accessline 92
- Abstract: `https://arxiv.org/abs/{arxiv-id}` - Network accessline 93
- PDF: `https://arxiv.org/pdf/{arxiv-id}.pdf` - Network accessline 94
- Example: `https://arxiv.org/abs/2301.12345` - Network accessline 127
- `2301.12345` - `arxiv:2301.12345` - `https://arxiv.org/abs/2301.12345` - Network accessline 128
- `arxiv:2301.12345` - `https://arxiv.org/abs/2301.12345` - `https://arxiv.org/pdf/2301.12345.pdf` - Network accessline 129
- `https://arxiv.org/abs/2301.12345` - Network accessline 130
- `https://arxiv.org/pdf/2301.12345.pdf` - Access to secretsline 136
[Credential-related source omitted] - Access to secretsline 139
[Credential-related source omitted] - Access to secretsline 141
[Credential-related source omitted] - Network accessline 170
### Paper not found Visit `https://huggingface.co/papers/{arxiv-id}` to trigger indexing - Network accessline 171
Visit `https://huggingface.co/papers/{arxiv-id}` to trigger indexing - Network accessline 213
- [Full documentation](../SKILL.md) - [Usage examples](../examples/example_usage.md) - [HF Paper Pages](https://huggingface.co/papers) - Network accessline 214
- [Usage examples](../examples/example_usage.md) - [HF Paper Pages](https://huggingface.co/papers) - [tfrere's template](https://huggingface.co/spaces/tfrere/research-article-template) - Network accessline 215
- [HF Paper Pages](https://huggingface.co/papers) - Network accessline 216
- [tfrere's template](https://huggingface.co/spaces/tfrere/research-article-template)
skills/huggingface-paper-publisher/scripts/paper_manager.py
- Executable scriptline 1
#!/usr/bin/env -S uv run - Access to secretsline 44
[Credential-related source omitted] - Network accessline 69
paper_url = f"https://huggingface.co/papers/{arxiv_id}" - Network accessline 71
try: response = requests.get(paper_url, timeout=10) - Network accessline 72
response = requests.get(paper_url, timeout=10) - Network accessline 96
except ValueError as e: return {"exists": False, "error": str(e)} paper_url = f"https://huggingface.co/papers/{arxiv_id}" - Network accessline 98
paper_url = f"https://huggingface.co/papers/{arxiv_id}" - Network accessline 100
try: response = requests.get(paper_url, timeout=10) - Network accessline 101
response = requests.get(paper_url, timeout=10) - Network accessline 105
"url": paper_url, "arxiv_id": arxiv_id, "arxiv_url": f"https://arxiv.org/abs/{arxiv_id}" - Network accessline 106
"arxiv_id": arxiv_id, "arxiv_url": f"https://arxiv.org/abs/{arxiv_id}" } - Network accessline 107
"arxiv_url": f"https://arxiv.org/abs/{arxiv_id}" - Network accessline 179
paper_url = f"https://huggingface.co/papers/{arxiv_id}" - Network accessline 180
repo_url = f"https://huggingface.co/{repo_id}" - Network accessline 214
arxiv_url = f"https://arxiv.org/abs/{arxiv_id}" - Network accessline 215
hf_paper_url = f"https://huggingface.co/papers/{arxiv_id}" - Network accessline 350
except ValueError as e: return {"error": str(e)} api_url = f"https://export.arxiv.org/api/query?id_list={arxiv_id}" - Network accessline 352
api_url = f"https://export.arxiv.org/api/query?id_list={arxiv_id}" - Network accessline 354
try: response = requests.get(api_url, timeout=10) - Network accessline 355
response = requests.get(api_url, timeout=10) - Network accessline 374
"authors": [self._sanitize_text(a) for a in raw_authors], "abstract": self._sanitize_text(raw_abstract) if raw_abstract else None, "arxiv_url": f"https://arxiv.org/abs/{arxiv_id}", - Network accessline 375
"abstract": self._sanitize_text(raw_abstract) if raw_abstract else None, "arxiv_url": f"https://arxiv.org/abs/{arxiv_id}", "pdf_url": f"https://arxiv.org/pdf/{arxiv_id}.pdf" - Network accessline 376
"arxiv_url": f"https://arxiv.org/abs/{arxiv_id}", - Network accessline 377
"pdf_url": f"https://arxiv.org/pdf/{arxiv_id}.pdf" - Possible obfuscationline 474
text = re.sub(r'[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]', '', text) - Network accessline 600
print(f"Searching for: {args.query}") print("Search functionality coming soon!") print(f"Visit: https://huggingface.co/papers?search={args.query}") - Network accessline 602
print(f"Visit: https://huggingface.co/papers?search={args.query}")
skills/huggingface-papers/SKILL.md
- Network accessline 20
- User shares a Hugging Face paper page URL (e.g. `https://huggingface.co/papers/2602.08025`) - Network accessline 21
- User shares a Hugging Face markdown paper page URL (e.g. `https://huggingface.co/papers/2602.08025.md`) - Network accessline 22
- User shares an arXiv URL (e.g. `https://arxiv.org/abs/2602.08025` or `https://arxiv.org/pdf/2602.08025`) - Network accessline 30
| Input | Paper ID | | --- | --- | | `https://huggingface.co/papers/2602.08025` | `2602.08025` | - Network accessline 31
| --- | --- | | `https://huggingface.co/papers/2602.08025` | `2602.08025` | | `https://huggingface.co/papers/2602.08025.md` | `2602.08025` | - Network accessline 32
| `https://huggingface.co/papers/2602.08025` | `2602.08025` | - Network accessline 33
| `https://huggingface.co/papers/2602.08025.md` | `2602.08025` | - Network accessline 34
| `https://arxiv.org/abs/2602.08025` | `2602.08025` | - Network accessline 35
| `https://arxiv.org/pdf/2602.08025` | `2602.08025` | - Network accessline 46
curl -s "https://huggingface.co/papers/{PAPER_ID}.md" - Network accessline 49
This should return the Hugging Face paper page as markdown. This relies on the HTML version of the paper at https://arxiv.org/html/{PAPER_ID}. - Network accessline 58
curl -s -H "Accept: text/markdown" "https://huggingface.co/papers/{PAPER_ID}" - Network accessline 63
All endpoints use the base URL `https://huggingface.co`. - Network accessline 70
curl -s "https://huggingface.co/api/papers/{PAPER_ID}" - Network accessline 84
curl https://huggingface.co/api/models?filter=arxiv:{PAPER_ID} - Network accessline 90
curl https://huggingface.co/api/datasets?filter=arxiv:{PAPER_ID} - Network accessline 96
curl https://huggingface.co/api/spaces?filter=arxiv:{PAPER_ID} - Network accessline 104
[Credential-related source omitted] - Access to secretsline 104
[Credential-related source omitted] - Access to secretsline 107
[Credential-related source omitted] - Network accessline 127
[Credential-related source omitted] - Access to secretsline 127
[Credential-related source omitted] - Network accessline 128
"https://huggingface.co/api/daily_papers?p=0&limit=20&date=2017-07-21&sort=publishedAt" - Network accessline 147
[Credential-related source omitted] - Access to secretsline 147
[Credential-related source omitted] - Network accessline 148
"https://huggingface.co/api/papers?cursor={CURSOR}&limit=20" - Network accessline 162
[Credential-related source omitted] - Access to secretsline 162
[Credential-related source omitted] - Network accessline 163
"https://huggingface.co/api/papers/search?q=vision+language&limit=20" - Network accessline 179
[Credential-related source omitted] - Access to secretsline 179
[Credential-related source omitted] - Access to secretsline 182
[Credential-related source omitted] - Network accessline 199
[Credential-related source omitted] - Access to secretsline 199
[Credential-related source omitted] - Access to secretsline 202
[Credential-related source omitted] - Network accessline 204
"projectPage": "https://example.com", - Network accessline 205
"githubRepo": "https://github.com/org/repo", - Network accessline 221
- **404 on `https://huggingface.co/papers/{PAPER_ID}` or `md` endpoint**: the paper is not indexed on Hugging Face paper pages yet. - Network accessline 229
- Check the regular paper page at `https://huggingface.co/papers/{PAPER_ID}` - Network accessline 230
- Fall back to the arXiv page or PDF for the original source: - `https://arxiv.org/abs/{PAPER_ID}` - `https://arxiv.org/pdf/{PAPER_ID}` - Network accessline 231
- `https://arxiv.org/abs/{PAPER_ID}` - Network accessline 232
- `https://arxiv.org/pdf/{PAPER_ID}` - Access to secretsline 237
[Credential-related source omitted]
skills/huggingface-spaces/README.md
- Network accessline 3
To add the Hugging Face Space creation skill for your agent, [Install the hf CLI](https://huggingface.co/docs/huggingface_hub/guides/cli#getting-started), login with `hf auth login` and run - Network accessline 9
Or just point your agent here https://github.com/huggingface/skills/tree/main/skills/huggingface-spaces and it will know what to do
skills/huggingface-spaces/SKILL.md
- Network accessline 14
1. Check the `hf` CLI is installed: `which hf`. If not, `pip install -U huggingface_hub`. 2. Check the user is logged in: `hf auth whoami`. If not, run `hf auth login` — it prints a URL and a one-time code; ask the user to open the URL and - Network accessline 15
2. Check the user is logged in: `hf auth whoami`. If not, run `hf auth login` — it prints a URL and a one-time code; ask the user to open the URL and enter the code, then login completes automatically (OAuth, no token needed). Alternatively - Network accessline 24
- **Gradio** — most Spaces. Python, fast iteration, supports ZeroGPU. - **Docker** — arbitrary container. Use when you need a non-Python stack or a pre-built template (Streamlit, Argilla, Shiny, etc. — full list at https://huggingface.co/do - Network accessline 25
- **Docker** — arbitrary container. Use when you need a non-Python stack or a pre-built template (Streamlit, Argilla, Shiny, etc. — full list at https://huggingface.co/docs/hub/spaces-sdks-docker). Does **not** support ZeroGPU. - Network accessline 42
For the authoritative reference: https://huggingface.co/docs/hub/spaces-overview - Network accessline 94
The Space now exists at `https://huggingface.co/spaces/<namespace>/<name>` but is empty. - Network accessline 117
All frontmatter options: https://huggingface.co/docs/hub/spaces-config-reference - Network accessline 154
- **Do list if you use them**: `torchvision`, `torchaudio` (not preinstalled), plus everything else (`diffusers`, `transformers`, `accelerate`, `sentencepiece`, …). - ZeroGPU only accepts torch `2.8.0`, `2.9.1`, `2.10.0`, `2.11.0`. Default - Network accessline 156
- For prebuilt CUDA-extension wheels (`flash_attn`, `xformers`, `pytorch3d`, `nvdiffrast`, `diff_gaussian_rasterization`, `torchmcubes`): use the prebuilt Blackwell wheels at `https://huggingface.co/datasets/multimodalart/zerogpu-blackwell- - Network accessline 160
- **Gradio patterns** (themes, `gr.Examples`, streaming, custom HTML components, `gr.Server`): [`references/gradio.md`](references/gradio.md). - **Docker**: https://huggingface.co/docs/hub/spaces-sdks-docker. Examples: `hf spaces list --fil - Network accessline 161
- **Docker**: https://huggingface.co/docs/hub/spaces-sdks-docker. Examples: `hf spaces list --filter docker`. - Network accessline 162
- **Static**: https://huggingface.co/docs/hub/spaces-sdks-static. For built SPAs, set `app_build_command: npm run build` and `app_file: dist/index.html` in frontmatter. - Access to secretsline 193
[Credential-related source omitted]
skills/huggingface-spaces/references/3d-cuda-extensions.md
- Network accessline 20
hf jobs run --flavor rtx-pro-6000 --timeout 30m --secrets HF_TOKEN pytorch/pytorch:2.11.0-cuda13.0-cudnn9-devel bash -c 'export TORCH_CUDA_ARCH_LIST="12.0+PTX" && pip wheel --no-build-isolation --no-deps - Network accessline 22
bash -c 'export TORCH_CUDA_ARCH_LIST="12.0+PTX" && \ pip wheel --no-build-isolation --no-deps \ git+https://github.com/<org>/<extension>.git -w /tmp/wheels && \ - Network accessline 23
pip wheel --no-build-isolation --no-deps \ git+https://github.com/<org>/<extension>.git -w /tmp/wheels && \ pip install -U huggingface_hub && \ - Network accessline 24
git+https://github.com/<org>/<extension>.git -w /tmp/wheels && \ - Network accessline 29
Then reference `https://huggingface.co/datasets/<user>/zerogpu-wheels/resolve/main/wheels/<file>.whl` in requirements.txt, or download and commit the wheel to the Space (Strategy 2). Three things to line up: the image's **torch + CUDA** mus - Access to secretsline 60
[Credential-related source omitted]
skills/huggingface-spaces/references/3d-generation.md
- Network accessline 54
Either way, **fetch the official Space's live files first** (`https://huggingface.co/spaces/{id}/raw/main/{path}`) and treat them — not the reference files' pins — as source of truth. The reference files record what shipped as of mid-2026;
skills/huggingface-spaces/references/3d-gsplat.md
- Network accessline 23
**Shape B — a real rasterizer (only for server-rendered orbit videos).** If the code uses the upstream Inria API, take the prebuilt wheel from `requirements.md`'s dataset and be done. `ashawkey/LGM` needs its fork, so its Space JIT-builds i - Network accessline 50
- **TripoSplat** — the current default pick: MIT, running official ZeroGPU Space, fp16 weights well within 48 GB, ~262k gaussians per generation, BiRefNet background removal built in. Caveat when duplicating: the official Space uses a fully - Network accessline 51
- **LGM** — image → 4 multiview images (ImageDream) → gaussians. `dylanebert/LGM-mini` is the clean diffusers-style duplicate target (both pipelines via `from_pretrained(..., trust_remote_code=True)`, output straight into `gr.Model3D`); `as - Network accessline 52
- **SHARP** — pip-installable (`sharp @ git+https://github.com/apple/ml-sharp.git@<sha>`), predicts a camera-space *scene* splat from one photo. Research-only license (`apple-amlr`) — tell the user before they build anything commercial. `pr
skills/huggingface-spaces/references/3d-models.md
- Network accessline 16
> **Verify against the live official Space before writing files.** Every pin below (torch/CUDA/Python versions, wheel URLs) reflects what the official Space shipped as of 2026-07 and tracks the ZeroGPU runtime, which changes. Fetch the curr - Network accessline 23
--extra-index-url https://download.pytorch.org/whl/cu130 - Network accessline 37
kornia==0.8.2 timm==1.0.22 git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8 - Network accessline 38
timm==1.0.22 git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8 https://github.com/adithyaxx/flash-attention/releases/download/v2.8.3/flash_attn-2.8.3+cu13torch2.11cxx11abiTRUE-cp312-cp312-linux_x8 - Network accessline 39
git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8 https://github.com/adithyaxx/flash-attention/releases/download/v2.8.3/flash_attn-2.8.3+cu13torch2.11cxx11abiTRUE-cp312-cp312-linux_x86_64.whl http - Network accessline 40
https://github.com/adithyaxx/flash-attention/releases/download/v2.8.3/flash_attn-2.8.3+cu13torch2.11cxx11abiTRUE-cp312-cp312-linux_x86_64.whl - Network accessline 41
https://github.com/LDYang694/Storages/releases/download/rtxpro6000/flex_gemm-1.0.0%2Btorch2.11.0.cu130-cp312-cp312-linux_x86_64.whl - Network accessline 42
https://github.com/LDYang694/Storages/releases/download/rtxpro6000/nvdiffrast-0.4.0%2Btorch2.11.0.cu130-cp312-cp312-linux_x86_64.whl - Network accessline 43
https://github.com/LDYang694/Storages/releases/download/rtxpro6000/nvdiffrec_render-0.0.0%2Btorch2.11.0.cu130-cp312-cp312-linux_x86_64.whl - Network accessline 44
https://github.com/LDYang694/Storages/releases/download/rtxpro6000/cumesh-0.0.1%2Btorch2.11.0.cu130-cp312-cp312-linux_x86_64.whl - Network accessline 45
https://github.com/LDYang694/Storages/releases/download/rtxpro6000/o_voxel-0.0.1%2Btorch2.11.0.cu130-cp312-cp312-linux_x86_64.whl - Access to secretsline 53
[Credential-related source omitted] - Access to secretsline 54
[Credential-related source omitted] - Access to secretsline 55
[Credential-related source omitted] - Access to secretsline 88
[Credential-related source omitted] - Network accessline 116
> **Verify against the live official Space before writing files.** Pins below are as of 2026-07. Fetch current files via `https://huggingface.co/spaces/<id>/raw/main/<path>` first. - Network accessline 125
subprocess.run( shlex.split("pip install --no-build-isolation git+https://github.com/tatsy/torchmcubes.git"), - Network accessline 126
shlex.split("pip install --no-build-isolation git+https://github.com/tatsy/torchmcubes.git"), - Access to secretsline 127
[Credential-related source omitted] - Network accessline 194
**Requirements notes (2.1)** — fully pinned; the non-obvious entries: `--extra-index-url https://download.blender.org/pypi/` + `bpy==4.0` (Blender-as-pip; installs headless with no display setup — see [`3d-outputs.md`](3d-outputs.md) → Head
skills/huggingface-spaces/references/3d-outputs.md
- Network accessline 75
Blender shows up in 3D Spaces two ways: as the **`bpy` pip module** (`--extra-index-url https://download.blender.org/pypi/` + `bpy==<pin>`; Hunyuan3D-2.1 pins `bpy==4.0` — which installs cleanly on ZeroGPU with no display setup, though that - Access to secretsline 101
[Credential-related source omitted] - Access to secretsline 105
[Credential-related source omitted] - Access to secretsline 110
[Credential-related source omitted]
skills/huggingface-spaces/references/buckets.md
- Network accessline 5
Buckets are paid (per-TB storage). Check `whoami.canPay` and confirm with the user before creating one. Pricing + free tier: https://huggingface.co/storage. - Network accessline 7
Full docs: https://huggingface.co/docs/hub/storage-buckets. - Network accessline 18
To make the bucket files publicly addressable: leave the bucket public. Public bucket files are served at `https://huggingface.co/buckets/<ns>/<bucket>/resolve/<path>` (HTTP 302 redirect to a signed CDN URL). The Space writes once and the p - Network accessline 28
BUCKET_ID = "<ns>/<bucket-name>" BUCKET_URL = f"https://huggingface.co/buckets/{BUCKET_ID}/resolve" - Network accessline 29
BUCKET_URL = f"https://huggingface.co/buckets/{BUCKET_ID}/resolve" - Network accessline 60
Reference Space using this pattern: https://huggingface.co/spaces/victor/ace-step-jam - Access to secretsline 76
[Credential-related source omitted] - Access to secretsline 77
[Credential-related source omitted] - Access to secretsline 78
[Credential-related source omitted]
skills/huggingface-spaces/references/debugging.md
- Network accessline 28
- **Hot-reload poisons factory reboot.** A commit that's only a hot-reload leaves runtime metadata that's valid only while the hot process is alive. `--factory-reboot` on top of one can fail with `fatal: could not read Username for 'https:/ - Access to secretsline 86
[Credential-related source omitted] - Network accessline 109
import httpx r = httpx.post(f"https://<subdomain>.hf.space/your_route", - Network accessline 110
r = httpx.post(f"https://<subdomain>.hf.space/your_route", - Access to secretsline 112
[Credential-related source omitted] - Network accessline 170
2. **An SSH key registered on the user's HF profile.** Without this, SSH refuses the connection. If the user doesn't have one yet, they need to: - Generate a keypair locally: `ssh-keygen -t ed25519 -f ~/.ssh/hf_dev -N ''` (no passphrase - Network accessline 171
[Credential-related source omitted] - Access to secretsline 171
[Credential-related source omitted] - Network accessline 172
[Credential-related source omitted] - Access to secretsline 172
[Credential-related source omitted] - Access to secretsline 173
[Credential-related source omitted] - Network accessline 181
[Credential-related source omitted] - Access to secretsline 181
[Credential-related source omitted] - Network accessline 182
[Credential-related source omitted] - Access to secretsline 182
[Credential-related source omitted] - Network accessline 183
-H "Content-Type: application/json" \ "https://huggingface.co/api/spaces/<ns>/<space>/dev-mode" \ -d '{"enabled": true}' - Network accessline 184
"https://huggingface.co/api/spaces/<ns>/<space>/dev-mode" \ - Access to secretsline 191
[Credential-related source omitted] - Network accessline 223
[Credential-related source omitted] - Access to secretsline 223
[Credential-related source omitted] - Network accessline 224
-H "Content-Type: application/json" \ "https://huggingface.co/api/spaces/<ns>/<space>/dev-mode" \ -d '{"enabled": false}' - Network accessline 225
"https://huggingface.co/api/spaces/<ns>/<space>/dev-mode" \
skills/huggingface-spaces/references/gradio.md
- Network accessline 114
Guide: https://www.gradio.app/guides/custom-HTML-components - Network accessline 115
Example with a 3D camera-angle picker that makes sense in context: https://huggingface.co/spaces/multimodalart/qwen-image-multiple-angles-3d-camera - Network accessline 161
Reference Space: https://huggingface.co/spaces/huggingface-projects/rf-detr-realtime-webcam
skills/huggingface-spaces/references/inference-providers.md
skills/huggingface-spaces/references/known-errors.md
- Access to secretsline 60
[Credential-related source omitted] - Network accessline 88
import subprocess, sys subprocess.run([sys.executable, "-m", "pip", "install", "--no-deps", "git+https://github.com/facebookresearch/demucs"], check=True) - Network accessline 89
subprocess.run([sys.executable, "-m", "pip", "install", "--no-deps", "git+https://github.com/facebookresearch/demucs"], check=True) import spaces - Network accessline 90
"git+https://github.com/facebookresearch/demucs"], check=True) - Access to secretsline 108
[Credential-related source omitted] - Access to secretsline 118
[Credential-related source omitted] - Network accessline 138
**Cause**: `@spaces.GPU(duration=N)` is larger than the visitor's tier per-call cap. **Fix**: Lower `N`. Tier caps live in the [ZeroGPU docs](https://huggingface.co/docs/hub/spaces-zerogpu). - Network accessline 139
**Fix**: Lower `N`. Tier caps live in the [ZeroGPU docs](https://huggingface.co/docs/hub/spaces-zerogpu). - Access to secretsline 152
[Credential-related source omitted] - Access to secretsline 207
[Credential-related source omitted] - Network accessline 216
**Cause**: Streaming endpoint (function uses `yield`), or a custom `gr.Server` `@app.get/post` route that doesn't appear in `view_api()`. **Fix**: For streaming, use `client.submit(...).result()` (or iterate the job). For custom routes, use - Network accessline 217
**Fix**: For streaming, use `client.submit(...).result()` (or iterate the job). For custom routes, use `httpx.post(base_url + "/route", ...)` directly — bypass `gradio_client`.
skills/huggingface-spaces/references/requirements.md
- Network accessline 41
import subprocess, sys subprocess.run([sys.executable, "-m", "pip", "install", "--no-deps", "git+https://github.com/facebookresearch/demucs"], check=True) - Network accessline 42
subprocess.run([sys.executable, "-m", "pip", "install", "--no-deps", "git+https://github.com/facebookresearch/demucs"], check=True) import spaces # safe now — torch wasn't touched - Network accessline 43
"git+https://github.com/facebookresearch/demucs"], check=True) - Dangerous shell operationline 59
curl -s https://pypi.org/pypi/<pkg>/<version>/json | python3 -c "import json,sys,re; rd=json.load(sys.stdin)['info'].get('requires_dist') or []; - Network accessline 59
curl -s https://pypi.org/pypi/<pkg>/<version>/json \ - Network accessline 64
When PyPI is silent, fall back to the project's README compatibility table (torchcodec's lives at https://github.com/pytorch/torchcodec). - Network accessline 70
> https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels - Network accessline 95
https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels/resolve/main/wheels/<cell>/<wheel> - Network accessline 117
numpy einops https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels/resolve/main/wheels/pt212-cu130-cp310/flash_attn-2.8.3-cp310-cp310-linux_x86_64.whl - Network accessline 118
einops https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels/resolve/main/wheels/pt212-cu130-cp310/flash_attn-2.8.3-cp310-cp310-linux_x86_64.whl https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels/resolve - Network accessline 119
https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels/resolve/main/wheels/pt212-cu130-cp310/flash_attn-2.8.3-cp310-cp310-linux_x86_64.whl - Network accessline 120
https://huggingface.co/datasets/multimodalart/zerogpu-blackwell-wheels/resolve/main/wheels/pt212-cu130-cp310/xformers-0.0.34+3da0fc92.d20260528-cp39-abi3-linux_x86_64.whl - Network accessline 134
1. **kernels-community** — https://huggingface.co/kernels-community handles ABI matching for you. Often the simplest path; no version pinning needed. - Network accessline 135
2. **Upstream wheel matrix** — e.g. flash-attention's releases page ships a fairly complete `cu12 / torch / Python` matrix at https://github.com/Dao-AILab/flash-attention/releases. Pin `torch==X.Y.Z` in `requirements.txt` to match the wheel
skills/huggingface-spaces/references/zerogpu.md
- Network accessline 5
For numerical limits (per-tier daily quota minutes, runs-per-day caps, current backing GPU, supported Python / torch versions): https://huggingface.co/docs/hub/spaces-zerogpu. Those values change over time and are deliberately kept out of t - Access to secretsline 36
[Credential-related source omitted] - Access to secretsline 272
[Credential-related source omitted] - Network accessline 300
- `multimodalart/Boogu-Image-0.1-Edit-aoti-compile` (compile + upload) and `multimodalart/Boogu-Image` (serving via block loading) — the blocks pattern end to end. - `zerogpu-aoti/Qwen-Image`, `zerogpu-aoti/Wan2` — artifact repos showing th - Network accessline 302
- Deeper background on inductor configs and dynamic shapes: https://huggingface.co/blog/zerogpu-aoti - Access to secretsline 322
[Credential-related source omitted] - Network accessline 342
- https://huggingface.co/spaces/diffusers/unofficial-SDXL-Turbo-i2i-t2i - Network accessline 343
- https://huggingface.co/spaces/huggingface-projects/rf-detr-realtime-webcam
skills/huggingface-tool-builder/SKILL.md
- Network accessline 14
- Non-destructive scripts should be tested before handing over to the User - Shell scripts are preferred, but use Python or TSX if complexity or user need requires it. - IMPORTANT: Use the `HF_TOKEN` environment variable as an Authorizati - Network accessline 15
[Credential-related source omitted] - Network accessline 16
[Credential-related source omitted] - Access to secretsline 16
[Credential-related source omitted] - Network accessline 46
The following are the main API endpoints available at `https://huggingface.co` - Network accessline 63
The API is documented with the OpenAPI standard at `https://huggingface.co/.well-known/openapi.json`. - Network accessline 65
**IMPORTANT:** DO NOT ATTEMPT to read `https://huggingface.co/.well-known/openapi.json` directly as it is too large to process. - Network accessline 72
curl -s "https://huggingface.co/.well-known/openapi.json" | jq '.paths | keys | sort' - Network accessline 78
curl -s "https://huggingface.co/.well-known/openapi.json" | jq '.paths["/api/models"]'
skills/huggingface-tool-builder/references/baseline_hf_api.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 46
[Credential-related source omitted] - Access to secretsline 46
[Credential-related source omitted] - Network accessline 48
url = f"https://huggingface.co/api/models?limit={limit}" - Network accessline 50
req = urllib.request.Request(url, headers=headers) - Network accessline 51
with urllib.request.urlopen(req) as resp:
skills/huggingface-tool-builder/references/baseline_hf_api.sh
skills/huggingface-tool-builder/references/baseline_hf_api.tsx
- Executable scriptline 1
#!/usr/bin/env tsx - Access to secretsline 40
[Credential-related source omitted] - Network accessline 45
const url = `https://huggingface.co/api/models?limit=${limit}`; - Network accessline 47
(async () => { const res = await fetch(url, { headers }); - Network accessline 48
const res = await fetch(url, { headers });
skills/huggingface-tool-builder/references/find_models_by_paper.sh
- Executable scriptline 1
#!/bin/bash - Access to secretsline 83
[Credential-related source omitted] - Access to secretsline 84
[Credential-related source omitted] - Access to secretsline 88
[Credential-related source omitted] - Network accessline 119
API_URL="https://huggingface.co/api/models" - Network accessline 122
# Build curl command with authentication if available - Network accessline 123
CURL_CMD="curl -s $AUTH_HEADER \"$API_URL?search=$SEARCH_QUERY&limit=50\"" - Network accessline 124
echo -e "${BLUE}API Query: $API_URL?search=$SEARCH_QUERY&limit=50${NC}" - Network accessline 127
[Credential-related source omitted] - Access to secretsline 127
[Credential-related source omitted] - Network accessline 128
[Credential-related source omitted] - Access to secretsline 128
[Credential-related source omitted] - Network accessline 129
else RESPONSE=$(curl -s "$API_URL?search=$SEARCH_QUERY&limit=50" || true) fi - Network accessline 130
RESPONSE=$(curl -s "$API_URL?search=$SEARCH_QUERY&limit=50" || true) - Network accessline 143
[Credential-related source omitted] - Access to secretsline 143
[Credential-related source omitted] - Network accessline 144
[Credential-related source omitted] - Access to secretsline 144
[Credential-related source omitted] - Network accessline 145
else RESPONSE=$(curl -s "$API_URL?search=$SEARCH_QUERY&limit=50" || true) fi - Network accessline 146
RESPONSE=$(curl -s "$API_URL?search=$SEARCH_QUERY&limit=50" || true)
skills/huggingface-tool-builder/references/hf_enrich_models.sh
- Executable scriptline 1
#!/usr/bin/env bash - Access to secretsline 37
[Credential-related source omitted] - Access to secretsline 38
[Credential-related source omitted] - Network accessline 54
local url="https://huggingface.co/api/models/${model_id}" local response response=$(curl -s "${headers[@]}" "$url" 2>/dev/null || true) - Network accessline 56
response=$(curl -s "${headers[@]}" "$url" 2>/dev/null || true)
skills/huggingface-tool-builder/references/hf_model_card_frontmatter.sh
- Executable scriptline 1
#!/usr/bin/env bash - Access to secretsline 46
[Credential-related source omitted] - Access to secretsline 47
[Credential-related source omitted] - Dangerous shell operationline 52
rm -rf "$tmp_dir" - Access to secretsline 78
[Credential-related source omitted] - Access to secretsline 79
[Credential-related source omitted]
skills/huggingface-tool-builder/references/hf_model_papers_auth.sh
- Executable scriptline 1
#!/usr/bin/env bash - Access to secretsline 46
[Credential-related source omitted] - Access to secretsline 47
[Credential-related source omitted] - Network accessline 50
curl -s "${headers[@]}" "$url" 2>/dev/null || echo '{"error": "Network error"}' - Network accessline 102
local api_url="https://huggingface.co/api/models/$model_id" - Access to secretsline 107
[Credential-related source omitted] - Network accessline 119
local card_url="https://huggingface.co/$model_id/raw/main/README.md" local card_content=$(curl -s "$card_url" 2>/dev/null || echo "") - Network accessline 120
local card_content=$(curl -s "$card_url" 2>/dev/null || echo "") - Network accessline 143
local trending_url="https://huggingface.co/api/trending?type=model&limit=$limit"
skills/huggingface-trackio/references/alerts.md
- Network accessline 14
text="Loss 5.2 still high after 200 steps", # Detailed description (optional) level=trackio.AlertLevel.WARN, # INFO, WARN, or ERROR (default: WARN) webhook_url="https://hooks.slack.com/...", # Per-alert webhook overr - Network accessline 15
level=trackio.AlertLevel.WARN, # INFO, WARN, or ERROR (default: WARN) webhook_url="https://hooks.slack.com/...", # Per-alert webhook override (optional) ) - Network accessline 16
webhook_url="https://hooks.slack.com/...", # Per-alert webhook override (optional) - Network accessline 33
trackio.init( project="my-project", webhook_url="https://hooks.slack.com/services/...", - Network accessline 34
project="my-project", webhook_url="https://hooks.slack.com/services/...", webhook_min_level=trackio.AlertLevel.WARN, # Only send WARN+ to webhook - Network accessline 35
webhook_url="https://hooks.slack.com/services/...", - Network accessline 44
title="Critical failure", level=trackio.AlertLevel.ERROR, webhook_url="https://hooks.slack.com/services/...", # Overrides global URL - Network accessline 45
level=trackio.AlertLevel.ERROR, webhook_url="https://hooks.slack.com/services/...", # Overrides global URL ) - Network accessline 46
webhook_url="https://hooks.slack.com/services/...", # Overrides global URL
skills/huggingface-trackio/references/logging_metrics.md
- Network accessline 5
- **GitHub**: [gradio-app/trackio](https://github.com/gradio-app/trackio) - Network accessline 6
- **Docs**: [huggingface.co/docs/trackio](https://huggingface.co/docs/trackio/index) - Network accessline 201
<iframe src="https://username-trackio.hf.space/?project=my-project&metrics=train_loss,val_loss&sidebar=hidden" - Network accessline 202
src="https://username-trackio.hf.space/?project=my-project&metrics=train_loss,val_loss&sidebar=hidden"
skills/huggingface-vision-trainer/SKILL.md
- Network accessline 39
### Account & Authentication - Hugging Face Account with [Pro](https://hf.co/pro), [Team](https://hf.co/enterprise), or [Enterprise](https://hf.co/enterprise) plan (Jobs require paid plan) - Network accessline 40
- Hugging Face Account with [Pro](https://hf.co/pro), [Team](https://hf.co/enterprise), or [Enterprise](https://hf.co/enterprise) plan (Jobs require paid plan) - Network accessline 184
1. **Save the script locally** to `submitted_jobs/` in the workspace root (create if needed) with a descriptive name like `training_<dataset>_<YYYYMMDD_HHMMSS>.py`. Tell the user the path. 2. **Submit** using `hf_jobs` MCP tool (preferred) - Network accessline 185
2. **Submit** using `hf_jobs` MCP tool (preferred) or `HfApi().run_uv_job()` — see directive #1 for both methods. Pass all config via `script_args`. 3. **Report** the job ID (from `.id` attribute), monitoring URL, Trackio dashboard (`https: - Network accessline 186
3. **Report** the job ID (from `.id` attribute), monitoring URL, Trackio dashboard (`https://huggingface.co/spaces/{username}/trackio`), expected time, and estimated cost. - Access to secretsline 198
[Credential-related source omitted] - Access to secretsline 212
[Credential-related source omitted] - Access to secretsline 222
[Credential-related source omitted] - Access to secretsline 236
[Credential-related source omitted] - Network accessline 315
Dashboard at: `https://huggingface.co/spaces/{username}/trackio` - Network accessline 581
- [Transformers Object Detection Guide](https://huggingface.co/docs/transformers/tasks/object_detection) - Network accessline 582
- [Transformers Image Classification Guide](https://huggingface.co/docs/transformers/tasks/image_classification) - Network accessline 583
- [DETR Model Documentation](https://huggingface.co/docs/transformers/model_doc/detr) - Network accessline 584
- [ViT Model Documentation](https://huggingface.co/docs/transformers/model_doc/vit) - Network accessline 585
- [HF Jobs Guide](https://huggingface.co/docs/huggingface_hub/guides/jobs) — Main Jobs documentation - Network accessline 586
- [HF Jobs Configuration](https://huggingface.co/docs/hub/en/jobs-configuration) — Hardware, secrets, timeouts, namespaces - Network accessline 587
- [HF Jobs CLI Reference](https://huggingface.co/docs/huggingface_hub/guides/cli#hf-jobs) — Command line interface - Network accessline 588
- [Object Detection Models](https://huggingface.co/models?pipeline_tag=object-detection) - Network accessline 589
- [Image Classification Models](https://huggingface.co/models?pipeline_tag=image-classification) - Network accessline 590
- [SAM2 Model Documentation](https://huggingface.co/docs/transformers/model_doc/sam2) - Network accessline 591
- [SAM Model Documentation](https://huggingface.co/docs/transformers/model_doc/sam) - Network accessline 592
- [Object Detection Datasets](https://huggingface.co/datasets?task_categories=task_categories:object-detection) - Network accessline 593
- [Image Classification Datasets](https://huggingface.co/datasets?task_categories=task_categories:image-classification)
skills/huggingface-vision-trainer/references/hub_saving.md
- Access to secretsline 57
[Credential-related source omitted] - Access to secretsline 61
[Credential-related source omitted] - Access to secretsline 109
[Credential-related source omitted] - Access to secretsline 114
[Credential-related source omitted] - Network accessline 139
print("✅ Model saved to: https://huggingface.co/myusername/cppe5-detector") - Access to secretsline 149
[Credential-related source omitted] - Access to secretsline 257
[Credential-related source omitted] - Access to secretsline 262
[Credential-related source omitted] - Access to secretsline 321
[Credential-related source omitted] - Network accessline 364
**Possible causes:** 1. Repository is private—check https://huggingface.co/username - Network accessline 365
1. Repository is private—check https://huggingface.co/username - Access to secretsline 509
[Credential-related source omitted] - Access to secretsline 514
[Credential-related source omitted] - Network accessline 549
print("✅ Training complete!") print(f"Model available at: https://huggingface.co/{HUB_MODEL_ID}") - Network accessline 550
print(f"Model available at: https://huggingface.co/{HUB_MODEL_ID}") - Access to secretsline 567
[Credential-related source omitted] - Access to secretsline 611
[Credential-related source omitted]
skills/huggingface-vision-trainer/references/image_classification_training_notebook.md
- Network accessline 18
1. Fine-tune [ViT](../model_doc/vit) on the [Food-101](https://huggingface.co/datasets/ethz/food101) dataset to classify a food item in an image. - Network accessline 21
To see all architectures and checkpoints compatible with this task, we recommend checking the [task-page](https://huggingface.co/tasks/image-classification) - Network accessline 48
Split the dataset's `train` split into a train and test set with the [train_test_split](https://huggingface.co/docs/datasets/v4.5.0/en/package_reference/main_classes#datasets.Dataset.train_test_split) method: - Network accessline 96
Apply some image transformations to the images to make the model more robust against overfitting. Here you'll use torchvision's [`transforms`](https://pytorch.org/vision/stable/transforms.html) module, but you can also use any image library - Network accessline 121
To apply the preprocessing function over the entire dataset, use 🤗 Datasets [with_transform](https://huggingface.co/docs/datasets/v4.5.0/en/package_reference/main_classes#datasets.Dataset.with_transform) method. The transforms are applied o - Network accessline 137
Including a metric during training is often helpful for evaluating your model's performance. You can quickly load an evaluation method with the 🤗 [Evaluate](https://huggingface.co/docs/evaluate/index) library. For this task, load - Network accessline 138
evaluation method with the 🤗 [Evaluate](https://huggingface.co/docs/evaluate/index) library. For this task, load - Network accessline 139
the [accuracy](https://huggingface.co/spaces/evaluate-metric/accuracy) metric (see the 🤗 Evaluate [quick tour](https://huggingface.co/docs/evaluate/a_quick_tour) to learn more about how to load and compute a metric): - Network accessline 147
Then create a function that passes your predictions and labels to [compute](https://huggingface.co/docs/evaluate/v0.4.6/en/package_reference/main_classes#evaluate.EvaluationModule.compute) to calculate the accuracy: - Network accessline 222
For a more in-depth example of how to finetune a model for image classification, take a look at the corresponding [PyTorch notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipyn
skills/huggingface-vision-trainer/references/object_detection_training_notebook.md
- Network accessline 22
1. Finetune [DETR](https://huggingface.co/docs/transformers/model_doc/detr), a model that combines a convolutional - Network accessline 23
backbone with an encoder-decoder Transformer, on the [CPPE-5](https://huggingface.co/datasets/cppe-5) - Network accessline 27
To see all architectures and checkpoints compatible with this task, we recommend checking the [task-page](https://huggingface.co/tasks/object-detection) - Network accessline 57
The [CPPE-5 dataset](https://huggingface.co/datasets/cppe-5) contains images with - Network accessline 118
- `id`: the annotation id - `area`: the area of the bounding box - `bbox`: the object's bounding box (in the [COCO format](https://albumentations.ai/docs/getting_started/bounding_boxes_augmentation/#coco) ) - Network accessline 119
- `area`: the area of the bounding box - `bbox`: the object's bounding box (in the [COCO format](https://albumentations.ai/docs/getting_started/bounding_boxes_augmentation/#coco) ) - `category`: the object's category, with possible valu - Network accessline 120
- `bbox`: the object's bounding box (in the [COCO format](https://albumentations.ai/docs/getting_started/bounding_boxes_augmentation/#coco) ) - Network accessline 210
First, to make sure the model does not overfit on the training data, you can apply image augmentation with any data augmentation library. Here we use [Albumentations](https://albumentations.ai/docs/). - Network accessline 211
This library ensures that transformations affect the image and update the bounding boxes accordingly. The 🤗 Datasets library documentation has a detailed [guide on how to augment images for object detection](https://huggingface.co/docs/data - Network accessline 212
The 🤗 Datasets library documentation has a detailed [guide on how to augment images for object detection](https://huggingface.co/docs/datasets/object_detection), - Network accessline 213
and it uses the exact same dataset as an example. Apply some geometric and color transformations to the image. For additional augmentation options, explore the [Albumentations Demo Space](https://huggingface.co/spaces/qubvel-hf/albumentatio - Network accessline 302
Apply this preprocessing function to the entire dataset using 🤗 Datasets [with_transform](https://huggingface.co/docs/datasets/v4.5.0/en/package_reference/main_classes#datasets.Dataset.with_transform) method. This method applies - Network accessline 645
>>> url = "https://images.pexels.com/photos/8413299/pexels-photo-8413299.jpeg?auto=compress&cs=tinysrgb&w=630&h=375&dpr=2" >>> image = Image.open(requests.get(url, stream=True).raw) - Network accessline 646
>>> image = Image.open(requests.get(url, stream=True).raw)
skills/huggingface-vision-trainer/references/reliability_principles.md
skills/huggingface-vision-trainer/scripts/dataset_inspector.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 35
parser.add_argument("--config", type=str, default="default", help="Dataset config name (default: default)") parser.add_argument("--preview", type=int, default=150, help="Max chars per field preview") parser.add_argument("--samples", - Network accessline 36
parser.add_argument("--preview", type=int, default=150, help="Max chars per field preview") parser.add_argument("--samples", type=int, default=5, help="Number of samples to fetch (default: 5)") parser.add_argument("--json-output", a - Network accessline 37
parser.add_argument("--samples", type=int, default=5, help="Number of samples to fetch (default: 5)") - Network accessline 44
try: with urllib.request.urlopen(url, timeout=10) as response: - Network accessline 45
with urllib.request.urlopen(url, timeout=10) as response: - Network accessline 57
url = f"https://datasets-server.huggingface.co/splits?dataset={urllib.parse.quote(dataset)}" - Network accessline 63
url = f"https://datasets-server.huggingface.co/rows?dataset={urllib.parse.quote(dataset)}&config={config}&split={split}&offset={offset}&length={length}"
skills/huggingface-vision-trainer/scripts/estimate_cost.py
skills/huggingface-vision-trainer/scripts/image_classification_training.py
skills/huggingface-vision-trainer/scripts/object_detection_training.py
skills/huggingface-vision-trainer/scripts/sam_segmentation_training.py
skills/huggingface-zerogpu/SKILL.md
- Network accessline 12
This skill is for **Gradio SDK Spaces using ZeroGPU hardware**. Docker and Static Spaces cannot schedule onto ZeroGPU, and Streamlit apps now run as Docker Spaces — so this skill applies only to Gradio. For general Gradio coding (components - Network accessline 34
> **Backing GPU changes without notice.** ZeroGPU has already migrated across GPU generations several times; older write-ups may name A100 or H200, but those are outdated. For the current backing GPU and exact per-size VRAM, always check th - Network accessline 53
2. **Decorate GPU functions with `@spaces.GPU`**. The decorator is a no-op outside ZeroGPU, so it is safe to keep in all environments. 3. **Set `duration` to match the realistic worst-case workload** (default 60s). The platform pre-checks ` - Network accessline 54
3. **Set `duration` to match the realistic worst-case workload** (default 60s). The platform pre-checks `requested duration` against the user's `remaining quota` — not against the actual run time — so a 10-second task left at the 60s defaul - Network accessline 55
4. **`torch.compile` is NOT supported.** Use PyTorch [ahead-of-time compilation (AoTI)](https://huggingface.co/blog/zerogpu-aoti) (torch 2.8+) instead. - Network accessline 146
1. **Tier-max check** — each visitor tier has a per-call `duration` cap. Declaring `duration` larger than the cap fails immediately with `ZeroGPU illegal duration`, regardless of remaining quota. (Tier numbers change over time — see the [Ze - Network accessline 262
Pinning `python_version` is **effectively required** for ZeroGPU. The runtime default is currently Python 3.10, so a local environment using 3.11+ will fail to install on the Space without an explicit pin. Pin to a ZeroGPU-supported version
skills/huggingface-zerogpu/references/cuda-and-deps.md
- Network accessline 9
1. **Pre-built wheel via direct URL.** For `flash-attn`, the upstream project ships a fairly complete matrix at https://github.com/Dao-AILab/flash-attention/releases — check there first and pin the matching wheel URL. - Network accessline 40
If you are not sure about the ZeroGPU runtime's torch / Python / ABI combination, prefer a [kernels-community](https://huggingface.co/kernels-community) kernel (e.g. `kernels-community/flash-attn2`) instead of a raw wheel URL. The kernels r - Dangerous shell operationline 58
curl -s https://pypi.org/pypi/<pkg>/<version>/json | python3 -c "import json,sys,re; rd=json.load(sys.stdin)['info'].get('requires_dist') or []; print('\n'.join(x for x in rd if re.match(r'^torch(?![a-z])', x)) or '(no torch constrain - Network accessline 58
curl -s https://pypi.org/pypi/<pkg>/<version>/json \ - Network accessline 61
If a `torch==X.Y.Z` line appears and matches the pinned torch, good. If it appears and does NOT match, the side-car is wrong — pin it down explicitly. 2. If the query prints `(no torch constraint declared)`, PyPI metadata is silent and cann - Network accessline 62
2. If the query prints `(no torch constraint declared)`, PyPI metadata is silent and cannot be trusted. Fall back to the project's own compatibility table (GitHub README / docs site) — torchcodec, for example, maintains one at https://githu
skills/huggingface-zerogpu/references/how-quota-works.md
- Network accessline 5
For per-tier numerical thresholds (free vs Pro vs Team vs Enterprise quota minutes), the daily quota window length, runs-per-day limits, and pay-as-you-go pricing, see [the ZeroGPU docs](https://huggingface.co/docs/hub/spaces-zerogpu) — tho - Network accessline 70
For exact tier thresholds, runs-per-day caps, and pay-as-you-go billing rates, see the [ZeroGPU docs](https://huggingface.co/docs/hub/spaces-zerogpu).
skills/huggingface-zerogpu/references/how-zerogpu-works.md
- Network accessline 5
For numerical limits (concurrency slots per Space, queue priority by tier, etc.), see [the ZeroGPU docs](https://huggingface.co/docs/hub/spaces-zerogpu) — those values change over time and are deliberately kept out of this skill.
skills/train-sentence-transformers/references/base_model_selection.md
- Network accessline 31
Cross-check the [MTEB leaderboard](https://huggingface.co/spaces/mteb/leaderboard) (pick the relevant tab) before committing to a multi-hour run.
skills/train-sentence-transformers/references/hardware_guide.md
- Network accessline 47
**FSDP caveats** (from the [distributed training docs](https://sbert.net/docs/sentence_transformer/training/distributed.html)): - Network accessline 82
Hugging Face Jobs requires a Pro/Team/Enterprise plan. Pricing is approximate and subject to change. See the [Jobs pricing page](https://huggingface.co/docs/huggingface_hub/guides/jobs).
skills/train-sentence-transformers/references/hf_jobs_execution.md
- Network accessline 7
- Hugging Face account with a **Pro, Team, or Enterprise** plan. Jobs are paid. - `HF_TOKEN` with **write** permission. Log in once locally with `hf auth login` (the modern command from the `hf` CLI, replacing the deprecated `huggingface-cl - Dangerous shell operationline 9
- Access to the `hf_jobs()` MCP tool, or the `hf` CLI (`curl -LsSf https://hf.co/cli/install.sh | bash -s`). - Network accessline 9
- Access to the `hf_jobs()` MCP tool, or the `hf` CLI (`curl -LsSf https://hf.co/cli/install.sh | bash -s`). - Access to secretsline 29
[Credential-related source omitted] - Network accessline 38
hf_jobs("uv", { "script": "https://huggingface.co/USERNAME/scripts/resolve/main/train_bi_encoder.py", - Network accessline 39
"script": "https://huggingface.co/USERNAME/scripts/resolve/main/train_bi_encoder.py", - Access to secretsline 42
[Credential-related source omitted] - Network accessline 51
hf jobs uv run --flavor a10g-large --timeout 3h --secrets HF_TOKEN "https://huggingface.co/USERNAME/scripts/resolve/main/train.py" - Network accessline 53
--timeout 3h \ --secrets HF_TOKEN \ "https://huggingface.co/USERNAME/scripts/resolve/main/train.py" - Network accessline 55
"https://huggingface.co/USERNAME/scripts/resolve/main/train.py" - Access to secretsline 94
[Credential-related source omitted] - Access to secretsline 97
[Credential-related source omitted] - Access to secretsline 150
[Credential-related source omitted] - Access to secretsline 154
[Credential-related source omitted] - Access to secretsline 155
[Credential-related source omitted]
skills/train-sentence-transformers/references/model_architectures.md
- Network accessline 119
See `../scripts/train_sentence_transformer_static_embedding_example.py` for a runnable end-to-end recipe (random init + MNRL + Matryoshka + bf16 + lr=2e-1) and the [Static Embeddings blog post](https://huggingface.co/blog/static-embeddings)
skills/train-sentence-transformers/references/training_args.md
- Access to secretsline 178
[Credential-related source omitted] - Network accessline 190
**Tracker recommendation:** - **Trackio** (default) for solo / small-team work: zero friction beyond `HF_TOKEN`. Auto-creates a Space at `https://huggingface.co/spaces/<your-username>/trackio` on the first run. Subsequent runs append and gr - Network accessline 191
- **Trackio** (default) for solo / small-team work: zero friction beyond `HF_TOKEN`. Auto-creates a Space at `https://huggingface.co/spaces/<your-username>/trackio` on the first run. Subsequent runs append and group by `run_name`. - Access to secretsline 192
[Credential-related source omitted] - Access to secretsline 200
[Credential-related source omitted]
skills/train-sentence-transformers/references/troubleshooting.md
- Network accessline 79
1. Run `hf auth whoami`. If it fails, run `hf auth login`. 2. Token needs **write** permission. Regenerate from https://huggingface.co/settings/tokens. - Network accessline 80
2. Token needs **write** permission. Regenerate from https://huggingface.co/settings/tokens. - Access to secretsline 82
[Credential-related source omitted] - Access to secretsline 90
[Credential-related source omitted] - Access to secretsline 91
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/mine_hard_negatives.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 188
if args.push_to_hub: mined.push_to_hub(args.push_to_hub, private=args.private) print(f"Pushed to https://huggingface.co/datasets/{args.push_to_hub}") - Network accessline 190
print(f"Pushed to https://huggingface.co/datasets/{args.push_to_hub}")
skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 79
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 80
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 81
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 95
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_cross_encoder_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 70
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 71
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 72
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 87
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_cross_encoder_listwise_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 87
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 88
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 89
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 106
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_multi_vector_encoder_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Access to secretsline 37
[Credential-related source omitted] - Network accessline 83
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 84
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 85
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 99
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_distillation_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 108
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 109
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 110
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 129
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Access to secretsline 37
[Credential-related source omitted] - Network accessline 83
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 84
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 85
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 98
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_make_multilingual_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 13
The trick (Reimers & Gurevych 2020, https://huggingface.co/papers/2004.09813): - Network accessline 78
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 79
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 80
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 102
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_matryoshka_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 64
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 65
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 66
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 76
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_multi_dataset_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 112
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 113
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 114
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 121
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 47
References: - HF blog post: https://huggingface.co/blog/static-embeddings - Network accessline 48
- HF blog post: https://huggingface.co/blog/static-embeddings - Network accessline 93
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 94
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 95
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 113
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sentence_transformer_with_lora_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 126
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 127
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 128
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 137
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 73
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 74
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 75
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 92
[Credential-related source omitted]
skills/train-sentence-transformers/scripts/train_sparse_encoder_example.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 70
if hf_user: logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Network accessline 71
logging.info( f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" ) - Network accessline 72
f"Trackio dashboard (live training progress): https://huggingface.co/spaces/{hf_user}/trackio" - Access to secretsline 87
[Credential-related source omitted]
skills/transformers-js/SKILL.md
- Network accessline 7
version: "4.x" category: machine-learning repository: https://github.com/huggingface/transformers.js - Network accessline 8
category: machine-learning repository: https://github.com/huggingface/transformers.js compatibility: Requires Node.js 18+ (or compatible Bun/Deno runtime) or modern browser with ES modules support. WebGPU requires runtime and hardware sup - Network accessline 9
repository: https://github.com/huggingface/transformers.js - Network accessline 35
<script type="module"> import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers'; - Network accessline 36
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers'; - Network accessline 73
Browse available Transformers.js models on Hugging Face Hub: - **All models**: https://huggingface.co/models?library=transformers.js&sort=trending - Network accessline 74
- **All models**: https://huggingface.co/models?library=transformers.js&sort=trending - Network accessline 75
- **By task**: Add `pipeline_tag` parameter - Text generation: https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending - Image classification: https://huggingface.co/models?pipeline_tag=image-cla - Network accessline 76
- Text generation: https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending - Network accessline 77
- Image classification: https://huggingface.co/models?pipeline_tag=image-classification&library=transformers.js&sort=trending - Network accessline 78
- Speech recognition: https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&library=transformers.js&sort=trending - Network accessline 176
const classifier = await pipeline('image-classification'); const result = await classifier('https://example.com/image.jpg'); - Network accessline 177
const result = await classifier('https://example.com/image.jpg'); - Network accessline 184
const detector = await pipeline('object-detection'); const objects = await detector('https://example.com/image.jpg'); - Network accessline 185
const objects = await detector('https://example.com/image.jpg'); - Network accessline 191
const segmenter = await pipeline('image-segmentation'); const segments = await segmenter('https://example.com/image.jpg'); - Network accessline 192
const segments = await segmenter('https://example.com/image.jpg'); - Network accessline 197
const depthEstimator = await pipeline('depth-estimation'); const depth = await depthEstimator('https://example.com/image.jpg'); - Network accessline 198
const depth = await depthEstimator('https://example.com/image.jpg'); - Network accessline 270
https://huggingface.co/models?library=transformers.js&sort=trending - Network accessline 275
| Task | URL | |------|-----| | **Text Generation** | https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending | - Network accessline 276
|------|-----| | **Text Generation** | https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending | | **Text Classification** | https://huggingface.co/models?pipeline_tag=text-classification&library=tra - Network accessline 277
| **Text Generation** | https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending | - Network accessline 278
| **Text Classification** | https://huggingface.co/models?pipeline_tag=text-classification&library=transformers.js&sort=trending | - Network accessline 279
| **Translation** | https://huggingface.co/models?pipeline_tag=translation&library=transformers.js&sort=trending | - Network accessline 280
| **Summarization** | https://huggingface.co/models?pipeline_tag=summarization&library=transformers.js&sort=trending | - Network accessline 281
| **Question Answering** | https://huggingface.co/models?pipeline_tag=question-answering&library=transformers.js&sort=trending | - Network accessline 282
| **Image Classification** | https://huggingface.co/models?pipeline_tag=image-classification&library=transformers.js&sort=trending | - Network accessline 283
| **Object Detection** | https://huggingface.co/models?pipeline_tag=object-detection&library=transformers.js&sort=trending | - Network accessline 284
| **Image Segmentation** | https://huggingface.co/models?pipeline_tag=image-segmentation&library=transformers.js&sort=trending | - Network accessline 285
| **Speech Recognition** | https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&library=transformers.js&sort=trending | - Network accessline 286
| **Audio Classification** | https://huggingface.co/models?pipeline_tag=audio-classification&library=transformers.js&sort=trending | - Network accessline 287
| **Image-to-Text** | https://huggingface.co/models?pipeline_tag=image-to-text&library=transformers.js&sort=trending | - Network accessline 288
| **Feature Extraction** | https://huggingface.co/models?pipeline_tag=feature-extraction&library=transformers.js&sort=trending | - Network accessline 289
| **Zero-Shot Classification** | https://huggingface.co/models?pipeline_tag=zero-shot-classification&library=transformers.js&sort=trending | - Network accessline 330
// 1. Visit: https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending - Network accessline 360
3. **Read Model Cards**: Model cards contain usage examples, limitations, and benchmarks 4. **Test Locally**: Benchmark inference speed and memory usage in your environment 5. **Filter by Library**: Use `library=transformers.js` to find com - Network accessline 361
4. **Test Locally**: Benchmark inference speed and memory usage in your environment 5. **Filter by Library**: Use `library=transformers.js` to find compatible models: https://huggingface.co/models?library=transformers.js 6. **Version Pin**: - Network accessline 362
5. **Filter by Library**: Use `library=transformers.js` to find compatible models: https://huggingface.co/models?library=transformers.js - Network accessline 392
// Optional: custom fetch for auth headers, retries, abort signals, etc. env.fetch = (url, options) => fetch(url, { - Network accessline 393
env.fetch = (url, options) => fetch(url, { ...options, - Network accessline 394
fetch(url, { - Access to secretsline 398
[Credential-related source omitted] - Network accessline 415
// Custom CDN env.remoteHost = 'https://cdn.example.com/models'; - Network accessline 416
env.remoteHost = 'https://cdn.example.com/models'; - Network accessline 642
### Official Transformers.js - Official docs: https://huggingface.co/docs/transformers.js - Network accessline 643
- Official docs: https://huggingface.co/docs/transformers.js - Network accessline 644
- API reference: https://huggingface.co/docs/transformers.js/api/pipelines - Network accessline 645
- Model hub: https://huggingface.co/models?library=transformers.js - Network accessline 646
- GitHub: https://github.com/huggingface/transformers.js - Network accessline 647
- Examples: https://github.com/huggingface/transformers.js-examples
skills/transformers-js/references/CACHE.md
skills/transformers-js/references/CONFIGURATION.md
- Network accessline 84
// Use your own CDN or model server env.remoteHost = 'https://cdn.example.com/models'; - Network accessline 85
env.remoteHost = 'https://cdn.example.com/models'; - Network accessline 99
// Configure custom model host env.remoteHost = 'https://models.mycompany.com'; - Network accessline 100
env.remoteHost = 'https://models.mycompany.com'; - Network accessline 103
// Models will be loaded from: // https://models.mycompany.com/my-model/model.onnx - Network accessline 104
// https://models.mycompany.com/my-model/model.onnx - Network accessline 217
// Set custom WASM paths env.backends.onnx.wasm.wasmPaths = 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/'; - Network accessline 218
env.backends.onnx.wasm.wasmPaths = 'https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/'; - Network accessline 255
### Custom Fetch (`env.fetch`) - Access to secretsline 262
[Credential-related source omitted] - Network accessline 264
env.fetch = (url, options) => fetch(url, { - Network accessline 265
fetch(url, { - Access to secretsline 269
[Credential-related source omitted] - Network accessline 338
// Use your own model hosting env.remoteHost = 'https://cdn.example.com/ml-models'; - Network accessline 339
env.remoteHost = 'https://cdn.example.com/ml-models';
skills/transformers-js/references/EXAMPLES.md
- Network accessline 32
<script type="module"> import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4'; - Network accessline 33
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4'; - Network accessline 106
<script type="module"> import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4'; - Network accessline 107
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4'; - Network accessline 541
app.listen(3000, () => { console.log('Server running on http://localhost:3000'); - Network accessline 542
console.log('Server running on http://localhost:3000'); - Network accessline 611
initialize().then(() => { server = app.listen(3000, () => { console.log('Server running on http://localhost:3000'); - Network accessline 612
server = app.listen(3000, () => { console.log('Server running on http://localhost:3000'); }); - Network accessline 613
console.log('Server running on http://localhost:3000');
skills/transformers-js/references/MODEL_ARCHITECTURES.md
skills/transformers-js/references/PIPELINE_OPTIONS.md
skills/transformers-js/references/TEXT_GENERATION.md
- Network accessline 76
<script type="module"> import { pipeline, TextStreamer } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4'; - Network accessline 77
import { pipeline, TextStreamer } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@4'; - Network accessline 287
**https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending**
skills/trl-training/SKILL.md
- Network accessline 5
metadata: author: huggingface documentation: https://huggingface.co/docs/trl - Network accessline 6
author: huggingface documentation: https://huggingface.co/docs/trl --- - Network accessline 7
documentation: https://huggingface.co/docs/trl - Network accessline 23
Many more trainers (OnlineDPO, ORPO, CPO, GKD, …) live in `trl.experimental` with unstable APIs: https://huggingface.co/docs/trl/experimental_overview - Network accessline 41
Conversational: `{"messages": [{"role": ..., "content": ...}]}` (language modeling) or `{"prompt": [...], "completion": [...]}`. The chat template is applied automatically — never apply it yourself. Extra columns are allowed; GRPO forwards
How the signals fit together
Facts from a static read of the files at the pinned commit. They describe what the code does, not why.
Some files could not be read; the facts below still hold.
Signal confidence: 500 facts
- Network access in prose of the SKILL.mdhf-mcp/SKILL.md:8Low confidence
- Network access in code of the SKILL.mdhf-mcp/SKILL.md:73High confidence
- Network access in code of the SKILL.mdhf-mcp/SKILL.md:74High confidence
- Access to secrets in code of the SKILL.md: a variable, placeholder or call, not a stored valuehf-mcp/SKILL.md:97Low confidence
- Access to secrets in prose of the SKILL.md: a variable, placeholder or call, not a stored valuehf-mcp/SKILL.md:177Low confidence
- Dangerous shell operation in prose of the SKILL.mdhf-cli/SKILL.md:6Low confidence
- Network access in prose of the SKILL.mdhf-cli/SKILL.md:6Low confidence
- Dangerous shell operation in prose of the SKILL.mdhf-cli/SKILL.md:49Low confidence
- Network access in prose of the SKILL.mdhf-cli/SKILL.md:230Low confidence
- Network access in prose of the SKILL.mdhf-cli/SKILL.md:232Low confidence
- Access to secrets in prose of the SKILL.md: a variable, placeholder or call, not a stored valuehf-cli/SKILL.md:236Low confidence
- Access to secrets in prose of the SKILL.mdhf-cloud-aws-context-discovery/SKILL.md:16Low confidence
- Access to secrets in prose of the SKILL.mdhf-cloud-aws-context-discovery/SKILL.md:24Low confidence
- Access to secrets in prose of the SKILL.md: reads a credential storehf-cloud-aws-context-discovery/SKILL.md:64Low confidence
- Network access in prose of the SKILL.mdhf-cloud-python-env-setup/SKILL.md:20Low confidence
- Network access in prose of the SKILL.mdhf-cloud-python-env-setup/SKILL.md:22Low confidence
- Executable script in code of a file that runshf-cloud-python-env-setup/scripts/check_versions.py:1High confidence
- Executable script in code of a file that runshf-cloud-python-env-setup/scripts/setup_env.py:1High confidence
- Network access in code of a file that runshf-cloud-python-env-setup/scripts/setup_env.py:86High confidence
- Network access in code of a file that runshf-cloud-python-env-setup/scripts/setup_env.py:88High confidence
- Executable script in code of a file that runshf-cloud-sagemaker-iam-preflight/scripts/check_role.py:1High confidence
- Executable script in code of a file that runshf-cloud-sagemaker-iam-preflight/scripts/create_role.py:1High confidence
- Network access in prose of the SKILL.mdhf-cloud-sagemaker-production-defaults/SKILL.md:170Low confidence
- Executable script in prose of a file that runshf-cloud-sagemaker-production-defaults/scripts/_common.py:1Low confidence
- Executable script in code of a file that runshf-cloud-sagemaker-production-defaults/scripts/deploy.py:1High confidence
- Executable script in code of a file that runshf-cloud-sagemaker-production-defaults/scripts/deploy_async.py:1High confidence
- Executable script in code of a file that runshf-cloud-sagemaker-production-defaults/scripts/deploy_ic.py:1High confidence
- Executable script in code of a file that runshf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py:1High confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuehf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py:65Low confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuehf-cloud-sagemaker-production-defaults/scripts/invoke_endpoint.py:66Low confidence
- Executable script in code of a file that runshf-cloud-sagemaker-production-defaults/scripts/teardown.py:1High confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuehf-cloud-sagemaker-production-defaults/scripts/teardown.py:66Low confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuehf-cloud-sagemaker-production-defaults/scripts/teardown.py:67Low confidence
- Network access in prose of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:24Low confidence
- Network access in prose of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:28Low confidence
- Network access in prose of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:51Low confidence
- Network access in code of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:65High confidence
- Network access in prose of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:78Low confidence
- Network access in prose of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:94Low confidence
- Network access in code of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:189High confidence
- Network access in code of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:190High confidence
- Network access in prose of the SKILL.mdhf-cloud-serving-image-selection/SKILL.md:198Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:5Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:6Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:32Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:38Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:39Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:73Low confidence
- Network access in prose of documentationhf-cloud-serving-image-selection/references/model-to-image.md:101Low confidence
- Executable script in code of a file that runshf-cloud-serving-image-selection/scripts/mirror_image.py:1High confidence
and 450 more
Only the first 500 facts are listed.
Works with
| Agent | Status | Evidence | Install to |
|---|---|---|---|
| Claude Code | Native | Manifest .claude-plugin/marketplace.json | .claude/skills/<skill-name>/ |
| Codex | Native | Manifest agentsmd/AGENTS.md | .agents/skills/<skill-name>/ |
| Cursor | Compatible | Standard SKILL.md hf-mcp/skills/hf-mcp/SKILL.md | .cursor/skills/<skill-name>/ |
| Gemini CLI | Native | Manifest gemini-extension.json | .gemini/skills/<skill-name>/ |
| GitHub Copilot | Compatible | Standard SKILL.md hf-mcp/skills/hf-mcp/SKILL.md | .github/skills/<skill-name>/ |
| OpenCode | Compatible | Standard SKILL.md hf-mcp/skills/hf-mcp/SKILL.md | .opencode/skills/<skill-name>/ |
- Native The repository ships a manifest, folder or frontmatter field for this agent.
- Compatible A standard SKILL.md that this agent can read.
- Unknown No evidence either way.
Derived automatically from paths, manifests and frontmatter. Not tested on each agent.
Explore alternatives and comparisons
Add this badge to your README
It updates every night and links to this page.
[](https://hotskills.dev/skill/huggingface-skills/)