Skip to content

Commit f8e9060

Browse files
edwin-onyxEdwin Luoclaude
authored
fix(infra): remove transformers dependency for api server (#5441)
Co-authored-by: Edwin Luo <edwinluo@3ef5a334-3d74-4dbf-b1c8-d57dc87d5638.attlocal.net> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 24831fa commit f8e9060

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

backend/onyx/natural_language_processing/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from tokenizers import Encoding # type: ignore
77
from tokenizers import Tokenizer # type: ignore
8-
from transformers import logging as transformer_logging # type:ignore
98

109
from onyx.configs.model_configs import DOC_EMBEDDING_CONTEXT_SIZE
1110
from onyx.configs.model_configs import DOCUMENT_ENCODER_MODEL
@@ -16,10 +15,8 @@
1615
TRIM_SEP_PAT = "\n... {n} tokens removed...\n"
1716

1817
logger = setup_logger()
19-
transformer_logging.set_verbosity_error()
2018
os.environ["TOKENIZERS_PARALLELISM"] = "false"
2119
os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1"
22-
os.environ["TRANSFORMERS_NO_ADVISORY_WARNINGS"] = "1"
2320

2421

2522
class BaseTokenizer(ABC):

backend/requirements/default.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ supervisor==4.2.5
8383
RapidFuzz==3.13.0
8484
tiktoken==0.7.0
8585
timeago==1.0.16
86-
transformers==4.49.0
8786
unstructured==0.15.1
8887
unstructured-client==0.25.4
8988
uvicorn==0.35.0

0 commit comments

Comments
 (0)