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