惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google Online Security Blog
Google Online Security Blog
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
W
WeLiveSecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
博客园 - 司徒正美
雷峰网
雷峰网
L
LINUX DO - 最新话题
博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
The Last Watchdog
The Last Watchdog
V2EX - 技术
V2EX - 技术
S
Security Affairs
有赞技术团队
有赞技术团队
月光博客
月光博客
T
Threatpost
T
Tor Project blog
O
OpenAI News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V
V2EX
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
博客园 - 三生石上(FineUI控件)
D
Docker
AWS News Blog
AWS News Blog
AI
AI
P
Proofpoint News Feed
K
Kaspersky official blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Darknet – Hacking Tools, Hacker News & Cyber Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Securelist
F
Fortinet All Blogs
F
Full Disclosure
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
量子位
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Palo Alto Networks Blog
Cyberwarzone
Cyberwarzone
Cisco Talos Blog
Cisco Talos Blog
美团技术团队
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog

Replicate's changelog

Agent skills for Replicate – Replicate changelog Fallback model for Nano Banana Pro – Replicate changelog MCP server auto-discovery – Replicate changelog Filter predictions by source – Replicate changelog The little things, week ending December 19, 2025 – Replicate changelog The little things, week ending December 5, 2025 – Replicate changelog The little things, week ending November 21, 2025 – Replicate changelog Code mode for Replicate's MCP server – Replicate changelog The little things, week ending November 7, 2025 – Replicate changelog Deployment setup monitoring – Replicate changelog The little things, week ending October 24, 2025 – Replicate changelog Set deadlines for predictions – Replicate changelog The little things, week ending October 10, 2025 – Replicate changelog Download invoices from billing settings – Replicate changelog Sort models by creation date via API – Replicate changelog Update model metadata via API – Replicate changelog The little things, week ending September 26, 2025 – Replicate changelog New search API, now in beta – Replicate changelog The little things, week ending September 12, 2025 – Replicate changelog Torch compile caching – Replicate changelog The little things, week ending August 29, 2025 – Replicate changelog The little things, week ending August 14, 2025 – Replicate changelog Run all models with the same API endpoint – Replicate changelog The little things, week ending August 1, 2025 – Replicate changelog Purchase prepaid credit – Replicate changelog The little things, week ending July 18, 2025 – Replicate changelog The little things, week ending July 4, 2025 – Replicate changelog Set a monthly spend limit deprecated – Replicate changelog See up to 24 hours of data on deployment metric graphs – Replicate changelog The little things, week ending June 20, 2025 – Replicate changelog Environment variables in running containers – Replicate changelog Slimmer API responses for model metadata – Replicate changelog The little things, week ending June 6, 2025 – Replicate changelog Faster, cheaper Flux training – Replicate changelog The little things, week ending May 23, 2025 – Replicate changelog Streaming text support in the playground – Replicate changelog Web URLs now in prediction objects – Replicate changelog Iterate in playground with audio support – Replicate changelog NVIDIA H100 GPUs now available – Replicate changelog More by this user – Replicate changelog The little things, week ending May 9, 2025 – Replicate changelog Copy docs directly to your LLM – Replicate changelog The little things, week ending April 25, 2025 – Replicate changelog The little things, week ending March 28, 2025 – Replicate changelog Simplified organizations – Replicate changelog The little things, week ending March 14, 2025 – Replicate changelog The little things, week ending February 28, 2025 – Replicate changelog Better prediction list – Replicate changelog The little things, week ending February 14, 2025 – Replicate changelog The little things, week ending January 31, 2025 – Replicate changelog Official models – Replicate changelog The little things, week ending January 17, 2025 – Replicate changelog The little things, week ending December 20, 2024 – Replicate changelog Language model training no longer supported – Replicate changelog GPU memory monitoring – Replicate changelog The little things, week ending December 06, 2024 – Replicate changelog The little things, week ending November 22, 2024 – Replicate changelog The little things, week ending November 8, 2024 – Replicate changelog A fond farewell to Python 3.7 – Replicate changelog The little things, week ending October 25, 2024 – Replicate changelog Dark mode – Replicate changelog Playground (beta) – Replicate changelog New documentation – Replicate changelog Synchronous API – Replicate changelog Large log outputs might be truncated – Replicate changelog Time limit for sharing predictions – Replicate changelog View training outputs on the web – Replicate changelog API for searching public models – Replicate changelog Streams always available, stream parameter deprecated – Replicate changelog Secret inputs for models – Replicate changelog Disable API tokens – Replicate changelog RSS and Atom feeds – Replicate changelog Delete stuff – Replicate changelog Docs and client library support for webhook verification – Replicate changelog Search for deployments – Replicate changelog Webhooks activity UI – Replicate changelog Improved validation for API prediction payloads – Replicate changelog T4 models now have more RAM – Replicate changelog GitHub secret scanning – Replicate changelog Bearer tokens – Replicate changelog Deployments API – Replicate changelog 3D viewer for GLB outputs – Replicate changelog Task-oriented collections – Replicate changelog Webhook verification – Replicate changelog Fine-tune SDXL from the web – Replicate changelog Compare image inputs to outputs – Replicate changelog Code snippets for every prediction – Replicate changelog API for creating models – Replicate changelog Improved training detail pages – Replicate changelog Prediction parameters as JSON – Replicate changelog API for listing public models – Replicate changelog Deployments – Replicate changelog Prediction query parameter – Replicate changelog Fullscreen training logs – Replicate changelog Dynamic status favicons – Replicate changelog Streaming output for language models – Replicate changelog Multiple API tokens for users – Replicate changelog A40 GPUs now available – Replicate changelog Hardware and pricing for trainable models – Replicate changelog Training API for language models – Replicate changelog
Introducing a new Cog runtime – Replicate changelog
2025-07-21 · via Replicate's changelog

