Skip to content

Commit

Permalink
chore: remove tokenizer warnings (Arize-ai#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy authored Jan 19, 2024
1 parent b44d8aa commit 8ba1e1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/phoenix/experimental/evals/models/anthropic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
from dataclasses import dataclass, field
from typing import TYPE_CHECKING, Any, Dict, List, Optional

Expand All @@ -8,8 +7,6 @@
if TYPE_CHECKING:
from tiktoken import Encoding

logger = logging.getLogger(__name__)

MODEL_TOKEN_LIMIT_MAPPING = {
"claude-2.1": 200000,
"claude-2.0": 100000,
Expand Down Expand Up @@ -80,7 +77,6 @@ def _init_tiktoken(self) -> None:
try:
encoding = self._tiktoken.encoding_for_model(self.model)
except KeyError:
logger.warning("Warning: model not found. Using cl100k_base encoding.")
encoding = self._tiktoken.get_encoding("cl100k_base")
self._tiktoken_encoding = encoding

Expand Down
1 change: 0 additions & 1 deletion src/phoenix/experimental/evals/models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def _init_tiktoken(self) -> None:
try:
encoding = self._tiktoken.encoding_for_model(self.model_id)
except KeyError:
logger.warning("Warning: model not found. Using cl100k_base encoding.")
encoding = self._tiktoken.get_encoding("cl100k_base")
self._tiktoken_encoding = encoding

Expand Down

0 comments on commit 8ba1e1c

Please sign in to comment.