solo-model-shrink SKILL.md skillA
solo-model-shrink from fortunto2/solo-factory is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add fortunto2/solo-factory/solo-model-shrink@v1.0.0Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- fortunto2/solo-factory
- Path
skills/model-shrink/SKILL.md- Versions recorded
- 1
- Latest version
- v1.0.0, committed Aug 18, 2026
- Size
- 6,180 bytes
- Repository stars
- 18
- License
- MIT
Take a trained neural model to devices — ONNX export, int8 quantization, Core ML conversion, on-device benchmarking, download-on-demand delivery. Use when user says "сожми модель", "quantize the model", "convert to Core ML / ONNX", "model is too big for the app", "run the model on iPhone/Android/web", or an ML feature needs to ship inside a mobile/web app. Do NOT use for training or fine-tuning models, or for LLM API integration (that's app plumbing, not model porting).
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# model-shrink — ship a trained model to phones and browsers A PyTorch checkpoint becomes: an eval, an ONNX int8 file (web/Android), a Core ML package (Apple), an on-device number, and a download-on-demand delivery. Every step below was paid for once; the order is the method. ## Workflow 1. **Eval before anything.** Ground truth + one scalar metric (F-measure, accuracy — whatever the task has) + a script that runs any model variant against it. Every later decision — quantize? fp16? distill? — is this script's output, never a guess. Keep 5–10 held-out samples as a smoke set. 2. **Export ONNX at a fixed shape** (`torch.onnx.export`, one export per batch size — see Gotchas). Verify against the original: max abs diff and the eval score. `onnxruntime` CPU is the portable baseline: web (`onnxruntime-web` WASM), Android (ORT mobile), desktop. 3. **Quantize weights to int8** (`onnxruntime.quantization` / `ct.optimize.coreml.linear_quantize_weights`). Weights-only int8 is usually free — measured twice on a 20M-param transformer: F 0.872→0.871 (ONNX) and 0.864→0.863 (Core ML), 4x smaller. Re-run the eval anyway; "usually" is not "always". …
Read the whole file at its exact version.
How to install
mdr add fortunto2/solo-factory/solo-model-shrink@sha256:a8d911568dc322deThe line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_q3xxyss4xks4gu4n)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 18, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6180 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
fortunto2/solo-factory · 18 stars · license MIT · pushed 2026-11-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_q3xxyss4xks4gu4n GET https://markdownregistry.com/api/v1/resolve?ref=fortunto2/solo-factory/solo-model-shrink GET https://markdownregistry.com/api/v1/blob/a8d911568dc322ded320fa33941800ef18f3162c22bc50e9609021fb1f1454e9
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.