feat: add build-models and publish-models skills#7
Conversation
Two new skills covering the model-creation lifecycle: - build-models: packaging custom models with Cog (cog.yaml, predict.py, weights loading with pget, cold-boot tricks, async predictors). - publish-models: cog push, cog-safe-push, GitHub Actions patterns, multi-model matrix pushes, and post-publish monitoring. Descriptions are written to be easy for agents to trigger on, with specific file names, commands, and trigger phrases. Patterns are distilled from production Replicate model repos including cog-flux, cog-flux-kontext, cog-vllm, cog-comfyui, flux-fine-tuner, vibevoice, cog-template, and model-ci-template.
|
Is this compatible with the new Cog weights setup? |
The skill covers what's stable in Cog today ( Two questions before I add a section on it:
|
|
Managed weights aren't yet ready, but close! Here's a working example for reference. It's released in 0.19.3 so we can start testing -- under the hidden I'll add docs and examples before we release properly.
Not sure yet. I think managed weights are the right tool for files that don't live in the repo, regardless of size. |
This PR adds two new skills covering the model-creation lifecycle on Replicate:
build-models— packaging custom models with Cog:cog.yaml,predict.py, weights loading with pget, cold-boot tricks, async predictors with continuous batching, multi-LoRA composition, and a weights cache helper.publish-models—cog push,cog-safe-pushwith the full config schema, GitHub Actions patterns (DIY and themodel-ci-templatereusable workflow), multi-model matrix pushes, two-pass official-model pushes, deployments, and a post-publish monitoring pattern.Descriptions are written for high triggerability: they list specific commands (
cog push,cog-safe-push), file names (cog.yaml,predict.py), URLs (r8.im,cog.run), and natural trigger phrases.Patterns are distilled from a survey of production Replicate model repos: cog-flux, cog-flux-kontext, cog-vllm, cog-comfyui, flux-fine-tuner, vibevoice, cog-yue, cog-official-nightmareai-real-esrgan, plus the cog-template, cog-official-template, and model-ci-template scaffolding repos. Each skill ends with a "Production references" section linking to the real examples on GitHub.
Both skills validate with
script/lint, and the existing five skills still validate after the marketplace and AGENTS.md updates.