replicate/cog

Containers for machine learning

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 27 minutes ago
Added to GitGenius on September 7th, 2026
Created on February 26th, 2021
Open Issues & Pull Requests: 75 (+0)
GitHub issues: Enabled
Number of forks: 698
Total Stargazers: 9,470 (+0)
Total Subscribers: 70 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 27.0 days
Mean response time: 403.9 days
90th percentile: 1500.6 days
Tracked items: 511

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 85% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "go" is answered fastest, typically in about 7 days, while "type/chore" waits about 53 months. Only 4% of issues opened in the past year have been closed. Three people close 78% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 27
New in 7 days: 0
Closed in 7 days: 3
Avg open age: 1,248 days
Stale 30+ days: 24
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (70)
  • type/bug (40)
  • go (33)
  • documentation (25)
  • next (25)
  • good first issue (14)
  • help wanted (11)
  • python (11)

Detailed Description

Cog is a tool that packages machine learning models into production-ready Docker containers.

The problem Cog solves is the complexity researchers and engineers face when deploying ML models to production. Dockerfiles are difficult to write correctly, CUDA compatibility is notoriously error-prone, and setting up inference servers requires substantial engineering effort. Cog simplifies this by letting you define your model's environment in a simple configuration file and your model's interface in standard Python. The tool then generates a Docker image with best practices baked in: appropriate Nvidia base images, efficient dependency caching, correct Python versions, and sensible environment defaults. It automatically handles CUDA, cuDNN, PyTorch, and TensorFlow compatibility. From your Python model definition, Cog generates an OpenAPI schema, validates inputs and outputs, and creates a high-performance HTTP inference server.

Cog suits researchers and ML engineers who want to move models from development to production without becoming Docker experts. It works well for projects where you have a Python model and need to ship it as a containerized service. The tool is designed to eliminate the back-and-forth between researchers and infrastructure engineers that typically happens when deploying models. You can deploy the generated container to your own infrastructure or to Replicate's hosted platform.

Development on the project shows consistent engagement with bug fixes and feature improvements across multiple areas of the codebase. The maintainers respond to user-reported issues and merge contributions that address both core functionality and edge cases. Work spans the full stack from the configuration layer through the generated HTTP server and Docker build process.