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.

Testing

poetry run pytest -s
```bash

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.4.tar.gz (9.4 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.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: costly-0.1.4.tar.gz
  • Upload date:
  • Size: 9.4 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.4.tar.gz
Algorithm Hash digest
SHA256 ef0c2f57dd6bb8422ea0d3df6639b8c2e3c2afff5d35999a46c4a0105d971279
MD5 e2c947c818659bcc8e1d3f9966aef95b
BLAKE2b-256 ecf50caeafd89cf3595b1e6cff271629bbad4c6ac76b0c7ea30302db39e1ea2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: costly-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0cec7682ad18d026ce34b203233449cac44ef1a313e3d51030f9728d5f63c52
MD5 ff3efcd48ee323d5715b19cf5656cafe
BLAKE2b-256 400c88e22e182a56bb93e2299ad94452ad735cca7a4117ffe592c367178babe1

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