Skip to main content

No project description provided

Project description

AutoCog

Generate predict.py and cog.yaml automatically using GPT4

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.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: autocog-0.0.3.tar.gz
  • Upload date:
  • Size: 6.8 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.3.tar.gz
Algorithm Hash digest
SHA256 3741e9dfb01bef80180548581b9c4ae0dab811c879c4931653b0bde01012b4f2
MD5 5dd9f033aa374f0b3b4d2eb27a396c0f
BLAKE2b-256 2a5aaa9bd7af6dc0460342ede8f61374e7f468f7001135a0409815e773a42d7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autocog-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d148012ab1c1fb05cb403101b1c4e1fea00b32f79fd24ca77f4bc6f74948434e
MD5 e9432e024ff532b7fb56280d85a980d0
BLAKE2b-256 43b277d890436a4616737deccb9cec0a15837cb129037198ee146a2bdd8cfbeb

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