8000 Add token logging + EcoLogits or similar · Issue #141 · MantisAI/sieves · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add token logging + EcoLogits or similar #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rmitsch opened this issue Apr 27, 2025 · 0 comments
Open

Add token logging + EcoLogits or similar #141

rmitsch opened this issue Apr 27, 2025 · 0 comments
Assignees
Labels
engines Everything related to engines pipeline Everything related to the pipeline

Comments

@rmitsch
Copy link
Collaborator
rmitsch commented Apr 27, 2025

Include token estimation and corresponding ecological implications for all requests.

We 8 different libraries (gliner, ollama, outlines, transformers, instructor, langchain, vllm , dspy) to convert requests into structured data. We need a way to count input and output tokens across all possible kinds of models w.r.t. to the model used, and store them in a unified format.

A corresponding call looks e.g. like this.

I haven't looked into this too much yet. The annoying part about this is to find an easy and not too verbose way to make model- independent token estimations. Once we have token count estimations, we can think about which other stats we want to compute.

Hoping that we can integrate one of the existing libraries (EcoLogits or whatever else, although the way that EcoLogits places itself in the call stack won't work for us) to do the heavy lifting for us.

@rmitsch rmitsch self-assigned this Apr 27, 2025
@rmitsch rmitsch added engines Everything related to engines pipeline Everything related to the pipeline labels Apr 27, 2025
@rmitsch rmitsch assigned ChatBotMatt and unassigned rmitsch Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engines Everything related to engines pipeline Everything related to the pipeline
Projects
None yet
Development

No branches or pull requests

2 participants
0