We are introducing a new implementation of Cog’s production runtime component. This is the part of Cog responsible for predictor schema validation, prediction execution and HTTP serving.

tl;dr:

If you’re a model author and want to try out the new runtime, make sure you’re on Cog >= 0.16.0 and add build.cog_runtime: true to cog.yaml:

Most existing models should work as is, apart from a few exceptions. If you hit one of the exceptions, please follow the messages printed by cog to update your code. Read below for why these are necessary.

Note that:

  • The experimental training interface is not supported yet.
  • This new runtime will become the default in a future Cog release, after which the existing one will be deprecated.

Why build this?

The existing Cog runtime was written in Python and relies heavily on Pydantic and several other libraries when performing predictions. This leads to several problems:

  • Dependency issues: many Python libraries pull in conflicting versions of common dependencies, e.g. Pydantic. This causes runtime errors, sometimes even by just rebuilding the image which pulls a newer version of the dependency. By removing all Python dependencies from Cog runtime, you have total control of your model’s dependency graph.
  • Ambiguous predictor interface: we relied on Pydantic for checking predictor input and output types, which can be ambiguous and error prone, e.g. allowing types that may be handled incorrectly by other parts of our ecosystem or user code. It’s also hard to support custom data types due to potentially incompatible Pydantic versions, i.e. v1 vs v2.
  • Error handling: since Cog HTTP server and predictor are both Python code running via multiprocessing, it’s hard to differentiate platform errors, i.e. Cog, vs application errors, i.e. predictor. A model crash may cause the server to end up in a bad state with no useful logging.
  • Performance: certain things are hard to implement correctly and efficiently in Python, i.e. async HTTP handling, file upload & download, concurrency, serialization.

To tackle these problems, we re-implemented the runtime part of Cog with the following components:

  • Schema validation in pure vanilla Python via inspect and no Pydantic or any other dependency
  • Decoupled HTTP server rewritten in Go
  • Custom, pluggable data serialization

This allows us to minimize the runtime logic in Python and reduce the risk of it interfering with application code. The Go server is now responsible for most of the heavy lifting:

  • HTTP server and webhooks
  • Input file download and output file upload
  • Logging

The Go server communicates with the bare minimum Python runner via JSON files for input/output and HTTP/signals for IPC. The Python runner is solely responsible for invoking the predictor’s setup() and predict() methods.

What do I need to change?

Most of the Cog API, Predictor, Input, BaseModel, etc. are source compatible. There are 3 changes that might require updating the model.

  • Improved semantics of optional inputs
  • Cleaner dependencies
  • Removal of deprecated File API.

First, ambiguous optional inputs are no longer allowed. For example, in existing Cog, declaring prompt: str suggests that it cannot be None, while it still allows default=None, which can confuse type checkers and lead to buggy code, e.g. if it doesn’t check for none-ness. For example, instead of:

We should use:

Note that default=None is now redundant and removed, as Optional[str] implies that the input may be None, and type checker can warn us about checking it.

Second notable change is that the new Cog runtime no longer depends on any of the Python dependencies of the existing runtime. You’ll have to add them to requirements.txt if the model relies on them and they’re not pulled in via any other third party libraries.

  • attrs
  • fastapi
  • pydantic
  • PyYAML
  • requests
  • structlog
  • typing_extensions
  • uvicorn

Third change is the removal of deprecated cog.File API. Use cog.Path instead.