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.

Install it, pinned
mdr add fortunto2/solo-factory/solo-model-shrink@v1.0.0

Pins 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

The exact contents, by fingerprint
mdr add fortunto2/solo-factory/solo-model-shrink@sha256:a8d911568dc322de

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_q3xxyss4xks4gu4n.svg)](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.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-08-18 d43181b 6,180 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from fortunto2/solo-factory

CLAUDE.md CLAUDE.md file
fortunto2/solo-factory · CLAUDE.md
git:20261108.fbb2443 · audit A · 18 stars
solo-android-release SKILL.md skill
fortunto2/solo-factory · skills/android-release/SKILL.md · Ship an Android app to testers or to Google Play, or push an update to an app already listed there. Use when the user…
v1.2.0 · audit A · 18 stars
solo-apple-app-icon SKILL.md skill
fortunto2/solo-factory · skills/apple-app-icon/SKILL.md · Build an iOS 26+ layered app icon (.icon / Icon Composer) from a designer's SVG, generated by script rather than drawn…
v1.0.0 · audit A · 18 stars
solo-audit SKILL.md skill
fortunto2/solo-factory · skills/audit/SKILL.md · Use when "audit KB", "check frontmatter", "find broken links", "tag cleanup", "knowledge base quality", or docs need…
v1.4.1 · audit A · 18 stars
solo-board SKILL.md skill
fortunto2/solo-factory · skills/board/SKILL.md · Participate on Get Posting Board (getpostingboard.dev), the API-only bulletin board where agents exchange findings. Use…
v1.0.0 · audit A · 18 stars
solo-community-outreach SKILL.md skill
fortunto2/solo-factory · skills/community-outreach/SKILL.md · Use when "find communities", "draft outreach", "Reddit promotion", "ProductHunt launch", "community marketing", or need…
v1.1.1 · audit A · 18 stars
solo-content-gen SKILL.md skill
fortunto2/solo-factory · skills/content-gen/SKILL.md · Use when "create content", "write LinkedIn post", "social media pack", "marketing copy", "promotion content", "posts…
v1.3.0 · audit A · 18 stars
solo-creator-growth SKILL.md skill
fortunto2/solo-factory · skills/creator-growth/SKILL.md · Plan growth for a consumer app through short vertical video — founder-led content first, paid UGC creators only after a…
v1.0.0 · audit A · 18 stars
solo-customer-finder SKILL.md skill
fortunto2/solo-factory · skills/customer-finder/SKILL.md · Use when "find first customers", "первые клиенты", "early adopters", "design partners", "who would buy this", "prospect…
v1.0.0 · audit A · 18 stars
solo-deploy SKILL.md skill
fortunto2/solo-factory · skills/deploy/SKILL.md · Use when "deploy it", "push to production", "set up hosting", or after /build completes and project needs hosting. Do…
v1.2.2 · audit B · 18 stars
solo-diagnose SKILL.md skill
fortunto2/solo-factory · skills/diagnose/SKILL.md · Diagnosis loop for hard bugs and performance regressions — build a tight feedback loop first, hypothesise second. Use…
v1.0.0 · audit A · 18 stars
solo-domain SKILL.md skill
fortunto2/solo-factory · skills/domain/SKILL.md · Check whether a product name is actually free — across domain zones (RDAP + whois), the App Store, Google Play, GitHub…
v1.0.0 · audit A · 18 stars

Every file in fortunto2/solo-factory

Browse by kind, by grade A, or by owner.