Skip to content
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

Add Price for Lepton AI Models #12

Open
bobmayuze opened this issue Dec 28, 2023 · 7 comments
Open

Add Price for Lepton AI Models #12

bobmayuze opened this issue Dec 28, 2023 · 7 comments

Comments

@bobmayuze
Copy link

bobmayuze commented Dec 28, 2023

https://www.lepton.ai/playground

bunch of models provided : llama7b,13b,70b, codellama 7b,13b,34b, mixtral-8*7b, etc...

For pricing: https://www.lepton.ai/pricing

@areibman
Copy link
Contributor

areibman commented Dec 28, 2023

https://www.lepton.ai/playground

bunch of models provided : llama7b,13b,70b, codellama 7b,13b,34b, mixtral-8*7b, etc...

For pricing: https://www.lepton.ai/pricing

I'm assuming these are the prices:

Model Price
Llama2 7b $0.1 / million tokens
Llama2 13b $0.3 / million tokens
Llama2 70b $0.8 / million tokens
Code Llama 7b $0.1 / million tokens
Code Llama 13b $0.3 / million tokens
Code Llama 34b $0.8 / million tokens

Do these models have canonical names? i.e. "gpt-3.5-turbo" = GPT-3.5. Looks like a simple thing to add

@bobmayuze
Copy link
Author

yep, llama2-7b, llama2-13b, llama2-70b, mixtral-8x7b, codellama-7b, codellama-13b, codellama-34b

@bobmayuze
Copy link
Author

and they are open AI compatible, eg. for mixtral-8*7b https://www.lepton.ai/playground/chat?model=mixtral-8x7b

@areibman
Copy link
Contributor

and they are open AI compatible, eg. for mixtral-8*7b https://www.lepton.ai/playground/chat?model=mixtral-8x7b

Sounds good. I can add these, but if you'd prefer, raise a PR and I'll approve.

@bobmayuze
Copy link
Author

bobmayuze commented Dec 29, 2023

I'm assuming the structure of this file needs to be altered a bit. maybe add a provider attribute to each model? and default provider to openAI? or have a list of providers as the price do vary among these providers.

@areibman
Copy link
Contributor

I'm assuming the structure of this file needs to be altered a bit. maybe add a provider attribute to each model? and default provider to openAI? or have a list of providers as the price do vary among these providers.

This pattern from LiteLLM might work. Simply adding slashes:

https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json

@areibman
Copy link
Contributor

areibman commented Jan 2, 2024

@bobmayuze I've created a new cost dictionary file: https://github.com/AgentOps-AI/tokencost/blob/main/model_prices.yaml

Feel free to add your models in there. Additionally, you can update the table in the README to include those models.

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

No branches or pull requests

2 participants