Skip to main content

No project description provided

Project description

AutoCog

Generate predict.py and cog.yaml automatically using GPT4

Screen recording

Usage

First, set your OpenAI API key in an environment variable

OPENAI_API_KEY=sk-...

In the repo you want to cog-ify, run

autocog

This will generate a cog.yaml and predict.py based on the files in the current directory. It will then run the model and if it fails to run, it will attempt to fix the error and run it again. By default it has 5 attempts to fix it, which can be changed with the --attempts flag.

If your model needs a GPU to run, you need to run AutoCog on a GPU machine.

Human in the loop

Sometimes AutoCog fails to create a working Cog configuration. In those cases you, the human, have to step in and edit the cog.yaml and predict.py files.

Once you have edited them, let AutoCog continue:

autocog --continue

By default, AutoCog will guess a cog predict command to run the model. If you want to specify your own predict command, use the --predict-command flag.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autocog-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

autocog-0.0.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file autocog-0.0.1.tar.gz.

File metadata

  • Download URL: autocog-0.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for autocog-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dbba17f85f89834a86c6cfde2b82ab5aa0f1e91dc3f44634f5f95b12b62b77b5
MD5 34757db045aabce5a7fa0676e3f16c18
BLAKE2b-256 c469e6ec644587bb198ad4972d850f69371c9e2802ea4672cea8dba94c2d4e08

See more details on using hashes here.

File details

Details for the file autocog-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: autocog-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for autocog-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44f3c6d326bce408dbbb2fadd014af826bd79401a67a7d16f8dfc131c34c7891
MD5 0ceb71dbd79960163ba8724bd462d7c3
BLAKE2b-256 715619eda58e8ef1fa3c3015971375c6187b0c4528819570c887fadb65882df8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page