
build-models
Package and build custom AI models with Cog for deployment on Replicate
by replicateFree
Description
build-models is Replicate's agent skill for packaging custom AI models with Cog so they can be hosted on Replicate. It applies when you have model code, weights, or a Hugging Face or GitHub project you want to run on Replicate, and when you are writing or editing cog.yaml, predict.py or train.py. The skill helps the agent define model inputs and outputs, load weights and set up the build, and it points the agent at Cog's reference material: a single-file llms.txt reference, the cog.yaml and Python predictor docs, an examples repository and a starter template. Pushing a finished model to Replicate is covered by the separate publish-models skill, and running existing models by run-models. Install with npx skills add https://github.com/replicate/skills --skill build-models.…
Highlights
- Writes and edits cog.yaml, predict.py and train.py
- Defines model inputs and outputs
- Packages Hugging Face or GitHub projects for Replicate
- Links to Cog reference docs, examples and template
Ratings & Reviews
No ratings yet
Be the first to rate build-models.
People also visit
build-models FAQ
What does this skill make the agent do?
It helps the agent package a machine learning model with Cog, writing the cog.yaml and predictor code needed to build it for Replicate.
When should I use it?
When you have model code, weights or a Hugging Face or GitHub project to host on Replicate, or when you are editing cog.yaml, predict.py or train.py.
Does it publish the model?
No. Publishing a built model is handled by the separate publish-models skill, and running existing Replicate models by run-models.
How do I install it?
Run npx skills add https://github.com/replicate/skills --skill build-models.
What did the security audits find?
The skills.sh page lists: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best build-models alternatives?
Popular alternatives to build-models include publish-models, run-models and import-model. See all build-models alternatives









