Skip to content

Remove logging-only tensor readbacks and complete session timing - #1240

Merged
0xShug0 merged 1 commit into
mainfrom
refactor/logging-cleanup
Nov 8, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
refactor/logging-cleanup

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Ordinary logging should not change inference graphs or download intermediate tensors. Remove logging-only tensor retention and readbacks from RVC synthesis, Audio8 reference encoding and XTTS-v2 conditioning. XTTS previously performed its diagnostic encoder readback even with logging disabled because the readback was evaluated before the logger checked its flag.

Also remove Higgs Audio’s redundant synchronization after an already-synchronous graph computation, and complete canonical session.wall_ms logging across model/utility families, reusing existing total timers where available. Streaming sessions measure from stream start through completion; Nemotron 3 diarization measures its shared batch execution path so single and batched requests are covered without duplicate totals. Kroko’s existing offline total is renamed to the canonical key; streaming relies on its shared ASR base’s existing total. Nemotron Transcribe reuses the same elapsed value for its existing result field and canonical log, preserving its measurement scope. Component timing logs remain unchanged.

All changes stay within model implementations. No framework logging, C API, backend kernels, weights, inference settings or public options change.

Validation:

  • Debug build passes for every touched model.
  • CUDA before/after comparison for RVC, Audio8 cloning and XTTS-v2, eight threads, with logging enabled. Each model receives a short input/reference, a longer one, then the first request again in the same loaded session: all nine resulting WAVs match their respective baselines exactly, with unchanged sample rates and lengths. Each repeated request also reproduces its first output exactly.
  • Audio8 streaming output matches the corresponding offline WAV exactly and emits its canonical session total.
  • Moonshine ASR and Nemotron 3 diarization both complete offline and streaming requests and emit one canonical session total per request/stream.
  • The remaining timing-only edits received build and source checks; no broad model benchmark campaign was run.

@0xShug0
0xShug0 force-pushed the refactor/logging-cleanup branch from 8dc94cd to f45ff2d Compare November 8, 2026 19:21
@0xShug0
0xShug0 merged commit 0e95877 into main Nov 8, 2026
7 checks passed
@0xShug0
0xShug0 deleted the refactor/logging-cleanup branch November 8, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant