This commit is contained in:
Cyberes 2023-10-04 13:32:54 -06:00
parent d78ef652fc
commit 7acaa3c885
1 changed files with 0 additions and 1 deletions

View File

@ -28,7 +28,6 @@ def tokenize(prompt: str, backend_url: str) -> int:
return j['length']
except Exception as e:
print(f'Failed to tokenize using VLLM -', f'{e.__class__.__name__}: {e}')
raise Exception
return len(tokenizer.encode(chunk)) + 10
# Use a ThreadPoolExecutor to send all chunks to the server at once