Catalog
huggingface/huggingface-best

huggingface

huggingface-best

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.

global
New~1.4k
v1.0Saved Jul 11, 2026

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.)

If device is not mentioned, skip filtering entirely and return the highest-performing models regardless of size. If the task is genuinely ambiguous, ask one clarifying question.

Device → max parameter budget

When a device is specified, extract its available memory (unified RAM for Apple Silicon, VRAM for discrete GPUs) and apply:

  • fp16 max params (B) ≈ memory (GB) ÷ 2
  • Q4 max params (B) ≈ memory (GB) × 2

Examples: 16GB → 8B fp16 / 32B Q4 — 24GB VRAM → 12B fp16 / 48B Q4 — 8GB → 4B fp16 / 16B Q4


Step 2: Find relevant benchmark datasets

Fetch the full list of official HF benchmarks:

curl -s -H "Authorization: Bearer $(cat ~/.cache/huggingface/token)" \
  "https://huggingface.co/api/datasets?filter=benchmark:official&limit=500" | jq '[.[] | {id, tags, description}]'

Read the returned list and select the datasets most relevant to the user's task — match on dataset id, tags, and description. Use your judgment; don't limit yourself to 2-3. Aim for comprehensive coverage: if 5 benchmarks clearly cover the task, use all 5.


Step 3: Fetch top models from leaderboards

For each selected benchmark dataset:

curl -s -H "Authorization: Bearer $(cat ~/.cache/huggingface/token)" \
  "https://huggingface.co/api/datasets/<namespace>/<repo>/leaderboard" | jq '[.[:15] | .[] | {rank, modelId, value, verified}]'

Collect model IDs and scores across all benchmarks. If a leaderboard returns an error (404, 401, etc.), skip it and note it in the output.


Step 4: Enrich with model metadata

For the top 10-15 candidate model IDs, get model infos.

# REST API
curl -s -H "Authorization: Bearer $(cat ~/.cache/huggingface/token)" \
  "https://huggingface.co/api/models/org/model1" | jq '{safetensors, tags, cardData}'

# CLI (hf-cli)
hf models info org/model1 --json | jq '{safetensors, tags, cardData}'

Extract from each response:

  • Parameters: safetensors.total → convert to B (e.g., 7_241_748_480 → "7.2B")
  • License: from model card tags (look for license:apache-2.0, license:mit, etc.)
  • If safetensors is absent, parse size from the model name (look for "7b", "8b", "13b", "70b", "72b", etc.)

Step 5: Filter and rank

If a device was specified:

  1. Remove models exceeding the fp16 parameter budget for the device
  2. Flag models that fit only with Q4 quantization (multiply budget by ~4 for Q4 capacity)
  3. If a highly-ranked model is slightly over budget, keep it with a "needs Q4" note — don't silently drop it

If no device was mentioned: skip all size filtering — just rank by benchmark score.

Then: rank by benchmark score (descending), keep top 5-8 models.

Include proprietary models (GPT-4, Claude, Gemini) if they appear on leaderboards, but flag them as "API only / not self-hostable". If the user explicitly asked for local/open models only, exclude them.


Step 6: Output

Comparison table

| # | Model | Params | [Benchmark 1] | [Benchmark 2] | License | On device |
|---|-------|--------|--------------|--------------|---------|-----------|
| ⭐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.5% | MIT | Q4 only |
| 3 | [org/name](https://huggingface.co/org/name) | 70B | 90.0% | 81.0% | Llama | Too large |
  • Link model names to https://huggingface.co/<model_id>
  • Use for benchmarks where the model wasn't evaluated
  • Star the top recommended pick with ⭐
  • "On device" values: Yes (fp16), Q4 only, Too large, API only

Follow-up

After presenting the table, ask the user: "Would you like to run [top recommended model]?"

If they say yes, ask whether they'd prefer to:


Error handling

  • Leaderboard not found: skip, note "leaderboard unavailable" in output
  • Model missing from hub_repo_details: fall back to parsing size from model name
  • No benchmarks found for task: use the curated fallback table above, or try hub_repo_search with filters=["<task>"] sorted by trendingScore
  • All leaderboards fail: fall back to hub_repo_search for popular models tagged with the task, note that results are by popularity rather than benchmark score
Files1
1 files · 11.1 KB

Select a file to preview

Overall Score

82/100

Grade

B

Good

Safety

80

Quality

88

Clarity

84

Completeness

78

Summary

Helps users find and compare the best AI models for their task by querying HuggingFace benchmark leaderboards, filtering recommendations by device hardware constraints, and presenting ranked results in a comparison table. The skill enriches benchmark data with model metadata (size, license) and provides guidance on deployment options.

Detected Capabilities

http-requestcredential-access-cacheddata-filteringtable-generationdevice-capability-matchingexternal-api-query

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

best model for taskwhich model should I usetop models comparisonmodel runs on devicerecommend AI modelcompare model benchmarksstate of the art modellocal model selection

Risk Signals

INFO

Reads cached HuggingFace authentication token from ~/.cache/huggingface/token

Step 2, Step 3, Step 4 curl commands
INFO

Makes outbound HTTPS requests to huggingface.co API endpoints

Step 2 (datasets API), Step 3 (leaderboards), Step 4 (models API)
INFO

Directly reads from user's home directory filesystem (~/.cache/huggingface/token)

Multiple curl headers: -H "Authorization: Bearer $(cat ~/.cache/huggingface/token)"

Referenced Domains

External domains referenced in skill content, detected by static analysis.

huggingface.cowww.apache.org

Use Cases

  • Find the best-performing model for a specific AI task
  • Compare models by benchmark scores and filter by device hardware
  • Determine which model fits on a user's device (MacBook, GPU, CPU-only)
  • Recommend open-source alternatives to proprietary models like GPT-4 or Claude
  • Get deployment guidance for running a selected model locally or on HF Jobs
  • Identify state-of-the-art models for coding, reasoning, OCR, RAG, speech, and image tasks

Quality Notes

  • Well-structured multi-step workflow with clear parsing, fetching, enrichment, and filtering stages
  • Device-to-parameter-budget calculation is explicitly documented with concrete examples (16GB → 8B fp16 / 32B Q4)
  • Comprehensive error handling provided for leaderboard failures, missing model metadata, and no-benchmark fallbacks
  • Output format is well-defined with example markdown table including model links, parameter counts, benchmark scores, and device compatibility flags
  • Clear instructions on handling proprietary models (flag as API-only, allow exclusion if user requests local-only)
  • Trigger phrases in frontmatter are specific and actionable (e.g., 'best model for X', 'which model runs on my laptop')
  • Follow-up engagement is documented: asks user if they want to run the recommended model, then offers local vs. HF Jobs deployment choice
  • Handles ambiguous requests gracefully with guidance to ask one clarifying question rather than making assumptions
  • Appropriate filtering logic: keeps slightly over-budget models with Q4 notes rather than silently dropping high-ranked options
Model: claude-haiku-4-5-20251001Analyzed: Jul 11, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add huggingface/huggingface-best to your library

Command Palette

Search for a command to run...