@@ -349,6 +349,15 @@ def get_parser_validate() -> ArgumentParser:
349349 python -m onnx_diagnostic validate -m microsoft/Phi-4-mini-reasoning \\
350350 --run -v 1 -o dump_test --no-quiet --repeat 2 --warmup 2 \\
351351 --dtype float16 --device cuda --export modelbuilder
352+
353+ position_ids is usually not needed, they can be removed by adding:
354+
355+ --drop position_ids
356+
357+ The behaviour may be modified compare the original configuration,
358+ the following argument can be rope_scaling to dynamic:
359+
360+ --mop \" rope_scaling={'rope_type': 'dynamic', 'factor': 10.0}\" "
352361 """
353362 ),
354363 formatter_class = RawTextHelpFormatter ,
@@ -403,10 +412,12 @@ def get_parser_validate() -> ArgumentParser:
403412 )
404413 parser .add_argument (
405414 "--inputs2" ,
406- default = True ,
407- action = BooleanOptionalAction ,
415+ default = 1 ,
416+ type = int ,
408417 help = "Validates the model on a second set of inputs\n "
409- "to check the exported model supports dynamism." ,
418+ "to check the exported model supports dynamism. The values is used "
419+ "as an increment to the first set of inputs. A high value may trick "
420+ "a different behavior in the model and missed by the exporter." ,
410421 )
411422 parser .add_argument (
412423 "--runtime" ,
@@ -422,7 +433,8 @@ def get_parser_validate() -> ArgumentParser:
422433 parser .add_argument (
423434 "--drop" ,
424435 help = "Drops the following inputs names, it should be a list\n "
425- "with comma separated values." ,
436+ "with comma separated values, example:\n "
437+ "--drop position_ids" ,
426438 )
427439 parser .add_argument (
428440 "--opset" ,
0 commit comments