replicate/cog v0.20.0
replicate/cog
Captured source
source ↗published May 19, 2026seen 5dcaptured 9hhttp 200method plain
v0.20.0
Repository: replicate/cog
Tag: v0.20.0
Published: 2026-05-19T23:00:03Z
Prerelease: no
Release notes:
New features
- `cog run` command. The
cog predictcommand has been renamed tocog runwith full backward compatibility.cog predictstill works as an alias. (#3015) - Model refs for `cog push` and weights commands. You can now reference models by name (e.g.,
r8.im/user/model) instead of full image URLs when pushing or managing weights. (#3018) - Multi-source weights and HTTPS weight sources. Weights can now be fetched from multiple sources, including direct HTTPS URLs. (#3008)
- Opaque annotations in schema generation. Predictor inputs can use the new
Opaqueannotation to exclude fields from the generated schema. (#3001)
Improvements
- Runtime schema generation fully removed. The legacy runtime Python schema generation path has been completely removed. Cog exclusively uses static schema generation, making builds faster and more reliable. (#3003)
- Centralized build state and cleaner Docker context. Cog now stores build state in a dedicated
.cog/directory that is automatically filtered from the Docker build context. (#3000) - Support durable base-image build context. Base image builds now support a durable build context for better caching and reliability. (#3004)
- Support uv-managed Python installs in generated Dockerfiles. Generated Dockerfiles now properly handle Python installations managed by
uv. (#2999)
Bug fixes
- Pushing a model with a version tag now emits a clean URL. The Replicate model URL printed after
cog pushno longer includes the image tag (e.g.,:latest), preventing 404 errors when users click the link. (#3020) - Prefer latest torch patch when resolving unpatched versions. When resolving PyTorch compatibility, Cog now correctly selects the latest available patch version for unpatched version specs. (#3009)
- Deterministic compatibility matrix output. Compatibility matrices are now sorted for consistent, deterministic output. (#3006)
Notability
notability 5.0/10New version of ML container tool