beer-sakthai/sak-family-agent/sakthai-hf-hub-models-widgets

Claude Code and agent skill by beer-sakthai/sak-family-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

>- HF Hub model page inference widgets — configuration, example inputs/outputs, provider-backed live inference, playground testing, and widget metadata YAML.

Install

npx vskill@latest install beer-sakthai/sak-family-agent/sakthai-hf-hub-models-widgets

SKILL.md

Hugging Face Hub Inference Widgets

Overview

The model page inference widget allows users to test models directly on the Hub without writing any code. Widgets are powered by the Inference Providers network — a multi-provider inference serving system that replaced the old "Hosted Inference API."

Widget Configuration

Widgets are configured through YAML metadata in the model card:

yaml
widget:
- text: "The two men running to become New York City's next mayor..."
example_title: "Reading comprehension"
- src: sample1.flac
example_title: "Speech sample 1"
Example Input Types
  • Text tasks: text property
  • Audio/Image tasks: src property (URL or relative repo path)
  • Multiple examples: Array under widget: key
  • Examples repo-relative: Just use filename/path inside the repo
  • Default inputs: Source at huggingface.js/packages/tasks/src/default-widget-inputs.ts
Example Outputs

For models without live provider support, example outputs can be specified:

yaml
widget:
- text: "I liked this movie"
output:
- label: POSITIVE
score: 0.8
- label: NEGATIVE
score: 0.2

Output types:

  • Text output: output.text
  • Label scores: output[].label + output[].score
  • Media output: output.url (image/audio file in repo)

Widget Availability Conditions

  1. Task Support: The model's pipeline tag must be served by at least one

Inference Provider

  1. Provider Availability: At least one provider actively serves that model
  2. Model Configuration: Proper metadata and config files must exist

If no provider supports a model, "Ask for provider support" button appears.

Inference Playground

The Inference Playground lets users test chat completion models interactively with custom prompts, compare models, and tweak parameters (temperature, max tokens). Uses the same Inference Providers infrastructure.

How the Widget Differs from InferenceClient

AspectWidgetInferenceClient
Use caseOne-click testing on model pageProgrammatic inference in code
AuthUses HF token or cookiesUses HF token
RoutingProvider auto-selectionProvider selection via model ID
StreamingLimited (non-streaming for most)Full streaming support
CostFree (community tier)Free or paid per provider

Key Takeaway

Widgets are the public face of Inference Providers on model pages. Configure them well = better user engagement. For zero-cost production inference, use InferenceClient with community-tier providers targeting the same model ID.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/beer-sakthai/sak-family-agent/sakthai-hf-hub-models-widgets/badge)](https://verified-skill.com/skills/beer-sakthai/sak-family-agent/sakthai-hf-hub-models-widgets)

Something wrong with this skill or its page? Tell us.