neuralmagic / sparsify

ML model optimization product to accelerate inference.
Apache License 2.0
320 stars 29 forks source link

[run] add validation for optim level #262

Closed bfineran closed 1 year ago

bfineran commented 1 year ago

validation for the following rule: optim-level must be a float value between 0-1 or an integer value between 0-100

scales any integer 0-100 to the float range so the run pathways can always expect the 0-1 range

testing verified locally against variety of valid and invalid optim levels. also validated that optim-level 50 no longer breaks one-shot