Omh model compression

From rlaope/oh-my-hermes · View interactive version

Omh model compression is an AI agent skill from the GitHub repository rlaope/oh-my-hermes. [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

How to use this skill

Skill file

Model Compression

Required: the model: id or path, parameter count, architecture, and a license that permits a modified copy, the target: GPU and VRAM, CPU or Apple Silicon, or the edge device, and the memory budget the model must fit, the runtime that will load the result: vLLM, llama.cpp, TensorRT-LLM, or Transformers, the person's own held-out task examples, the metric, and the quality loss they accept, calibration text from the same distribution as the task, kept apart from the held-out examples, for distillation: the teacher, the student candidates, and terms that permit training on the teacher's outputs. Output: compression_target/v1, compression_method_choice/v1, calibration_data_plan/v1, compression_quality_gate/v1.

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

Contract: references/full-contract.md (examples, sibling boundaries, full artifact details).

Workflow Lane

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:

Handoff policy:

Keep the target, the method choice, the calibration plan and the quality gate in Hermes. Quantization, pruning, distillation and every eval run in the operator's environment; sizes, speeds and scores are recorded only from observed output, and OMH never loads a model, compresses weights, or runs an eval.

Safety rules:

Completion Checklist

Recovery Notes

Runtime Evidence

Preferred harness for this skill: research.

omh runtime record --skill model-compression --harness research --status started

Record observed delegation results; otherwise return not_available or not_observed.

Prepared OMH routing is not execution, review, CI, merge-readiness, or merge evidence.

Preserve workflow intent and stop conditions; verify before claiming completion.

Reply in the user's own words and the host's own voice: its SOUL.md persona owns reply language, tone, speech level, and sentence endings, progress updates included (where it sets no language, use the one the user wrote in), and OMH shapes structure and content only. When the requested output is delivered, put any open points inside the result and end with no question or offer; only when the person asked to choose or decide and that choice is still theirs, end with one specific question about it, not a list, a generic offer, or a footer; the shared rail's Reply Language And Host Voice and Turn Ending sections hold the full rule.

Use Hermes-native subagent/delegation features when available: native subagents -> Hermes delegation when available, otherwise sequential lanes.

Shared product, compatibility, topology, memory, harness, and execution rules: skill_view(name='omh-routing', file_path='references/skill-common-rail.md'). Load it when applicable; otherwise name an unavailable capability.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.