mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 09:07:51 +00:00
fix CI bugs
This commit is contained in:
committed by
FrankLeeeee
parent
2a73e828eb
commit
fab294c7f4
@@ -11,6 +11,7 @@ from colossalai.inference.config import InferenceConfig
|
||||
from colossalai.inference.core.engine import InferenceEngine
|
||||
from colossalai.testing import rerun_if_address_is_in_use, spawn
|
||||
|
||||
|
||||
def setup_seed(seed):
|
||||
torch.manual_seed(seed)
|
||||
torch.cuda.manual_seed_all(seed)
|
||||
@@ -34,7 +35,7 @@ def check_inference_engine(test_cai=False):
|
||||
"介绍一下武汉,",
|
||||
]
|
||||
|
||||
output_len = 128
|
||||
output_len = 38
|
||||
do_sample = True
|
||||
top_p = 0.5
|
||||
top_k = 50
|
||||
|
@@ -57,7 +57,7 @@ def check_request_handler():
|
||||
block_size=16,
|
||||
eos_token_id=0,
|
||||
sample_params=None,
|
||||
block_table=torch.tensor([0, 0]),
|
||||
block_table=torch.tensor([-1, -1]),
|
||||
)
|
||||
request_handler.add_sequence(seq1)
|
||||
# the priority should be 1
|
||||
|
Reference in New Issue
Block a user