{"library":"cog","type":"library","category":null,"description":"Cog is an open-source tool for packaging machine learning models into standard Docker containers. It allows you to define a Python `Predictor` class with `setup` and `predict` methods, which Cog then uses to build a Docker image for local testing or deployment to platforms like Replicate. The current version is 0.17.2, and it receives frequent minor updates with occasional major releases introducing significant architectural changes.","language":"python","status":"active","version":"0.17.2","tags":["machine learning","MLOps","containerization","docker","model deployment","replicate"],"last_verified":"Wed May 20","install":[{"cmd":"pip install cog","imports":["from cog import BasePredictor","from cog import Input","from cog import Path","from cog import replicate"]},{"cmd":"curl -o /usr/local/bin/cog -L 'https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)' && chmod +x /usr/local/bin/cog","imports":[]}],"homepage":"https://cog.run","github":"https://github.com/replicate/cog","docs":null,"changelog":null,"pypi":"https://pypi.org/project/cog/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.5,"avg_import_s":0.94,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/cog/compatibility"}}