Update test_hf_model.py

add_xcomposer_testcase
zhulinJulia24 2024-07-17 13:10:10 +08:00 committed by GitHub
parent 626f2c096f
commit 127808cada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ class TestXcomposer2d5Model:
'/mnt/petrelfs/qa-caif-cicd/github_runner/examples/screenshot.jpg'
]
with torch.autocast(device_type='cuda', dtype=torch.float16):
response = model.resume_2_webpage(query,
response = model.screen_2_webpage(query,
image,
seed=202,
repetition_penalty=3.0)