Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

create-tiny-model

Skill by vllm-project

Creates tiny versions of known Hugging Face models for testing and development. It covers config inspection, fine tuning on a toy dataset, checkpoint validation and README generation.

  • Score 90
  • 4k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install create-tiny-model

Built from the published package, never by AI.

git clone --depth 1 https://github.com/vllm-project/llm-compressor /tmp/llm-compressor && mkdir -p ~/.claude/skills && cp -r /tmp/llm-compressor/.agents/skills/create-tiny-model ~/.claude/skills/create-tiny-model

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install create-tiny-model in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

create-tiny-model is an agent skill from the vllm-project publisher that creates a tiny version of a known HuggingFace model for testing and experimentation. Given a model ID such as Qwen/Qwen2.5-0.5B-Instruct, the assistant inspects the model config, copies save_tiny_model.py, and reduces the number of layers so the tiny model keeps the original architecture at about 1B parameters.

The workflow then fine tunes the model on a toy dataset with finetune.py, targeting a perplexity of about 3.0. It checks that the saved checkpoint structure matches the original, validates that the model loads and runs, and generates a README from a template. The skill can also upload the fine tuned model to the HuggingFace Hub under the inference-optimization org if permissions allow. It is aimed at developers who need small models for testing and development.

Written from the project's SKILL.md and checked against it.

What it can do

  • inspect_config.pyInspects the config fields of a model without downloading all files.
  • save_tiny_model.pyTemplate for saving a tiny version of the model with fewer layers.
  • inspect_tensors.pyInspects and analyzes tensors and checkpoint format in models.
  • finetune.pyFine tunes the tiny model on a toy dataset to confirm it can learn.
  • validate_tiny_model.pyChecks that the tiny model loads and runs inference correctly.
  • README_TEMPLATE.mdTemplate used to generate a README for the tiny model.

What you need

  • HuggingFace Hub access
  • transformers library
  • hf CLI for uploads
  • Permissions in the inference-optimization org to upload

Try asking

  • Create a tiny version of Qwen/Qwen2.5-0.5B-Instruct for testing.
  • Inspect the config of facebook/opt-125m and list its layer fields.
  • Fine tune my tiny model on the toy dataset and check the perplexity.

Good to know

  • Vision-language models may require script modifications to load correctly.
  • The target perplexity is about 3.0, and a high perplexity is not considered valid.
  • Upload is skipped if there are no permissions in the inference-optimization org.
  • Extra files must be created in a temporary directory, not the skills folder.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/create-tiny-model/SKILL.md, .agents/skills/create-tiny-model/scripts/finetune.py, .agents/skills/create-tiny-model/scripts/inspect_config.py, .agents/skills/create-tiny-model/scripts/inspect_tensors.py, .agents/skills/create-tiny-model/scripts/save_tiny_model.py, .agents/skills/create-tiny-model/scripts/validate_tiny_model.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • scripts/README.md671 B
  • scripts/finetune.py8 KB
  • scripts/inspect_config.py312 B
  • scripts/inspect_tensors.py2 KB
Show all 8 files
  • scripts/save_tiny_model.py2 KB
  • scripts/validate_tiny_model.py2 KB
  • templates/README_TEMPLATE.md1 KB

Alternatives to create-tiny-model

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

create-tiny-model: common questions

What does create-tiny-model produce?

It produces a tiny version of a known HuggingFace model with about 1B parameters that keeps the original architecture. The skill also generates a README for the model.

How is the tiny model checked?

The fine tuned model is checked against a perplexity target of about 3.0. Its checkpoint structure is compared with the original, and validate_tiny_model.py confirms it loads and infers correctly.

Which models does it work with?

The source gives examples such as Qwen/Qwen2.5-0.5B-Instruct and facebook/opt-125m. Multimodal models must be loaded with ...ForConditionalGeneration rather than AutoModelForCausalLM.

How do I install create-tiny-model?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is create-tiny-model free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is create-tiny-model safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to create-tiny-model?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

create-tiny-model Install

Add to stack

Loading.