Skip to content

Add Music Flamingo and SpotSound LoRA support - #1107

Merged
0xShug0 merged 1 commit into
mainfrom
feature/music-flamingo
Oct 27, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/music-flamingo

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Adds Music Flamingo 2601 to the existing audio_flamingo family and supports matching PEFT LoRA adapters, including SpotSound temporal grounding.

  • Read the checkpoint's system prompt from its packaged chat template so Music Flamingo uses its own conditioning. Existing AF3 and Next embedded prompts match the previous hardcoded text exactly.
  • Load adapters through the shared LoRA subsystem using audio_flamingo.lora and audio_flamingo.lora_scale.
  • Add opt-in template_name=temporal_grounding for SpotSound's timestamp-interleaved audio tokens and upstream event-query prompt. Ordinary requests retain the default layout.
  • Register the Music Flamingo Q8 package, enable LoRA export bindings, and update specs, usage, routing, and license documentation.

Changes stay within Audio Flamingo and its LoRA export registration; no framework, GGML, server, or UI changes.

Validation

  • Debug build, model_spec_system_test, and 17 existing Python LoRA tests passed. All 196 SpotSound adapter target pairs bind successfully.
  • Converted Music Flamingo to Q8 only. The self-contained GGUF loads with its embedded spec and produces a coherent description of the official music example.
  • Existing AF3 transcription without an adapter is byte-identical to the pre-change baseline. Inspected all six existing AF3/Next GGUF variants: their embedded system prompts match the original code.
  • SpotSound CUDA inference, greedy decoding, compared against its Python reference:
Event query C++ interval Python interval
Ambulance siren 0–16.874 s 0–16.802 s
Train horn 0–3.970 s 0–3.970 s

The published annotations are 0–3.5 s and 0–4 s respectively: the ambulance overestimate also occurs in Python. These checks establish usable grounding and close reference behavior, not general boundary accuracy. A fractional-second input also completes successfully, exercising feature truncation.

Runtime checks were on CUDA; CPU and Vulkan inference were not tested.

@0xShug0
0xShug0 merged commit b0b8c22 into main Oct 27, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/music-flamingo branch October 27, 2026 01:55
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