Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] add internlm3 into testcase #3038

Merged
merged 9 commits into from
Jan 16, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions autotest/utils/pipeline_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,12 @@ def run_pipeline_vl_chat_test(config,
resource_path = config.get('resource_path')

if 'pytorch' in backend:
backend_config = PytorchEngineConfig(tp=tp, session_len=8192)
backend_config = PytorchEngineConfig(tp=tp)
if not is_bf16_supported():
backend_config.dtype = 'float16'
else:
backend_config = TurbomindEngineConfig(tp=tp, session_len=8192)
backend_config = TurbomindEngineConfig(tp=tp,
cache_max_entry_count=0.6)
zhulinJulia24 marked this conversation as resolved.
Show resolved Hide resolved

if 'llava' in model_case:
backend_config.model_name = 'vicuna'
Expand Down Expand Up @@ -341,7 +342,7 @@ def run_pipeline_vl_chat_test(config,
])
file.writelines(log_string)
print(log_string)
response = pipe((prompt, image), gen_config)
response = pipe((prompt, image))
result = 'tiger' in response.text.lower() or '虎' in response.text.lower()
file.writelines('result:' + str(result) +
', reason: simple example tiger not in ' + response.text +
Expand All @@ -368,7 +369,7 @@ def run_pipeline_vl_chat_test(config,

image_urls = [f'{resource_path}/{PIC2}', f'{resource_path}/{PIC1}']
images = [load_image(img_url) for img_url in image_urls]
response = pipe((prompt, images), gen_config)
response = pipe((prompt, images))
result = 'tiger' in response.text.lower() or 'ski' in response.text.lower(
) or '虎' in response.text.lower() or '滑雪' in response.text.lower()
file.writelines('result:' + str(result) +
Expand Down
Loading