omh-model-compression

omh-model-compression is a skill for Claude Code from rlaope/oh-my-hermes. It costs 18 tokens per session (2,106 once invoked), scanned A, original, MIT.

A workflow for making an AI model smaller so it fits a chosen hardware and memory budget while checking that it still performs the required task.

In plain words
What is it for?
Use it to choose a compression method, produce smaller model weights, and compare the compressed model with the original on held-out task examples.
Why use it?
Smaller model files can fit on more limited hardware, but compression can reduce task quality; this workflow checks both constraints.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it to choose a compression method, produce smaller model weights, and compare the compressed model with the original on held-out task examples.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rlaope/oh-my-hermes/omh-model-compression
About the project

oh-my-hermes is an operating layer for Hermes Agent that organizes requests into workflows for planning, research, creation, coding handoffs, operations, and project memory. Hermes users run these workflows through the desktop app, CLI, or messenger app, while the catalogue add-ons extend its native capabilities.

rlaope/oh-my-hermes · 6,237 stars · on GitHub · omher.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rlaope/oh-my-hermes --skill omh-model-compression
Clone the repo
git clone --depth 1 https://github.com/rlaope/oh-my-hermes

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for omh-model-compression

README.md
[![agentmods](https://agentmods.dev/badge/skills/rlaope/oh-my-hermes/omh-model-compression/github.svg)](https://agentmods.dev/skills/rlaope/oh-my-hermes/omh-model-compression)
Your own site
<a href="https://agentmods.dev/skills/rlaope/oh-my-hermes/omh-model-compression"><img src="https://agentmods.dev/badge/skills/rlaope/oh-my-hermes/omh-model-compression/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for omh-model-compression

Your own site · 80×15
<a href="https://agentmods.dev/skills/rlaope/oh-my-hermes/omh-model-compression"><img src="https://agentmods.dev/badge/skills/rlaope/oh-my-hermes/omh-model-compression.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.02106
Opus 5.5 $0.00007 $0.00842
Sonnet 5.5 $0.00004 $0.00421
Haiku 4.5 $0.00002 $0.00211

Measured 11d ago against content hash d1b12a140ab3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

omh-model-compression scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agent-skills/omh-model-compression/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model Compression

This is an OMH model-compression workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

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.

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.

Read the full file on GitHub · 139 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · -27 tokens per session d1b12a140ab3
  2. 18d ago Changed · -73 tokens per session 80e5f6b884c0
  3. 21d ago First seen · 139 lines · 118 tokens per session scan A 0be6895dba70

Subscribe to this mod's changes

omh-model-compression is a skill published in the GitHub repository rlaope/oh-my-hermes (6,237 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 2,106 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-09.

Related

omh-model-compression compared with skills from other repositories

omh-model-compression next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
omh-model-compressionrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
claude-apiseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA52Claude Code, Codex
prismseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA37Claude Code, Codex
openai-docsseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA30Codex
prompt-optimizerseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA30Claude Code, Codex
lijigang-skillmomozi1996/awesome-ai-persona-skillsSkill1.2k3mo agoMITA169Claude Code, Codex
baoyu-skillmomozi1996/awesome-ai-persona-skillsSkill1.2k3mo agoMITA153Claude Code, Codex