Files
hao-ai-lab-FastVideo/fastvideo
Raghav e19cc78271 [bugfix] nvfp4: reject non-float inputs, extract dtype coercion + test
Address review feedback on the fp32-cast: instead of silently casting any
non-bf16/fp16 dtype (which would also accept int/bool), reject non-floating
inputs fast with TypeError and only cast floating dtypes (fp32/fp64) to bf16.

Extract the logic into a module-level _coerce_fp4_input_dtype() shared by
quantize_input() and apply(), and add a CPU-only unit test (no flashinfer/CUDA)
covering bf16/fp16 passthrough, fp32/fp64 -> bf16, and int/bool rejection.
2026-07-05 13:11:11 -07:00
..
2026-06-09 14:55:55 -07:00
2026-06-09 14:55:55 -07:00
2026-06-04 14:22:49 -07:00