You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
+
"""
4
+
Script to test multi loras service with tp >= 2
5
+
"""
6
+
fromtests.utilsimportmulti_gpu_test
7
+
fromvllmimportLLM, SamplingParams
8
+
fromvllm.lora.requestimportLoRARequest
9
+
10
+
MODEL_PATH="Qwen/Qwen3-0.6B"
11
+
LORA_NAME_PATH_MAP= {
12
+
"Alice": "charent/self_cognition_Alice",
13
+
"Bob": "charent/self_cognition_Bob",
14
+
"Cat": "charent/self_cognition_Bob", # same as Bob
15
+
}
16
+
17
+
LORA_NAME_ID_MAP= {}
18
+
INCREASE_LORA_ID=0
19
+
LORA_RANK=8
20
+
21
+
22
+
LORA_TEST_PROMPTS= ["What is GitHub?", "Hi, tell me about you"]
23
+
LORA_TEST_EXPECTED= [
24
+
"GitHub is an open-source platform that provides a way to manage and develop software projects. It allows developers to store and manage code, collaborate on projects, and automate tasks.", # noqa: E501
25
+
"I am Alice, an AI assistant developed by GitHub/Charent.", # noqa: E501
26
+
]
27
+
28
+
29
+
defformat_chatml_messages(prompt: str):
30
+
return [
31
+
{"role": "system", "content": "You are a helpful assistant."},
0 commit comments