Closed Palmik closed 8 months ago
@Palmik nice find, would also be nice to create a PR to fix it though 😬 . I've created one though.
Good find, was going crazy about this. Would be even better to check for the following:
if not TOKENIZER:
TOKENIZER = None
As this handles the case where TOKENIZER is already set to None, 0, or any other non standard way.
Good find, was going crazy about this. Would be even better to check for the following:
if not TOKENIZER: TOKENIZER = None
As this handles the case where TOKENIZER is already set to None, 0, or any other non standard way.
My PR does exactly this, would be nice if it could get merged: https://github.com/runpod-workers/worker-vllm/pull/17/files
For some reason, when you don't specify it, it results in tokenizer being
''
rather thanNone
. Adding the following snippet fixes it: