Cog

Latest version: v0.13.7

Safety actively analyzes 706259 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 32

0.10.0alpha2

Changelog
* a953911 Revert "Revert PR "async runner" (1352)"
* 8859609 Revert "Revert PR "create event loop before predictor setup" (1366)"
* 40149de lints
* d6a6f1a run CI for this branch the same way as for main

0.10.0alpha1

**Full Changelog**: https://github.com/replicate/cog/compare/v0.9.0+async.1...v0.10.0-alpha1

0.10.0a

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_scope` is still experimental and will output warnings to the console. To suppress these you can ignore the `ExperimentalFeatureWarning`:
> python
> import warnings
> from cog import ExperimentalFeatureWarning
> warnings.filterwarnings("ignore", category=ExperimentalFeatureWarning)
>

Known limitations

* An async setup method cannot be used without an async predict method. Supported combinations are: sync setup/sync predict, async setup/async predict and sync setup/async predict.
* File uploads will block the event loop. If your model outputs `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.

Other Changes

* Change torch vision to 0.20.0 for torch 2.5.0 cpu by 8W9aG in https://github.com/replicate/cog/pull/2074
* Ignore files within a .git directory by 8W9aG in https://github.com/replicate/cog/pull/2087
* Add fast build flag to cog by 8W9aG in https://github.com/replicate/cog/pull/2086
* Make dockerfile generators abstract by 8W9aG in https://github.com/replicate/cog/pull/2088
* Do not run a separate python install stage by 8W9aG in https://github.com/replicate/cog/pull/2094

**Full Changelog**: https://github.com/replicate/cog/compare/v0.13.6...v0.14.0-alpha1

0.9.26

Changelog
* 20c13d70edeb4137e88df3c8c9bcb404dc9b61b8 Fix deprecated snapshot.name_template
* 135599f2090a760659113094c8eb254de82d8a2c Prefix server errors with `Cog:` (1980)

0.9.25

This release includes fixes for running `cog build` on GitHub Actions, and improvements to the experience if you accidentally paste a Replicate API token (rather than a CLI auth token) into `cog login`.

~This release also ensures that the correct version of `cog` is installed into the built image when using Cog base images (the default).~ (This bug wasn't actually fixed in this release, and is finally fixed in v0.11.2.)

Changelog
* 15b50008468d002381958221cb06c0c3bc89f84f Add dotenv_if_exists to .envrc
* be927af411e0917dead6e2cb8ec6ac3397f3c8c0 Don't accept Replicate API tokens for CLI login
* cfa064a5983cd488f0ddf59c3a7895c3ac54538c Install cog when using base images (1973)
* fcb3c3c924d54fd7cabdaa482fbe72894afae614 Look up git metadata via GitHub env vars when available (1974)
* 574bdc7bdff1798a870ad29022d9352131db724a direnv: use `layout python` to automatically use venv (1970)

0.9.24

This release includes a fix for a bug present in [v0.9.21](https://github.com/replicate/cog/releases/tag/v0.9.21) and [v0.9.23](https://github.com/replicate/cog/releases/tag/v0.9.23).

The bug affected models that ran subprocesses, and could cause those subprocesses to fail with a broken pipe. The fix is in 1969.

Changelog
* f0011cc8c089359abe4c0f673f18a05ff965e795 Add Precompile Build Flag (1940)
* 3adf48b15acfefbd5fc7d92af77fd06d811fb177 Add mount caches to pip installs (1944)
* dbfa22f62ee6262927965ec379e20490d36d57bb Add timeout flag to predict (1879)
* 45d7d2deb4f4845a14acc6cf0f2e32346c3454a4 Don't unwrap and re-wrap streams (1969)
* 00881a177441547e5f1b94b2c3bb183e80300d10 Fix generator test (1964)
* 6ca089f0f19184c273f3ac08eb6675bf634f2415 Fix memory leak
* 03b40779acdcd8764b4bacc6d709593272b3a45a Install apt packages before pip packages (1954)
* f76e4d570b9f10908cd57255e132cfdd3ebce6ef Revert "Handle predictors with deferred annotations (1772)" (1918)

Page 9 of 32

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.