NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #396 by repository stars
Latest stable
v0.23.1
Last release 2 days ago
20 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
577 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
2c4ab6ce1d9db6bbe257f07bc7a4809b98a42d0c Support pulling to specific folders
Check if token is empty by @8W9aG in https://github.com/replicate/cog/pull/2392
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/replicate/cog/compare/v0.15.3...v0.15.4
70f567fb727dbe15a5051d1d15cb65380c026c63 Add integration test for python 3.13
os.PathLike output from models (#2388)59dc987b1c85b1d9d667b0a51e5b6e42130753d4 Add checking of pipelines runtime requirements before pushing
Nothing published for this version
Nothing published for this version
Nothing published for this version
e5c83e711270674f1a439147d3982ed00fb768e9 Add deprecated field to Input
63b6246296c0a0b0dbb92d8b7f9f642271f0621e Add integration test for setup run in trainer
Nothing published for this version
24f693ef9394ee0edd01941c49a2952959e77430 Add call_graph tool
Nothing published for this version
4c8b448264e3d269b286eb810ec77e831544c8ab Add OCI registry client
command.Command (#2307)Nothing published for this version
7cdd08daa38e33800091fa217163c8e163e77afa Add environment variable for defining coglet version
cog_binary fixture (#2304)7b0d5f1982d531a14cc576faacca786ccc291ea7 Add new version log
docker.Build to command.Command (#2293)e01c1dcfcb1f529843d35ab05496a461afa00da2 Add .python-version to .dockerignore
docker.Xxx helpers with functions on command.Command (#2288)738ad3d909f3110d6662cf16ca08ebfd1bdc0569 Disable provenance attestations
b07ab054e6bfdc4c8153e1e16cb4ffd1c4842d71 Add complex types to cog predict
beba0424aba813033c1d03eeb3bae9f3d17a5be7 Add empty namespace package for cog.ext
cog.ext (#2246)a4bac6e88c2f29158c5145358cb9550d241e34b4 Add a config option to enable fast builds
pathlib.Path and descendants as uploadables (#2235)uv + misc fixes while setting up a new dev environment (#2233)994b2f3fc83df8be49037e5f347a912648b443f5 Allow cancelation on async models
Nothing published for this version
edd038500be8fdcaaee18691f3a65e620e7320f9 Warn the user when they use deprecated fields
9a05507f89d40e069ca71b63e3b08e918a6696f0 Make progress bar more pretty
This is now unsupported and will receive no further updates. There are some breaking changes in the API that will be introduced with the release of th…
This release introduces support for concurrent processing of predictions through the use of an async predict function.
To enable the feature add the new concurrency.max entry to your cog.yaml file:
concurrency:
max: 32
And update your predictor to use the async def predict syntax:
class Predictor(BasePredictor):
async def setup(self) -> None:
print("async setup is also supported...")
async def predict(self) -> str:
print("async predict");
return "hello world";
Cog will now process up to 32 predictions simultaneously, once at capacity subsequent predictions will return a 409 HTTP response.
If your model is currently using Iterator or ConcatenateIterator it will need to be updated to use AsyncIterator or AsyncConcatenateIterator respectively.
from cog import AsyncConcatenateIterator, BasePredictor
class Predict(BasePredictor):
async def predict(self) -> AsyncConcatenateIterator[str]:
for fruit in ["apple", "banana", "orange"]:
yield fruit
An earlier fork of cog with concurrency support was published under the 0.10.0a release channel. This is now unsupported and will receive no further updates. There are some breaking changes in the API that will be introduced with the release of the 0.14.0 beta. This alpha release is backwards compatible and you will see deprecation warnings when calling the deprecated functions.
emit_metric(name, value) - this has been replaced by current_scope().record_metric(name, value)[!NOTE] Note that the use of
current_scopeis still experimental and will output warnings to the console. To suppress these you can ignore theExperimentalFeatureWarning:import warnings from cog import ExperimentalFeatureWarning warnings.filterwarnings("ignore", category=ExperimentalFeatureWarning)
File or Path types these will currently block the event loop. This may be an issue for large file outputs and will be fixed in a future release.Path in cog predictsha256: prefix in generated runtime config files (#2153)Path in cog predict"cog init actions workflow template (#2192)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This is now unsupported and will receive no further updates. There are some breaking changes in the API that will be introduced with the release of th…
This release introduces support for concurrent processing of predictions through the use of an async predict function.
To enable the feature add the new concurrency.max entry to your cog.yaml file:
concurrency:
max: 32
And update your predictor to use the async def predict syntax:
class Predictor(BasePredictor):
async def setup(self) -> None:
print("async setup is also supported...")
async def predict(self) -> str:
print("async predict");
return "hello world";
Cog will now process up to 32 predictions simultaneously, once at capacity subsequent predictions will return a 409 HTTP response.
If your model is currently using Iterator or ConcatenateIterator it will need to be updated to use AsyncIterator or AsyncConcatenateIterator respectively.
from cog import AsyncConcatenateIterator, BasePredictor
class Predict(BasePredictor):
async def predict(self) -> AsyncConcatenateIterator[str]:
for fruit in ["apple", "banana", "orange"]:
yield fruit
An earlier fork of cog with concurrency support was published under the 0.10.0a release channel. This is now unsupported and will receive no further updates. There are some breaking changes in the API that will be introduced with the release of the 0.14.0 beta. This alpha release is backwards compatible and you will see deprecation warnings when calling the deprecated functions.
emit_metric(name, value) - this has been replaced by current_scope().record_metric(name, value)[!NOTE] Note that the use of
current_scopeis still experimental and will output warnings to the console. To suppress these you can ignore theExperimentalFeatureWarning:import warnings from cog import ExperimentalFeatureWarning warnings.filterwarnings("ignore", category=ExperimentalFeatureWarning)
File or Path types these will currently block the event loop. This may be an issue for large file outputs and will be fixed in a future release.Full Changelog: https://github.com/replicate/cog/compare/v0.13.6...v0.14.0-alpha1
Nothing published for this version
Nothing published for this version
6eb2d2ea1a9ba3d96ba1dbe12ff9c3b2b08b388e Add a cog integration test for apt-packages
nofile limit for tests8e9e53e54af491d28510960a70e64070669d4a31 Remove duplicate 3.10 python version
Nothing published for this version
Nothing published for this version
This release includes an important bug fix around usage of requests to include explicit connection timeouts. Other changes include tidying related to
This release includes an important bug fix around usage of requests to include explicit connection timeouts. Other changes include tidying related to the removal of python 3.7 support, adding the output of pip freeze as a docker image label, and some groundwork towards supporting concurrent predictions.
d714a7011724acb16ec71ce5c134b634b1a51ce3 Add ability to wait for an environment
Nothing published for this version
e46c4f3a97fa68ec5fffe6c8377c58a72fa9c518 Add serve command
Nothing published for this version
4de7f61b2051dbf84132dc123bb83131705d4b99 Add Config class
3e0dc7900c9f1db4f8e4fa16cd2e9493ce61f1e8 Add version and more URLs to index document
5e2218fe708a5f22bae63cf9e074225d03db23cd Add Setup Logging
typing-extensions to fix conflict with spacy and pydantic (#2033)8333a832a62902294aa92ae3b9cc9ca9c64e9278 Revert "Support async predictors (#2010)"
This reverts a change introduced in v0.11.4 to begin supporting async predict functions. The changes to how output redirection is handled broke a subset of models that started subprocesses during setup which then used stdout and/or stderr at predict time.
a8e138f585bf2e47f55b700af81d764afa9a25ee Bump version constraint for typing-constraints
typing-constraints (#2019)b62fd84cb71918dc401868b44a5608d7ee29c8e6 Bump goreleaser now we're on 1.23
Nothing published for this version
Explain NAME_UNKNOWN error on failed cog push by @mattt in https://github.com/replicate/cog/pull/1844
NAME_UNKNOWN error on failed cog push by @mattt in https://github.com/replicate/cog/pull/1844This release fixes a bug in the last few releases of cog (that we mistakenly thought we'd fixed in 0.9.25) which resulted in a broken version of cog built into the images output by cog build.
Full Changelog: https://github.com/replicate/cog/compare/v0.11.1...v0.11.3
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
269244795e85d2ac18b7c5f3c2eed48d05eec945 Choices for Str not just list
One column per quarter.