Skip to main content

Carbon intensity data registry for LLM and embedding models with live Electricity Maps updates

Project description

rakam-frugal-ai

Carbon intensity data registry for LLM and embedding models, with live updates from the Electricity Maps API.

Ships a precomputed, weighted-by-region probability table for popular models (GPT-4o, GPT-4o-mini, Claude, embedding models, …) and refreshes the underlying datacenter carbon intensities on demand from a free Electricity Maps API key.

Install

pip install rakam-frugal-ai

Usage

import rakam_frugal_ai as ci

m = ci.model("gpt-4o")
print(m.CI)              # weighted carbon intensity, gCO2eq/kWh
print(m.size_billion_params)
print(m.datacenter_regions)

API key

Live refreshes require a (free) Electricity Maps API key. Set it in your environment:

export ELECTRICITY_MAPS_API_KEY=your-key-here

Without the key the library still works using the bundled snapshot; it just can't refresh values.

Python support

Python 3.10, 3.11, 3.12.

License

MIT — see LICENSE.

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

rakam_frugal_ai-2026.6.15.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

rakam_frugal_ai-2026.6.15-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file rakam_frugal_ai-2026.6.15.tar.gz.

File metadata

  • Download URL: rakam_frugal_ai-2026.6.15.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rakam_frugal_ai-2026.6.15.tar.gz
Algorithm Hash digest
SHA256 0b3bd471b17d47d2602805aaf7dff32d3e355003ce731324e127f8d633285668
MD5 0ef5e09693d5646632271c800135fe7e
BLAKE2b-256 27208b10e36f7add5ae4defd05ff3b8185bb69ef0dcc6a102983af20b5c7c624

See more details on using hashes here.

Provenance

The following attestation bundles were made for rakam_frugal_ai-2026.6.15.tar.gz:

Publisher: weekly-data-refresh.yml on Rakam-AI/rakam-frugal-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rakam_frugal_ai-2026.6.15-py3-none-any.whl.

File metadata

File hashes

Hashes for rakam_frugal_ai-2026.6.15-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd2fc10c0ebe1e182ddbdec00e76634749e45a1833722f53f23a53e4d98e69e
MD5 7b1ea24c4419554063dfb8d0e2671f7d
BLAKE2b-256 c5c58e66288d099acdb9bb07dac34550a09170336bb33cdfa59bbd8672083438

See more details on using hashes here.

Provenance

The following attestation bundles were made for rakam_frugal_ai-2026.6.15-py3-none-any.whl:

Publisher: weekly-data-refresh.yml on Rakam-AI/rakam-frugal-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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