Skip to main content

Estimate costs of complex LLM workflows in advance before spending money

Project description

costly

Estimate costs of complex LLM workflows in advance before spending money, via simulations. Just put @costly() on the load-bearing function (provided it has the right type signature); make sure all functions that call it pass **kwargs to it and call your complex function with simulate=True and some cost_log: Costlog object. See examples.ipynb for more details.

Installation

pip install costly

Usage

See examples.ipynb for a quick walkthrough.

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

costly-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

costly-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file costly-0.1.1.tar.gz.

File metadata

  • Download URL: costly-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.0 Windows/10

File hashes

Hashes for costly-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09c65d0356723771ee617f4abeae5bfb55b7b467ff6bc3ff8b20c5e2e67ef43f
MD5 9f56db4d6b8dcd25a88c35f9c75557eb
BLAKE2b-256 07fa383017da445784764e5e34b1a46d4c2555a5c3c254b35b9dbc40e4f56670

See more details on using hashes here.

File details

Details for the file costly-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: costly-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.0 Windows/10

File hashes

Hashes for costly-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41277aaf5c3a5f908532b47cafaa3c5071b6e70b262c66477614e7d68e6c5be7
MD5 03092f37d97bbf57eaa793af29206244
BLAKE2b-256 89ef657c5c8250871e989e39939e9406a4f5da2f6be82981c674dae598daf79d

See more details on using hashes here.

Supported by

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