We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f0743d commit 3513d99Copy full SHA for 3513d99
1 file changed
bigcodebench/provider/vllm.py
@@ -41,7 +41,8 @@ def __init__(self, name: str, lora_path: str, dataset: str, tp: int, **kwargs) -
41
local_lora_path,
42
)
43
44
- self.llm = LLM(model=name, enable_lora=True if self.lora_request else False, **kwargs)
+ # max_model_len is set to max_new_tokens * 10
45
+ self.llm = LLM(model=name, max_model_len=self.max_new_tokens * 10, enable_lora=True if self.lora_request else False, **kwargs)
46
self.llm.set_tokenizer(tokenizer=self.tokenizer)
47
48
def is_direct_completion(self) -> bool:
0 commit comments