create-tiny-model
Skill3.9k starsChanged 9 days agoApache-2.0View on GitHub
Create and manage tiny models for testing and development. Includes utilities for saving tiny models, inspecting tensors, and finetuning workflows.
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
When this skill is invoked, the following steps will be completed:
- Very specific: line 48
If the model is a vision-language model, do not try to fine tune on a vision dataset, only fine tune on the provided text dataset.
- Very specific: line 54
Generate README: Create a comprehensive README.md for the model using the template at templates/README_TEMPLATE.md.
- Very specific: line 71
If you do not have permissions within the inference-optimization org, skip this step.
- Distinctive: line 81
Make sure that, if you create any extra files, that they are created in a temporary directory, not in the skills folder.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create Tiny Model Skill
This skill creates a tiny version of a known model for testing and experimentation purposes
Arguments
model_id(optional): The HuggingFace model ID to use for creating or working with tiny models. Examples: "Qwen/Qwen2.5-0.5B-Instruct", "facebook/opt-125m"
Available Scripts
Scripts are located in .agents/skills/create-tiny-model/scripts/:
inspect_config.py- Inspect the config fields of a model without downloading all filessave_tiny_model.py- Template for saving a tiny version of the modelinspect_tensors.py- Inspect and analyze tensors in modelsfinetune.py- Finetune tiny models on a toy datasetvalidate_tiny_model.py- Validate that the tiny model was created correctly
Templates
Templates are located in .agents/skills/create-tiny-model/templates/:
README_TEMPLATE.md- Template for generating model README with placeholders for model details
Steps to creating a tiny model
When this skill is invoked, the following steps will be completed:
- Inspect config: Use
inspect_config.pyto understand the model configuration fields. Specifically find which fields control the number of layers, layer types, and the number of parameters. Check if the model is multimodal. If the model is multimodal, remember to always load with...ForConditionalGenerationrather thanAutoModelForCausalLM - Create tiny model: Make a copy of
save_tiny_model.py. Modify the copy to create a tiny version of the given model which maintains the same architecture as the original model (at least one of each attention type in the original model, etc.) but with ~1B parameters. It's okay to create a slightly bigger model so long as the architecture is still represented.
IMPORTANT: Start by only modifying the number of layers in the model. If the model is significantly larger than 1B parameters, then consider reducing the hidden sizes, number of experts, and other configurations.
- Fine-tune: Fine tune the model on a toy dataset using
finetune.py. This validates that the model can actually learn. Note: vision-language models may require script modifications to load correctly. Make sure the target perplexity is ~3.0, a model with a high perplexity with respect to the toy dataset is not considered valid.
If the model is a vision-language model, do not try to fine tune on a vision dataset, only fine tune on the provided text dataset. Continue to load with ...ForConditionalGeneration.
- Validate checkpoint structure: Make sure that the saved model checkpoint structure is analogous to the checkpoint structure of the original large model checkpoint. The
transformerslibrary can sometimes contain bugs where models are saved in invalid checkpoint structures. First, inspect the original checkpoint structure using the HuggingFace Hub API or by checkinghttps://huggingface.co/{model_id}/resolve/main/model.safetensors.index.json. If this file does not exist, download the original checkpoint directly. Useinspect_tensors.pyto inspect the checkpoint format of the saved model and/or the downloaded model. If the two structures do not match, create a converter script to convert our tiny saved checkpoint structure into a checkpoint structure which matches the original. Do not try to match mtp layers. - Validate model: Confirm that the model loads and inferences correctly using
validate_tiny_model.py. - Generate README: Create a comprehensive README.md for the model using the template at
templates/README_TEMPLATE.md. Fill in all placeholders with actual values:{model_name}- Name of the tiny model directory{base_model_id}- Original HuggingFace model ID{architecture}- Model architecture type (from config.model_type){total_params}- Total parameter count in billions{activated_params}- Activated parameter count for MoE models{config_table}- Markdown table comparing original vs tiny config{checkpoint_description}- Description of checkpoint structure (single file vs sharded){validation_output}- Output from running validate_tiny_model.py{additional_notes}- Any additional notes about the model
Upload Upload the model to HuggingFace Hub using:
hf upload inference-optimization/{tiny-model-id} {path-to-model} --repo-type=model hf collections add-item inference-optimization/tiny-models {tiny-model-id} modelIf you do not have permissions within the
inference-optimizationorg, skip this step.IMPORTANT: Make sure the tiny model id reflects the number of parameters in the tiny model, not the base model. For example, if the base model is
Qwen/Qwen3-30B-A3B, then the tiny model should be something likeQwen3-1B-A0.6BIMPORTANT: Make sure to upload the fine tuned model, not the base model.
Copy to working directory: Copy the final model to the project's working directory for easy access.
IMPORTANT: Make sure to copy the fine tuned model, not the base model.
Make sure that, if you create any extra files, that they are created in a temporary directory, not in the skills folder.
Trending
More talk lately.about the whole repository
Who's talking about vllm-project/llm-compressor
- vllm-project/vllm“[Bug]: stack trace for "Watchdog caught collective operation timeout"”GitHub · Jan 31, 2025 · 7 reactions
- sgl-project/sglang“[Feature] Support Mixed-Precision models”GitHub · Jan 1, 2026 · 6 reactions
- sgl-project/sglang“Support llm-compressor: wInt4aFp8 for moe, w8a8_fp8_block_quant for moe and normal linear”GitHub · Oct 16, 2025 · 6 reactions
- @pythonhub.dev“llm-compressor Transformers-compatible library for applying various compression algorithms to LLMs for …”Bluesky · Apr 17, 2025 · 5 likes
- vllm-project/vllm“[CompressedTensors] DeepSeek4 CT Quantization Support”GitHub · Apr 29, 2026 · 4 reactions
The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 52
Talked about on GitHub, Hacker News and Bluesky (52 times).
On GitHub · 50
- Jan 31, 2025[Bug]: stack trace for "Watchdog caught collective operation timeout" — vllm-project/vllm7 reactions · 4 comments
- Jan 1, 2026[Feature] Support Mixed-Precision models — sgl-project/sglang6 reactions · 2 comments
- Oct 16, 2025Support llm-compressor: wInt4aFp8 for moe, w8a8_fp8_block_quant for moe and normal linear — sgl-project/sglang6 reactions · 6 comments
- Apr 29, 2026[CompressedTensors] DeepSeek4 CT Quantization Support — vllm-project/vllm4 reactions · 6 comments
- Jul 30, 2026[MoE] Add MoNe experts pruning support — vllm-project/vllm3 reactions · 39 comments
45 more on GitHub
- Jun 23, 2026[Quantization] Enable humming wNaM asymmetric quant (zero_point) with compressed-tensors — vllm-project/vllm3 reactions · 13 comments
- Jun 22, 2026Humming support for 2/3/5/6/7-bit pack-quantized weight-only inference — vllm-project/vllm3 reactions · 3 comments
- Apr 30, 2026[compressed-tensors] Asymmetric support for MoE WNA16 marlin — vllm-project/vllm3 reactions · 12 comments
- Jul 22, 2026[compressed-tensors] update `find_matched_target` order to prioritize fused name matches over class match — vllm-project/vllm2 reactions
- Jul 15, 2026[Bugfix] Fix activation quantization dispatch for WNA4Int/WNA8Int — vllm-project/vllm2 reactions · 1 comment
- Jun 22, 2026[Quant] Enable humming w[2-7]a[4,8] inference with compressed-tensors — vllm-project/vllm2 reactions · 4 comments
- May 23, 2026[Bugfix] hadacore_transform: respect inplace parameter to fix garbage outputs with QuIP transforms — vllm-project/vllm2 reactions · 9 comments
- Mar 5, 2026[GUIDE] a good guide is needed. — ModelCloud/GPTQModel2 reactions · 1 comment
- Nov 27, 2025[Bug]: Latest vllm docker can not serve nvfp4 models. `curand_kernel.h: No such file or directory` — vllm-project/vllm2 reactions · 8 comments
- Jun 23, 2025[Modeling] Fix encoder CPU offloading for whisper — huggingface/transformers2 reactions · 7 comments
- Jun 17, 2025[Bug]: Fails to load llmcompressor GPTQ Qwen2.5-VL model — vllm-project/vllm2 reactions · 1 comment
- Oct 8, 2026Studio: provide Git lazily for FP8/FP4 export instead of at install time — unslothai/unsloth1 reaction · 12 comments
- Sep 8, 2026[Download] Write cache ref file atomically in snapshot_download — huggingface/huggingface_hub1 reaction · 2 comments
- Jul 6, 2026[Performance] Speed up quantization with dedicated kernels — vllm-project/compressed-tensors1 reaction · 9 comments
- Jun 10, 2026enabling humming for 3567 bit CT formats — vllm-project/vllm1 reaction · 10 comments
- May 29, 2026[compressed-tensors] Asymmetric support for MoE WNA16 marlin — vllm-project/vllm1 reaction · 1 comment
- Apr 29, 2026Improve DiskCache error message with file path — vllm-project/compressed-tensors1 reaction · 1 comment
- Apr 27, 2026[convert] compressed-tensors dequantizer — vllm-project/compressed-tensors1 reaction · 7 comments
- Apr 27, 2026[Kernel] Add MixFP4 W4A16 Marlin inference support — vllm-project/vllm1 reaction · 4 comments
- Apr 1, 2026[Performance]: llmcompressor W8A8 Inference: decoding stage speed is lower than FP16 — vllm-project/vllm1 reaction · 9 comments
- Mar 21, 2026Implement per-token w4afp8 moe gemm, improve performance with w4afp8 moe gemm — sgl-project/sglang1 reaction · 2 comments
- Mar 4, 2026[Agent] Add `style` and `test` claude skills — vllm-project/compressed-tensors1 reaction
- Mar 2, 2026[Compressors] Refactor compressors, remove sparsity & CompressedLinear — vllm-project/compressed-tensors1 reaction · 12 comments
- Feb 3, 2026Enhance w4afp8 performance: implement per-token w4afp8 CUTLASS MoE GEMM for FP8 dispatch, improve performance with w4afp8 moe gemm — sgl-project/sglang1 reaction · 6 comments
- Jan 13, 2026[Observers] Change default weight observer to "memoryless_minmax" — vllm-project/compressed-tensors1 reaction
- Jan 8, 2026Support Qwen3-32B-AWQ? — p-e-w/heretic1 reaction · 2 comments
- Dec 25, 2025微调awq的模型报错 — hiyouga/LlamaFactory1 reaction
- Nov 12, 2025support wInt4aFp8 for moe — vllm-project/compressed-tensors1 reaction · 10 comments
- Nov 6, 2025early and better error for divisibility issues — vllm-project/compressed-tensors1 reaction · 4 comments
- Oct 22, 2025[Doc] Refactor import statements for `oneshot` in quantization docs to support newer llm-compressor version — vllm-project/vllm1 reaction · 4 comments
- Jul 22, 2025Refactor dense FP8 tensor/channel/block utils and add CT FP8 block — vllm-project/vllm1 reaction · 4 comments
- Oct 29, 2026Updated single-repositories/github/vllm-project/llm-compressor.yml — oss-compass/compass-projects-information0 reactions · 1 comment
- Oct 27, 2026Move quantization parameters to input device — vllm-project/compressed-tensors0 reactions · 1 comment
- Oct 27, 2026replace dist.broadcast_object_list — vllm-project/compressed-tensors0 reactions · 4 comments
- Oct 21, 2026Updated single-repositories/github/vllm-project/llm-compressor.yml — oss-compass/compass-projects-information0 reactions · 1 comment
- Oct 14, 2026Updated single-repositories/github/vllm-project/llm-compressor.yml — oss-compass/compass-projects-information0 reactions · 1 comment
- Oct 10, 2026Quantize and self-host Clef-Omni NVFP4 W4A4 on RTX PRO 6000 Blackwell, verify local SystemOne API — dbirks/home-k8s0 reactions
- Oct 9, 2026build out MTP support for llm-compressor #3225 — vllm-project/compressed-tensors0 reactions · 1 comment
- Oct 5, 2026Updated single-repositories/github/vllm-project/llm-compressor.yml — oss-compass/compass-projects-information0 reactions
- Sep 27, 2026Updated single-repositories/github/vllm-project/llm-compressor.yml — oss-compass/compass-projects-information0 reactions
- Sep 20, 2026[Bug] ImportError: cannot import name 'TensorProfiler' from 'compressed_tensors.entrypoints.convert.memory' — intel/auto-round0 reactions · 2 comments
- Sep 16, 2026推論最適化ツール・OSS — warabinbin/papers0 reactions
- Sep 4, 2026Plan: AutoRound NVFP4 W4A4 quant of Ling-3.0-flash on SM120 (experts-only) — dbirks/home-k8s0 reactions
- Aug 29, 2026[Bug]: Quantized embeddings fail on many model types — vllm-project/vllm0 reactions · 2 comments
- Jul 20, 2026add imatrix calibration data resolution to quant config — vllm-project/compressed-tensors0 reactions · 1 comment
On Hacker News · 1
- Aug 20, 2024LLM compressor: compress models for efficient deployment1 point · 1 comment
On Bluesky · 1
- Apr 17, 2025llm-compressor Transformers-compatible library for applying various compression algorithms to LLMs for optimized deployment with vLLM.… — @pythonhub.dev5 likes and reposts
In this repositoryOne other file it gives its agents.
- contribute-researchSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

