Skip to content

Feature/manual impact estimations#229

Open
Popidge wants to merge 3 commits into
mlco2:mainfrom
Popidge:feature/manual-impact-estimations
Open

Feature/manual impact estimations#229
Popidge wants to merge 3 commits into
mlco2:mainfrom
Popidge:feature/manual-impact-estimations

Conversation

@Popidge
Copy link
Copy Markdown

@Popidge Popidge commented Apr 24, 2026

Summary

  • Add public manual LLM impact estimation APIs under ecologits.estimations
  • Move shared provider datacenter configuration and estimation result models out of tracer utilities
  • Keep ecologits.tracers.utils.ImpactsOutput as a documented compatibility class for existing tracer docs and imports
  • Add documentation and tests for manual impact estimation usage

Details

This introduces estimate_llm_impacts, which lets users estimate LLM request impacts directly from provider/model/request metadata without patching a supported client library.

The tracer utility path now delegates to the shared estimation logic while preserving the existing ImpactsOutput public API and documentation target.

This is in response to issue #188

AI Assistance transparency - most of this PR is generated through promting GPT-5.5 (medium) via Codex CLI. Validation mentioned below. I appreciate this is my first PR, and given the ai-prompting, it may come under warranted extra scrutiny - I'm happy to take any and all feedback (I'm not a drive-by slop-merchant!) and make changes - I found this project while brainstorming my own eco-aware compute dev tools, and I'm keen to contribute more in future.

Validation

  • uv run pytest
  • uv run mkdocs build --strict
  • uv run ruff check ecologits/estimations/modeling.py ecologits/tracers/utils.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant