Stabilize Higgs Audio termination and prefill#141
Open
LiangSu8899 wants to merge 6 commits into
Open
Conversation
…d-prefill-eoc # Conflicts: # CMakeLists.txt # tests/test_build_inventory.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FLASHRT_ENABLE_AUDIO_CODEBOOKso source, binding, and required-symbol checks stay in lockstep.Root cause
The 40 s output cap was not a BF16 fallback issue. There were two related termination failures:
The FP8 fix avoids first-request scale sensitivity and keeps a bounded deterministic termination guard for repeated code loops. Normal EOC termination remains unchanged.
Performance
Same single-stream Higgs benchmark setup as the docs.
Four score.output durationKnown FP8 startup-order regressions were checked with first requests
Four score.,Four years ago.,Hello from FlashRT., and the benchmark sentence; all subsequentFour score./Four years ago.runs terminate normally.The remaining
torchmatmul/embedding/argmax grep hits are limited to the one-time FP8 calibration reference path, not the BF16/FP8 request prefill/decode hot path.Validation
cmake -S . -B build -DGPU_ARCH=120 -DFLASHRT_ENABLE_AUDIO_CODEBOOK=ONcmake --build build --target flash_rt_kernels -j$(nproc)pytest -q tests/test_higgs_audio_v3_eoc.py tests/test_build_inventory.py tests/test_generic_kernel_bindings.pyFLASHRT_BUILD_DIR=build-sm89-inventory pytest -q tests/test_build_inventory.pyFLASHRT_BUILD_DIR=build-sm89-slim-inventory pytest -q tests/test_build_inventory.pyFLASHRT_BUILD_DIR=build-sm89-audio-off-inventory pytest -q tests/test_build_inventory.pypython -m py_compile flash_rt/frontends/torch/_higgs_audio_v3_fp8.py flash_rt/frontends/torch/_higgs_audio_v3_bf16.py flash_rt/frontends/torch/higgs_audio_v3_rtx.pygit diff --checkFour score.,Four years ago., and the documented benchmark sentence