Skip to content
Agent Orchestration
Skill

/omh-model-compression

[omh] Making a model smaller or cheaper by changing its weights: quantization (GPTQ, AWQ, GGUF, bitsandbytes, FP8, quantization-aware training), pruning, or distillation into a smaller student, sized to the target hardware, calibrated on the task's own data, and kept only when

From plugin
oh-my-hermes
5.7k158 skills

Claude Code

$ npx -y skills add rlaope/oh-my-hermes --skill omh-model-compression --agent claude-code

SKILL.md

omh-model-compression.SKILL.md
name: "omh-model-compression"
description: "[omh] Making a model smaller or cheaper via its weights: quantization (GPTQ, AWQ, GGUF, bitsandbytes, FP8, quantization-aware training), pruning, or distillation into a smaller student, sized to the target hardware, calibrated on the task's own data, and kept only when it holds quality on the person's own eval. Use when the user says: model-compression, model compression, compress this model, compress the model, compress a model, compress our model, compress my model, quantize this model."
license: MIT
author: "oh-my-hermes maintainers"
metadata:
  hermes:
    tags: [workflow, oh-my-hermes, planning]
    category: planning
    phase: model-compression
    role: planner
    quality_tier: baseline-comparison-gated
    related_skills: [omh-inference-serving, omh-model-finetuning, omh-rules-distill, omh-model-optimization]

Model Compression

This is a Hermes-native `model-compression` workflow skill.

Why This Exists

`model-compression` exists because making a model smaller had no owner: `omh-inference-serving` chooses an engine and the quantized format to serve, and `omh-model-finetuning` trains for new behavior, while producing the smaller weights and proving they still do the person's task fell between them, and perplexity was the only number anyone checked.

First Steps

  • Ask what hardware and memory budget the model must fit and which runtime will load it before naming a method.
  • Ask for the held-out task examples and the uncompressed model's score on them.

Do Not Use When

  • The ask is choosing a serving engine, which published checkpoint format to serve, or deploying and benchmarking an endpoint; use `omh-inference-serving`.
  • The ask is training a model for new behavior on your own data with SFT, DPO, RLVR or a LoRA adapter; use `omh-model-finetuning`.
  • The ask is turning lessons from OMH sessions into rules or guidance; use `omh-rules-distill`.
  • The ask is onboarding a new model generation into OMH's routing, calibration, or pricing; use `omh-model-optimization`.

Examples

Good example:

  • Prompt: Quantize our Llama 3.1 8B support classifier so it fits on one 16 GB GPU under vLLM, and tell me how much accuracy we lose.
  • Expected behavior: Size the target and measure the 16-bit baseline on the held-out tickets. Try FP8 or weight-only quantization first; run a 4-bit GPTQ or AWQ pass, with calibration tickets kept apart from the eval, only if the KV budget or the GPU class rules that out. Keep the result only if accuracy stays within the stated tolerance.
  • Why: The runtime and memory budget pick the format, and the person's own tickets decide whether the smaller model is kept.

Bad example:

  • Prompt: The Q4_K_M GGUF has perplexity 6.1 against 5.9 for the original, ship it.
  • Expected behavior: Refuse to keep it on perplexity alone: run the same task eval on the original and the Q4_K_M and compare before shipping.
  • Why: A small perplexity gap can hide a large loss on the task, long context, or output format.

Completion Checklist

  • The target names the hardware, the memory budget, the runtime and the format it needs.
  • The method is the cheapest that reaches the target, with the rejected methods named.
  • Calibration data came from the task's distribution and none of it is in the held-out eval.
  • The kept model cites the same eval observed on the baseline and on it, within the stated tolerance.
  • OMH ran nothing, and every size and score cites observed output or is marked unverified.

Recovery Notes

  • If no held-out task eval exists, building one is the first step; say so before any compression run.
  • If 4-bit loses too much, try a higher-precision format, a larger calibration set or an importance matrix before pruning or distillation.

Workflow Lane

  • Current lane: **Research and company ops** - research, signals, ops, and briefings.
  • If intent belongs to another lane, hand back to `omh-routing` or name the adjacent workflow.
  • Shared product, routing, compatibility, and evidence rules: `skill_view(name='omh-routing', file_path='references/skill-common-rail.md')`.

When to Use

Use when a model's weights must get smaller or cheaper to fit a memory budget or cheaper hardware: post-training or quantization-aware quantization, structured or unstructured pruning, or distillation into a smaller student, gated by a comparison with the uncompressed baseline on the person's own task eval; OMH compresses nothing and runs no eval.

Strong routing signals: `model-compression`, `model compression`, `compress this model`, `compress the model`, `compress a model`, `compress our model`, `compress my model`, `quantize this model`, `quantize the model`, `quantize a model`, `quantize our model`, `quantize my model`, `prune this model`, `prune the model`, `prune a model`, `prune our model`, `prune my model`, `distill this model`, `distill the model`, `distill a model`, `distill our model`, `distill my model`, `make this model smaller`, `make the model smaller`, `structured pruning`, `unstructured pruning`, `weight pruning`, `magnitude pruning`, `4-bit quantization`, `8-bit quantization`, `into a smaller model`, `knowledge distillation`, `post-training quantization`, `quantization-aware training`, `model quantization`, `quantized model`, `int8 quantization`, `fp8 quantization`, `gptq`, `awq`, `bitsandbytes`, `model pruning`, `sparsegpt`, `model distillation`, `smaller student model`, `모델 양자화`, `모델 증류`, `모델 프루닝`, `모델 가지치기`, `양자화 인식 학습`

Catalog Metadata

Category: `planning` Phase: `model-compression` Hermes role: `planner` Quality tier: `baseline-comparison-gated` Reasoning demand: `standard`

Quality bar:

  • Start from the target: the memory budget and the runtime decide the format, and the format decides the method.
  • Load `references/compression-method.md` for the sizing arithmetic, the method table, the commands with their source pages, and the quality gate instead of recalling flags.
  • Try weight-only
Read more
@rlaope
Ships withoh-my-hermes

⚚ The ultrawork agent with AI coworkers wired into you

5.7k158 skills
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.7k
Star history of rlaope/oh-my-hermes on GitHub, a chart by star-history.com

Other skills on oh-my-hermes.

model-onboarding

model-onboarding

Onboard a new model generation or sibling into oh-my-hermes: probe router recognition, research the official contract, write…

@rlaope@rlaopeInstall Skill
review-sweep

review-sweep

Review oh-my-hermes pull requests that have not been reviewed at their current head commit. Run manually to sweep the open…

@rlaope@rlaopeInstall Skill
triage-sweep

triage-sweep

Backfill labels across oh-my-hermes issues and pull requests. Run manually to sweep everything currently unlabeled, or pass a…

@rlaope@rlaopeInstall Skill
dag-ulw

dag-ulw

[omh] Large multi-part job to run on its own: plan it as a graph of small nodes, run the ready ones in parallel through Hermes'…

@rlaope@rlaopeInstall Skill
omh-achievements

omh-achievements

[omh] Hermes badges unlocked and achievement progress: achievements observation: summarize hermes-achievements badges, tiers,…

@rlaope@rlaopeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about omh-model-compression.

Which coding agents can use omh-model-compression?
omh-model-compression installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.