Skip to content

WARNING:root:Warning: model not found. Using cl100k_base encoding. #38

Open

Description

@moresearch

I am getting WARNING:root:Warning: model not found. Using cl100k_base encoding. when using non openAI models such as claude-2. I checked the code and it seems to be a tiktoken issue.

Am I getting wrong cost??

Activity

  1. areibman commented on Apr 11, 2024

    @areibman
    Contributor

    Potentially, yes. I believe Claude 1 uses cl100k, but Claude 2 and Claude 3 I'm not so sure.

    Here is the only info I've found on Claude 3: https://github.com/javirandor/anthropic-tokenizer

    And other Anthropic models:
    https://github.com/anthropics/anthropic-sdk-python/blob/bd866a1e837febd05b6f5cea322f1c42e29f2d01/src/anthropic/tokenizer.json

    For stuff like this, TokenCost will likely be a close but not exact price estimate.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions