Skip to content

Commit c68539e

Browse files
authored
fix: raise minimum supported Python version to 3.10 (#1079)
* fix: require Python 3.10 for dependency compatibility Reported-by: luodian * Run black on lmms_eval/models/chat/vllm.py for PR 1079
1 parent 1516dba commit c68539e

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

lmms_eval/models/chat/vllm.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,7 @@ def generate_until(self, requests) -> List[str]:
105105

106106
sampling_params = SamplingParams(**sampling_params)
107107
start_time = time.time()
108-
response = self.client.chat(
109-
sampling_params=sampling_params,
110-
messages=batched_messages,
111-
chat_template=self.chat_template
112-
)
108+
response = self.client.chat(sampling_params=sampling_params, messages=batched_messages, chat_template=self.chat_template)
113109
end_time = time.time()
114110

115111
response_text = [o.outputs[0].text for o in response]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3",
2020
"Operating System :: OS Independent",
2121
]
22-
requires-python = ">=3.9"
22+
requires-python = ">=3.10"
2323
dependencies = [
2424
"accelerate>=0.29.1",
2525
"black>=24.1.0",

0 commit comments

Comments
 (0)