Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions python/openai/openai_frontend/engine/utils/tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024-2025, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2024-2026, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -47,7 +47,6 @@ def get_cached_tokenizer(
function caches these properties for faster access."""

tokenizer_all_special_ids = set(tokenizer.all_special_ids)
tokenizer_all_special_tokens_extended = tokenizer.all_special_tokens_extended
tokenizer_all_special_tokens = set(tokenizer.all_special_tokens)
tokenizer_len = len(tokenizer)

Expand All @@ -60,10 +59,6 @@ def all_special_ids(self):
def all_special_tokens(self):
return tokenizer_all_special_tokens

@property
def all_special_tokens_extended(self):
return tokenizer_all_special_tokens_extended

def __len__(self):
return tokenizer_len

Expand Down
Loading