File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 100100 "allenai/OLMoE-1B-7B-0924-Instruct" ,
101101 marks = [pytest .mark .cpu_model ],
102102 ),
103- pytest .param ("swiss-ai/Apertus-8B-2509" ), # apertus
103+ pytest .param ("swiss-ai/Apertus-8B-Instruct- 2509" ), # apertus
104104 ],
105105)
106106@pytest .mark .parametrize ("max_tokens" , [32 ])
Original file line number Diff line number Diff line change 749749 max_num_seqs = 2 ,
750750 auto_cls = AutoModelForImageTextToText ,
751751 hf_output_post_proc = model_utils .smolvlm_trunc_hf_output ,
752+ num_logprobs = 10 ,
752753 ),
753754 "tarsier" : VLMTestInfo (
754755 models = ["omni-research/Tarsier-7b" ],
Original file line number Diff line number Diff line change @@ -45,14 +45,16 @@ def _run_test(
4545
4646 all_outputs = []
4747 for inputs in all_inputs :
48+ inputs = hf_model .wrap_device (inputs )
49+
4850 if "pixel_values" in inputs :
49- inputs .pop ("input_ids" )
5051 pooled_output = hf_model .model .get_image_features (
51- ** hf_model . wrap_device ( inputs )
52+ pixel_values = inputs . pixel_values ,
5253 ).squeeze (0 )
5354 else :
5455 pooled_output = hf_model .model .get_text_features (
55- ** hf_model .wrap_device (inputs )
56+ input_ids = inputs .input_ids ,
57+ attention_mask = inputs .attention_mask ,
5658 ).squeeze (0 )
5759
5860 all_outputs .append (pooled_output .tolist ())
Original file line number Diff line number Diff line change @@ -172,9 +172,8 @@ def check_available_online(
172172_TEXT_GENERATION_EXAMPLE_MODELS = {
173173 # [Decoder-only]
174174 "ApertusForCausalLM" : _HfExamplesInfo (
175- "swiss-ai/Apertus-8B-2509" ,
175+ "swiss-ai/Apertus-8B-Instruct- 2509" ,
176176 min_transformers_version = "4.56.0" ,
177- trust_remote_code = True ,
178177 ),
179178 "AquilaModel" : _HfExamplesInfo ("BAAI/AquilaChat-7B" , trust_remote_code = True ),
180179 "AquilaForCausalLM" : _HfExamplesInfo ("BAAI/AquilaChat2-7B" , trust_remote_code = True ),
You can’t perform that action at this time.
0 commit comments