Skip to content

Commit 2accb8f

Browse files
Merge branch 'habana_main' into hpu_pp_new
2 parents 583f59f + d72098e commit 2accb8f

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

tests/lora/test_multilora_hpu.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
from multiprocessing import Process
32
from typing import List, Optional, Tuple
43

54
from vllm import EngineArgs, LLMEngine, RequestOutput, SamplingParams
@@ -21,7 +20,7 @@ def create_test_prompts(
2120
prompt_logprobs=1,
2221
max_tokens=128), None),
2322
("To be or not to be,",
24-
SamplingParams(temperature=0.8,
23+
SamplingParams(temperature=0.0,
2524
top_k=5,
2625
presence_penalty=0.2,
2726
max_tokens=128), None),
@@ -83,7 +82,7 @@ def process_requests(engine: LLMEngine,
8382

8483
expected_output = [
8584
" or, through inaction, allow a human being to come to harm.\nA robot must obey the orders given it by human beings except where such orders would conflict with the First Law.\nA robot must protect its own existence as long as such protection does not conflict with the First or Second Law.\nThe Three Laws of Robotics were created by Isaac Asimov in 1942. They are the foundation of robotics and artificial intelligence.\nThe Three Laws of Robotics are the foundation of robotics and artificial intelligence. They were created by Isaac Asimov in 194", # noqa: E501
86-
" that is the question.\nIt is the most famous line in all of Shakespeare's plays and one of the most famous in English literature. The question is not whether or not to be, but rather the question of who to be.\nIn Hamlet's case, the question is whether or not to be a good person. He is torn between the goodness of his father and the evil of his mother.\nThe question is a difficult one, and one that has been asked many times before. In Hamlet's case, the question is whether or not to be a good person, and he is torn between the", # noqa: E501
85+
" that is the question.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but how you will be.\nThe question is not whether you will be, but", # noqa: E501
8786
" SELECT icao FROM table_name_74 WHERE airport = 'lilongwe international airport' ", # noqa: E501
8887
" SELECT nationality FROM table_name_11 WHERE elector = 'anchero pantaleone' ", # noqa: E501
8988
" SELECT icao FROM table_name_74 WHERE airport = 'lilongwe international airport' ", # noqa: E501
@@ -109,24 +108,12 @@ def _test_llama_multilora(sql_lora_files, tp_size):
109108

110109

111110
def test_llama_multilora_1x(sql_lora_files):
112-
# Work-around to resolve stalling issue in multi-card scenario
113-
p = Process(target=_test_llama_multilora, args=(sql_lora_files, 1))
114-
p.start()
115-
p.join()
116-
assert p.exitcode == 0
111+
_test_llama_multilora(sql_lora_files, 1)
117112

118113

119114
def test_llama_multilora_2x(sql_lora_files):
120-
# Work-around to resolve stalling issue in multi-card scenario
121-
p = Process(target=_test_llama_multilora, args=(sql_lora_files, 2))
122-
p.start()
123-
p.join()
124-
assert p.exitcode == 0
115+
_test_llama_multilora(sql_lora_files, 2)
125116

126117

127118
def test_llama_multilora_4x(sql_lora_files):
128-
# Work-around to resolve stalling issue in multi-card scenario
129-
p = Process(target=_test_llama_multilora, args=(sql_lora_files, 4))
130-
p.start()
131-
p.join()
132-
assert p.exitcode == 0
119+
_test_llama_multilora(sql_lora_files, 4)

0 commit comments

Comments
 (0)