Cog

Latest version: v0.14.0

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

Scan your dependencies

Page 9 of 32

0.10.0alpha3

Changelog
* 513e837 Revert "Revert PR "async runner" (1352)"
* db88489 Revert "Revert PR "create event loop before predictor setup" (1366)"
* 3444169 lints
* 73a6de9 minimal async worker (1410)
* 0df9b82 run CI for this branch the same way as for main

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)

Page 9 of 32

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.