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.3.tar.gz (9.1 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.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: costly-0.1.3.tar.gz
  • Upload date:
  • Size: 9.1 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.3.tar.gz
Algorithm Hash digest
SHA256 2d2d9fdcf71d8124c102d823130bc06adce11138077827d1650030a5f13ab659
MD5 3e9812be9659079e20f33dfe808910ca
BLAKE2b-256 97a6c57079c9a8ca3c15ffdf43920b7ddc42a7f2ea5c1be301a115fb09da971a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: costly-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b560b9182452d084f55e8be0e0bbad1c2d1a9e3847ac27f628e7d6389542e24
MD5 48b4a039c8e93a37c6142c32773e32b3
BLAKE2b-256 06c82a86d095bdde39417aed965c2e80288bdb3e2428db7944eda6ea7df96365

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