当前位置: 首页 > Skill >

Hugging Face

Hugging Face

1.0.0 2026.11.17 浏览:750
获取Skill文件查看使用说明
作者:苏安许可证:
本文目录展开

Setup

On first use, read setup.md for integration guidelines and local memory initialization.

When to Use

User needs to find the right Hugging Face model, dataset, or Space for a concrete task and move from browsing to reliable execution. Agent handles discovery, filtering, license checks, quick benchmarking, and integration-ready inference plans.

Architecture

Memory and reusable artifacts live in ~/hugging-face/. See memory-template.md for structure and status fields.

~/hugging-face/
|- memory.md          # Stable context, priorities, and defaults
|- shortlists.md      # Candidate models and datasets by use case
|- evaluations.md     # Benchmark runs, winners, and caveats
|- endpoints.md       # Approved endpoints and auth notes
`- exports/           # Saved outputs and comparison snapshots

Quick Reference

Load only one focused file at a time to keep context small and decisions explicit.

Topic File
Setup process setup.md
Memory template memory-template.md
Model and dataset discovery discovery.md
Inference execution patterns inference.md
Evaluation rubric and scoring evaluation.md
Common failures and recovery troubleshooting.md

Core Rules

1. Lock Objective and Constraints First

Before selecting any artifact, confirm task type, latency budget, cost boundary, and deployment target.

Use this minimum scope packet:

  • Task type: chat, generation, embedding, classification, vision, or speech
  • Quality priority: best quality, best speed, or balanced
  • Runtime constraints: CPU only, specific GPU class, or hosted endpoint
  • Compliance constraints: license, region, or private data limits

2. Separate Discovery from Execution

Do not run inference on the first candidate found.

First create a shortlist of at least three candidates, then execute only on finalists that pass compatibility and license checks.

3. Validate License and Access Before Recommendation

For every candidate, verify license, gated access status, model size, and framework compatibility.

If any of these are unknown, mark the candidate as provisional and avoid production recommendation.

4. Benchmark with a Deterministic Mini Suite

Use the same prompt set and output checks across candidates so results are comparable.

Minimum benchmark set:

  • One typical request
  • One edge-case request
  • One failure-prone request

5. Minimize External Data

Send only what is required for the selected endpoint.

Never send credentials, local paths, or unrelated private context in request payloads.

6. Use a Fallback Ladder

If the preferred model fails, apply ordered fallback:

  1. Retry same endpoint with smaller payload
  2. Switch to a compatible backup model
  3. Switch to local-only workflow if available

7. Keep Runs Reproducible

Log selected model id, endpoint, key parameters, and evaluation result in local memory so future runs are consistent and auditable.

Common Traps

  • Picking the highest download count as the only criterion -> often misses license, latency, or domain fit.
  • Ignoring gated model requirements -> integration fails at runtime due to access restrictions.
  • Comparing models with different prompts -> quality conclusions become unreliable.
  • Sending full user context to inference endpoints -> unnecessary privacy exposure.
  • Skipping fallback design -> workflows fail hard on transient endpoint errors.

External Endpoints

Use discovery endpoints before inference so candidate selection remains explainable and reproducible.

Endpoint Data Sent Purpose
https://huggingface.co/api/models Search terms, filter parameters Discover model candidates
https://huggingface.co/api/datasets Search terms, filter parameters Discover dataset candidates
https://huggingface.co/api/spaces Search terms, filter parameters Discover runnable Spaces
https://api-inference.huggingface.co/models/{model_id} Prompt or task input payload, selected model id, auth token Run hosted inference

No other data is sent externally.

Security & Privacy

Data that leaves your machine:

  • Search terms and filter inputs sent to Hugging Face discovery APIs.
  • Inference payloads sent to Hugging Face Inference API when execution is requested.

Data that stays local:

  • Preferences, shortlists, evaluation notes, and endpoint decisions in ~/hugging-face/.

This skill does NOT:

  • Exfiltrate local files by default.
  • Send undeclared network requests.
  • Store raw secrets in local notes.
  • Modify its own skill definition file.

Trust

By using this skill, selected request data is sent to Hugging Face services. Only install if you trust Hugging Face with the inputs you choose to process.

Related Skills

Install with clawhub install <slug> if user confirms:

  • ai - general AI strategy and model-selection framing
  • api - API-first integration patterns and HTTP debugging
  • data-analysis - dataset inspection and quality interpretation
  • data - structured data workflows and extraction patterns
  • code - implementation support for scripts and adapters

Feedback

  • If useful: clawhub star hugging-face
  • Stay updated: clawhub sync

相关文章

更多
LocalAI 支持 Hugging Face 模型落盘:本地启动与离线验收

LocalAI 新合入改动支持将 Hugging Face 模型工件完整写入本地存储,减少推理运行时对远端仓库的依赖。通过本地启动服务并加载模型,团队可提前备齐文件以适配内网和离线环境。需注意模型落盘不等于全套服务离线可用,需同步准备对应后端镜像并在受限网络下实测验证。

2026.11.08 799
Krafton开源Raon-1 Mini:300亿参数MoE模型,推理激活仅40亿

韩国游戏厂商Krafton于2026年11月25日正式发布自研大语言模型Raon-1 Mini。该模型采用专家混合(MoE)架构,总参数量约300亿,但推理时仅激活约40亿参数,兼顾性能与效率。正式版提供六档推理强度调节,并在MultiChallenge、GDPVal等测试中表现优异,已在Hugging Face以Apache 2.0协议开源。

2026.11.20 700
Hugging Face推理路由改用OpenRouter

Hugging Face宣布将Inference Providers的语言模型请求路由交由OpenRouter处理,停用原有自研路由器。此次变更对开发者透明,现有调用代码无需修改,继续使用原有Token和API即可。OpenRouter根据实时价格、速度和可靠性从80余家服务商中动态选路,并在首选失败时自动重试其他服务商,提升了调用的稳定性和灵活性。

2026.11.04 606
Mellum2.1 Instruct 发布:开源权重与仓库级编程

JetBrains 于 2026 年 11 月 25 日发布 Mellum2.1 Instruct,该模型基于 Apache 2.0 协议开源。作为 Mellum2.1 Thinking 的直接作答版本,Instruct 采用总参数 12B、激活参数 2.5B 的 MoE 架构,专为仓库级 Agent 编程任务设计,强调快速简短输出且不含思维链。用户可通过 Hugging Face 获取权重,建议在日常代码改动和多轮工具调用场景中将其与推理模型对比使用,并务必通过测试验证生成代码的正确性后再行合并。

2026.11.20 465
Hugging Face 模型窃密稿件核对:现有摘录无法佐证

当前提供的网页摘录聚焦于 AWS-LC 库如何支持密码算法的敏捷更替,并未涉及 Hugging Face 平台上的模型窃密事件。由于缺乏 JFrog 对 ARTEX 的安全披露、Hugging Face 仓库处置说明或相关新闻报道正文,现有材料无法支撑关于模型上传、凭证泄露及仓库下线等具体安全事件的核实与报道。

2026.11.20 216
Skill 文件
  • SKILL.md
    • Setup
    • When to Use
    • Architecture
    • Quick Reference
    • Core Rules
      • 1. Lock Objective and Constraints First
      • 2. Separate Discovery from Execution
      • 3. Validate License and Access Before Recommendation
      • 4. Benchmark with a Deterministic Mini Suite
      • 5. Minimize External Data
      • 6. Use a Fallback Ladder
      • 7. Keep Runs Reproducible
    • Common Traps
    • External Endpoints
    • Security & Privacy
    • Trust
    • Related Skills
    • Feedback
  • 项目或源文件

相关 Skill

更多
hugging-face-cli hugging-face-cli 使用 `hf` CLI 执行 Hugging Face Hub 操作。当用户需要下载模型/数据集/空间、向 Hub 仓库上传文件、创建仓库、管理本地缓存,或在
Reachy Mini Reachy Mini 通过 REST API 与 SSH 控制 Reachy Mini 机器人(Pollen Robotics / Hugging Face)。用于移动头部、身体、天线,播放情绪或舞蹈,捕获摄像头快照,调节音量,管理应用,检查状态及任何物理交互。该机器人具 6‑DoF 头部、360° 身体旋转、双可动天线、宽视角摄像头(非侵入式 WebRTC 快照)、4‑mic 阵列和扬声器。
HF Daily Papers (OFR Edition) HF Daily Papers (OFR Edition) 筛选并按六大领域分类推送每日 Hugging Face 热门 OFR 相关论文,支持 Markdown 和 Telegram 格式输出。
Dataset Finder Dataset Finder 使用场景:用户需要搜索数据集、下载数据文件或探索数据仓库时。触发条件:包括"查找数据集"、"搜索数据"、"从Kaggle下载数据集"、"从Hugging Face获取数据"、"查找机器学习数据集"等请求,或提及Kaggle、UCI机器学习库、Data.gov、Hugging Face等数据仓库。也可用于预览数据集统计信息、生成数据卡或发现机器学习项目所需数据集。需要从clawhub.ai安装OpenClawCLI。
huggingface-llm-trainer huggingface-llm-trainer 使用 TRL(Transformer Reinforcement Learning)或 Unsloth 配合 Hugging Face Jobs 基础设施训练或