PackageTrack
Sign in Get early access

github.com/replicate/cog

v0.22.0 #361 most downloaded on Go modules replicate/cog

What this package is like to depend on

Last release 2 days ago

21 Aug 2026

Ships on a steady schedule

a new release about every 9 days

Rarely documented

notes for 7 of 152 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

554 releases · first in 2021

163 releases in the last 12 months

see the full history below

Release timeline

554 releases · Mar 2021 to Aug 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 554
  1. v0.22.1-0.20260821221655-6110c912377d 21 Aug 2026 pre-release

    Nothing published for this version

  2. v0.22.0 13 Aug 2026
    Release notes

    Breaking changes

    • Local servers now bind to 127.0.0.1 instead of 0.0.0.0. cog serve, cog run -p, cog predict, and cog train no longer expose the prediction endpoint to your whole network by default. To get the old behavior back, use cog serve --host 0.0.0.0 or cog run -p 0.0.0.0:8888-p now accepts host:port. (#2812)

    New features

    • Browser playground. cog playground starts a local, schema-driven web UI for talking to a running model — a Postman-like tool that reads the model's OpenAPI schema and builds the input form for you, with a request inspector and webhook relay. Point it at anything speaking the Cog HTTP API with --target. (#3123)

    • cog serve --playground. Serve the model and the playground in one command. The playground gets its own port (--playground-port, default 9000, 0 picks a free one) and both URLs are printed on startup. (#3154)

    • @cog.concurrent decorator. Configure async runner concurrency on the method that does the work instead of in cog.yaml:

      class Runner(cog.BaseRunner):
          @cog.concurrent(max=4)
          async def run(self, prompt: str = cog.Input()) -> str:
              return await generate(prompt)

      The value is extracted statically at build time. concurrency.max in cog.yaml still works and still takes precedence, but it now warns on build — remove it when you migrate. (#3089)

    • Input validation before build and run. cog predict, cog run, and cog train now validate -i inputs against the model's OpenAPI schema before building the image or starting the container, so a typo fails in a second rather than after a full build. Covers unknown input names, missing required inputs, type mismatches, enum values, numeric bounds, string length, and regex patterns. The schema is generated statically from cog.yaml; for existing images it's read from the openapi_schema label. (#3097)

    • accept on Path and File inputs. Declare the MIME types or extensions an input takes — Input(accept="image/*"), Input(accept="audio/wav,audio/mp3"), Input(accept=".safetensors,.bin") — and Cog emits it as x-cog-accept in the OpenAPI schema so UIs and clients know what to offer. Using accept on a non-file type is a build error. (#2863)

    • Local wheels and source archives in requirements. build.python_requirements now accepts bare local paths like ./dist/mylib-0.1.0-py3-none-any.whl or ./packages/localpkg.tar.gz. Paths resolve relative to the requirements file, and only the referenced artifacts get staged into the build. .whl, .zip, .tar.gz, .tgz, .tar.bz2, and .tar.xz are supported. (#3095)

    Improvements

    • Readable logs from local commands. cog serve, cog run, cog predict, and cog train now run the model with console-formatted logs instead of production JSON. Deployed models are unaffected. (#2806)
    • Download progress for cog weights. cog weights import and cog weights pull show live Docker-style progress while they populate the local weight store. (#3087)
    • Prebuilt base images are documented. New base images page covers what's on Cog's prebuilt base images, how --use-cog-base-image works, and how it interacts with --use-cuda-base-image. (#3088)

    Bug fixes

    • GPU builds on CUDA base images work again. Builds on nvidia/cuda images failed with externally-managed-environment because uv-managed Python is marked PEP 668 externally managed and uv 0.9.x enforces it. Cog now passes --break-system-packages wherever it installs into a uv-managed Python, not just in cog base-image. (#3073)
    • Explicit cudnn with a CUDA minor version now validates. A config pairing cuda: "11.6" with cudnn: "8" was rejected up front even though 11.6 resolves fine to a patch-level base image like nvidia/cuda:11.6.2-cudnn8-devel-ubuntu20.04. Validation now matches versions the same way image selection does. (#3070)
    • Install one-liners work on Linux arm64. uname -m reports aarch64 there, but the release asset is cog_Linux_arm64, so the documented curl command and tools/install.sh both 404'd. Both now normalize the architecture. (#3066)
    • Generated OpenAPI schemas report the real Cog version. info.version was hard-coded to 0.1.0; it now carries the version that built the schema. (#3075)
    • cog weights pull is quieter. Directory entries in weight tarballs no longer produce skipping unexpected tar entry lines. (#3076)
    Open source →
  3. v0.21.1-0.20260811222540-e88852c300cd 11 Aug 2026 pre-release

    Nothing published for this version

  4. v0.21.1-0.20260811173841-fc4eb97ea257 11 Aug 2026 pre-release

    Nothing published for this version

  5. v0.21.1-0.20260810162216-e456e1924c60 10 Aug 2026 pre-release

    Nothing published for this version

  6. v0.21.1-0.20260807200530-32daebf40f52 07 Aug 2026 pre-release

    Nothing published for this version

  7. v0.21.1-0.20260805210105-9a62f0c736e1 05 Aug 2026 pre-release

    Nothing published for this version

  8. v0.21.1-0.20260805172112-2a67d8ead21a 05 Aug 2026 pre-release

    Nothing published for this version

  9. v0.21.1-0.20260716164215-4e62b8b7037a 16 Jul 2026 pre-release

    Nothing published for this version

  10. v0.21.1-0.20260712122913-b4bcb4357f09 12 Jul 2026 pre-release

    Nothing published for this version

  11. v0.21.1-0.20260707154557-5a4f61a2b52f 07 Jul 2026 pre-release

    Nothing published for this version

  12. v0.21.1-0.20260706190438-966752e9f5f5 06 Jul 2026 pre-release

    Nothing published for this version

  13. v0.21.1-0.20260626200724-6cce8fdde9ce 26 Jun 2026 pre-release

    Nothing published for this version

  14. v0.21.1-0.20260625175327-e6dcdfcce057 25 Jun 2026 pre-release

    Nothing published for this version

  15. v0.21.1-0.20260624230137-10b890f4a06a 24 Jun 2026 pre-release

    Nothing published for this version

  16. v0.21.1-0.20260619183335-e5a99769616c 19 Jun 2026 pre-release

    Nothing published for this version

  17. v0.21.0 16 Jun 2026
    Release notes

    New features

    • Server-Sent Event prediction streams. HTTP prediction requests can now ask for Accept: text/event-stream to receive start, output, log, metric, and terminal completed events for predictors that explicitly opt in with @streaming / @cog.streaming. Reconnecting clients can replay retained in-flight prediction events with PUT /predictions/{id}. (#3019)
    • JSON-native union inputs. Cog now supports union-typed predictor inputs in generated schemas and HTTP request handling, allowing compatible JSON-native values to be resolved correctly. (#3048)

    Improvements

    • Example models now live in the Cog repository. The example models from replicate/cog-examples have moved into this repository under examples/, with updated run.py / BaseRunner examples for common workflows including images, training, notebooks, streaming, concurrency, context, and Replicate API usage. (#3055)
    • Experimental warning for cog weights. Every cog weights subcommand now prints a warning that the weights workflow is experimental and should not be relied on in production workflows yet. (#3025)
    • Static schema parser target resolution. The static Python schema parser now uses run() as the primary prediction entry point while preserving legacy predict() fallback behavior, and resolves inherited and imported targets more consistently. (#3027)

    Bug fixes

    • cog.Secret inputs now work with coglet-backed predictions. Predictors that annotate inputs as Secret, Optional[Secret], or Secret | None now receive cog.types.Secret values at runtime again, restoring behavior that regressed in the Rust/coglet runtime rewrite. (#3057)
    • cog doctor --fix now shows available remediation text. Findings without an auto-fix now display their remediation message instead of incorrectly saying no auto-fix is available. (#3031)
    • Cog-managed weight uploads now send the correct layer media type. Weight layer uploads now propagate the Cog weight media type during registry finalization while preserving regular image-layer behavior. (#3033)
    • Predictor validation now handles PEP 563 string annotations. Predictor files using from __future__ import annotations no longer reject valid setup() -> None methods or accept invalid run() -> None methods because None annotations were stored as strings. (#3034)
    • cog serve now mounts weights like cog run. Models served locally now receive configured weights consistently with local prediction runs. (#3044)
    • Omitted optional inputs now resolve to None at the HTTP edge. Optional predictor inputs omitted from HTTP requests are now passed as None instead of being treated inconsistently by request handling. (#3051)
    Open source →
  18. v0.21.0-rc.3 05 Jun 2026 pre-release
    Release notes

    Changelog

    Open source →
  19. v0.21.0-rc.2 02 Jun 2026 pre-release
    Release notes

    Changelog

    Open source →
  20. v0.21.0-rc.1 29 May 2026 pre-release
    Release notes

    New features

    • Server-Sent Event prediction streams. HTTP prediction requests can now ask for Accept: text/event-stream to receive start, output, log, metric, and terminal completed events for predictors that explicitly opt in with @streaming / @cog.streaming. Reconnecting clients can replay retained in-flight prediction events with PUT /predictions/{id}. (#3019)

    Improvements

    • Experimental warning for cog weights. Every cog weights subcommand now prints a warning that the weights workflow is experimental and should not be relied on in production workflows yet. (#3025)
    • Static schema parser target resolution. The static Python schema parser now uses run() as the primary prediction entry point while preserving legacy predict() fallback behavior, and resolves inherited and imported targets more consistently. (#3027)

    Bug fixes

    • cog doctor --fix now shows available remediation text. Findings without an auto-fix now display their remediation message instead of incorrectly saying no auto-fix is available. (#3031)
    • Cog-managed weight uploads now send the correct layer media type. Weight layer uploads now propagate the Cog weight media type during registry finalization while preserving regular image-layer behavior. (#3033)
    • Predictor validation now handles PEP 563 string annotations. Predictor files using from __future__ import annotations no longer reject valid setup() -> None methods or accept invalid run() -> None methods because None annotations were stored as strings. (#3034)
    Open source →
  21. v0.20.1-0.20260527170413-51825094bbc7 27 May 2026 pre-release

    Nothing published for this version

  22. v0.20.1-0.20260526163624-dce03803cee4 26 May 2026 pre-release

    Nothing published for this version

  23. v0.20.1-0.20260522194237-1f6c4cdbd8b9 22 May 2026 pre-release

    Nothing published for this version

  24. v0.20.1-0.20260520164607-e071abab028a 20 May 2026 pre-release

    Nothing published for this version

  25. v0.20.0 19 May 2026
    Release notes

    New features

    • cog run command. The cog predict command has been renamed to cog run with full backward compatibility. cog predict still 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 Opaque annotation 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 push no 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)
    Open source →
  26. v0.19.4-0.20260515193546-3f26e5dffbce 15 May 2026 pre-release

    Nothing published for this version

  27. v0.19.4-0.20260514193246-6842f0ca5bf1 14 May 2026 pre-release

    Nothing published for this version

  28. v0.19.4-0.20260508175352-14d224eba24c 08 May 2026 pre-release

    Nothing published for this version

  29. v0.19.4-0.20260506202150-3ec21f66678c 06 May 2026 pre-release

    Nothing published for this version

  30. v0.19.4-0.20260505223522-ce95b7404dfa 05 May 2026 pre-release

    Nothing published for this version

  31. v0.19.4-0.20260505015450-f089bc408eea 05 May 2026 pre-release

    Nothing published for this version

  32. v0.19.3 04 May 2026
    Release notes

    Changelog

    Open source →
  33. v0.19.3-0.20260501222258-cac3e91a928c 01 May 2026 pre-release

    Nothing published for this version

  34. v0.19.2 01 May 2026
    Release notes

    Changelog

    Open source →
  35. v0.19.1 30 Apr 2026
    Release notes

    Bug fixes

    • Support for TypedDict in schema generation. Fixed an issue where TypedDict type annotations would cause schema generation to fail. (#2978)
    • Build order fix for resource exhaustion. Reordered coglet wheel build to run after cog/sdk builds to prevent resource exhaustion during release builds. (#2977)

    Maintenance

    • Removed dead Go code. Cleaned up unused code identified by deadcode analysis. (#2979)
    • Removed accidentally committed folder. Deleted a folder that shouldn't have been in the repository. (#2972)
    • CI lockfile improvements. Switched to strict lockfile mode and regenerated mise.lock. (#2975)

    Dependencies

    • Updated golang.org/x/crypto from 0.49.0 to 0.50.0 (#2965)
    • Updated golang.org/x/term from 0.41.0 to 0.42.0 (#2933)
    • Updated google.golang.org/grpc from 1.79.3 to 1.80.0 (#2967)
    • Updated rand from 0.8.5 to 0.8.6 in /crates (#2958)
    Open source →
  36. v0.19.1-0.20260429211705-2a0755ca5b08 29 Apr 2026 pre-release

    Nothing published for this version

  37. v0.19.1-0.20260425122704-aea7995e8e6a 25 Apr 2026 pre-release

    Nothing published for this version

  38. v0.19.0 24 Apr 2026
    Release notes

    New features

    • cog doctor command. Diagnose common Cog setup issues, check configuration, and verify that everything is working correctly. Run cog doctor to validate your environment. (#2923)

    Improvements

    • Static schema generation is now the default. Cog now generates prediction schemas statically from your predictor's type annotations rather than importing and inspecting the Python code at build time. This makes builds faster and more reliable. Use COG_LEGACY_SCHEMA=1 to opt out if you encounter issues. (#2950)
    • Test harness improvements. The Cog integration test harness now runs tests in parallel and provides better error reporting. (#2944)

    Bug fixes

    • Separate-weights builds with r8.im image names work correctly. Schema validation no longer fails when building with separate weights and using r8.im/... image names. (#2954)
    • Static schema generation handles more edge cases. Fixed issues with certain type annotation patterns in static schema generation. (#2948)
    • Secret = Input(default=None) is treated as optional. Secret inputs with None defaults are now correctly identified as optional in the generated schema. (#2949)
    Open source →
  39. v0.18.1-0.20260420184606-8e5c5ee99dc6 20 Apr 2026 pre-release

    Nothing published for this version

  40. v0.18.1-0.20260417131846-d343eb6aa79c 17 Apr 2026 pre-release

    Nothing published for this version

  41. v0.18.0 15 Apr 2026

    Nothing published for this version

  42. v0.17.3-0.20260410191745-61a04a227ded 10 Apr 2026 pre-release

    Nothing published for this version

  43. v0.17.3-0.20260409205704-fea9db803fe1 09 Apr 2026 pre-release

    Nothing published for this version

  44. v0.17.3-0.20260407212303-6019c1b77a33 07 Apr 2026 pre-release

    Nothing published for this version

  45. v0.17.2 01 Apr 2026

    Nothing published for this version

  46. v0.17.2-0.20260328010655-6ccf980ce8a7 28 Mar 2026 pre-release

    Nothing published for this version

  47. v0.17.1 27 Mar 2026

    Nothing published for this version

  48. v0.17.0 25 Mar 2026

    Nothing published for this version

  49. v0.17.0-rc.4 24 Mar 2026 pre-release

    Nothing published for this version

  50. v0.17.0-rc.3 23 Mar 2026 pre-release

    Nothing published for this version

  51. v0.17.0-rc.2.0.20260320222113-cb3ac3c727f6 20 Mar 2026 pre-release

    Nothing published for this version

  52. v0.17.0-rc.2.0.20260318195950-6361ba9832b3 18 Mar 2026 pre-release

    Nothing published for this version

  53. v0.17.0-rc.2.0.20260313184453-f42aa3b55a57 13 Mar 2026 pre-release

    Nothing published for this version

  54. v0.17.0-rc.2 12 Mar 2026 pre-release

    Nothing published for this version

  55. v0.17.0-rc.1.0.20260312185645-028b6fecfbcb 12 Mar 2026 pre-release

    Nothing published for this version

  56. v0.17.0-rc.1.0.20260312135913-fd95417d74c7 12 Mar 2026 pre-release

    Nothing published for this version

  57. v0.17.0-rc.1.0.20260309161701-3f62e3d99368 09 Mar 2026 pre-release

    Nothing published for this version

  58. v0.17.0-rc.1.0.20260306172125-63cf1d871992 06 Mar 2026 pre-release

    Nothing published for this version

  59. v0.17.0-rc.1.0.20260302223427-9616e8db800b 02 Mar 2026 pre-release

    Nothing published for this version

  60. v0.17.0-rc.1.0.20260228183350-e3d30f26e250 28 Feb 2026 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive