From 56f19303b45a257c95f9958af76e6a9082a38892 Mon Sep 17 00:00:00 2001 From: saattrupdan Date: Thu, 31 Oct 2024 16:16:24 +0100 Subject: [PATCH] style: Black --- outlines/models/vllm.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/outlines/models/vllm.py b/outlines/models/vllm.py index 982b57293..ea7eb19ee 100644 --- a/outlines/models/vllm.py +++ b/outlines/models/vllm.py @@ -232,11 +232,7 @@ def convert_token_to_string( string = tokenizer.convert_tokens_to_string([token]) # A hack to handle missing spaces to HF's Llama tokenizers - if ( - type(token) is str - and token.startswith(SPIECE_UNDERLINE) - or token == "<0x20>" - ): + if type(token) is str and token.startswith(SPIECE_UNDERLINE) or token == "<0x20>": return " " + string return string