File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
onyx/natural_language_processing Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
from tokenizers import Encoding # type: ignore
7
7
from tokenizers import Tokenizer # type: ignore
8
- from transformers import logging as transformer_logging # type:ignore
9
8
10
9
from onyx .configs .model_configs import DOC_EMBEDDING_CONTEXT_SIZE
11
10
from onyx .configs .model_configs import DOCUMENT_ENCODER_MODEL
16
15
TRIM_SEP_PAT = "\n ... {n} tokens removed...\n "
17
16
18
17
logger = setup_logger ()
19
- transformer_logging .set_verbosity_error ()
20
18
os .environ ["TOKENIZERS_PARALLELISM" ] = "false"
21
19
os .environ ["HF_HUB_DISABLE_TELEMETRY" ] = "1"
22
- os .environ ["TRANSFORMERS_NO_ADVISORY_WARNINGS" ] = "1"
23
20
24
21
25
22
class BaseTokenizer (ABC ):
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ supervisor==4.2.5
83
83
RapidFuzz==3.13.0
84
84
tiktoken==0.7.0
85
85
timeago==1.0.16
86
- transformers==4.49.0
87
86
unstructured==0.15.1
88
87
unstructured-client==0.25.4
89
88
uvicorn==0.35.0
You can’t perform that action at this time.
0 commit comments