Run this model with HF Jobs

Run espnet/bagpiper-sft on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/espnet/bagpiper-sft. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/espnet/bagpiper-sft on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Bagpiper SFT

Bagpiper is an 8B audio foundation model for open-ended audio understanding and generation through rich captions. It accepts text and audio and can return text or generate speech, music, environmental sounds, and mixtures of them.

This repository contains the general-SFT checkpoint from Bagpiper: Solving Open-Ended Audio Tasks via Rich Captions: run opuslm_v2_stage3_sft_qwen3_combine_v2_3node, step 272500, fine-tuned from the stage-2 pretrained base at step 260000 (espnet/bagpiper).

Erratum (2026-11-30). Until revision 2f7e32ff163595b9d2c13b9e5275ab4a4d68a750, model.pt in this repository was by mistake a stage-2 pretrain checkpoint (step 270000), not the SFT model. It only produced captions, without the caption β†’ reasoning β†’ answer output described below. The file has been replaced with the SFT checkpoint. If you downloaded model.pt before 2026-11-30, download it again and check its SHA-256 against SHA256SUMS.

Files and format

  • model.pt: native ESPnet weight-only checkpoint, stored as {"module": state_dict}.
  • train_stage3_qwen3_base.yaml: checkpoint-compatible model configuration, named consistently with the pre-trained espnet/bagpiper release.
  • config.yaml: identical copy of train_stage3_qwen3_base.yaml under the standard configuration filename.
  • inference_text.yaml: audio-understanding/text-output decoding.
  • inference_audio.yaml: text-then-audio generation decoding.
  • MANIFEST.json and SHA256SUMS: provenance and integrity records.

model.pt contains 1,382 tensors: the 1,381 BF16 tensors from training plus the deterministically reconstructed FP32 vocab_weight buffer required by the current strict ESPnet loader. It contains no optimizer or exact-resume state. It is not a Transformers from_pretrained directory and no vLLM compatibility is claimed.

Both inference configs allow up to 8192 text tokens (text.max_step), as in the SFT recipe's inference_sft.yaml. The reasoning before the answer is often longer than 2048 tokens.

Download

hf download espnet/bagpiper-sft --local-dir bagpiper-sft
(cd bagpiper-sft && sha256sum -c SHA256SUMS)

ESPnet runtime

Use ESPnet PR #6503, commit 1992821bfb6d68c6636d1b75340b8b2b591bc015:

git clone --branch titan-pt-weightonly-init https://github.com/jctian98/espnet.git
cd espnet
git checkout 1992821bfb6d68c6636d1b75340b8b2b591bc015
python -m pip install -e '.[speechlm]'
python -m pip install --no-build-isolation \
  'flash-attn-3 @ git+https://github.com/Dao-AILab/flash-attention.git@77aacb68d194ba9af1010eda5eac3e7c0df8e6f6#subdirectory=hopper'

Use espnet2/speechlm/bin/inference.py with config.yaml, one of the supplied inference YAMLs, and model.pt. Training backend configuration belongs to the ESPnet recipe and is not duplicated in this model repository.

Prompt format for multiple-choice audio QA (MMAU-style)

The SFT data for multiple-choice questions uses a system prompt, the audio, and the question with its options. Use the same format at inference; without the system prompt the model often returns only a caption.

[["system", "text", "You are an expert audio understanding assistant. You will be given an audio clip, a question related to the audio's details, and four options. Your task is to choose the correct option. For every request, start by generating a detailed caption that describes the audio and includes some details related to the question. Then provide a thinking trace of getting the correct answer. Finally, print the correct option."],
 ["user", "audio", "/path/to/audio.wav"],
 ["user", "text", "question: <question>\n Options: <option 1>; <option 2>; <option 3>; <option 4>"]]

The model answers in the form Caption of this audio: ... β†’ <think> ... </think> β†’ Based on this analysis, the correct option is: <option>. For string-match scoring (as in MMAU's official script), score only the text after the correct option is:; the fixed prefix otherwise collides with words in the distractors.

Paper-reported results

These values are from the paper's checkpoint and evaluation protocols; they were not rerun as part of the Hub upload.

Evaluation Result
LibriSpeech test-clean WER 2.5
MMAU-Mini 74.5
MMAU 73.1
MMAR 57.0
AIR-Bench chat 6.57
AudioBench aggregate 70.39
General-model TTS WER 2.7

The paper reports audio-fingerprint overlap between the SFT pool and 12.8% of AudioBench and 3.2% of AIR-Bench evaluation clips. Interpret those results with this disclosure.

Provenance and validation

  • Selected checkpoint: opuslm_v2_stage3_sft_qwen3_combine_v2_3node/checkpoints/step_272500/global_step272488.
  • Raw source: DeepSpeed mp_rank_00_model_states.pt from the training run, SHA-256 61fd6412521ffcb050d0987b37e3c533e9a1517cfeaa0c500c3ddc5182caa740 (mirrored at wanghaor/transfer, path ckpt/v2/opuslm_v2_stage3_sft_qwen3_combine_v2_3node/step_272500/global_step272488/mp_rank_00_model_states.pt).
  • model.pt SHA-256: 31bdff98a21fb055cc7b37a1b792f6cee2be68a1e215b5699be0d2f461bd2148.
  • All 1,381 source tensors are bit-identical in the converted file (torch.equal); the only added key is vocab_weight, which is determined by the configuration.
  • The 1,382-entry state dict passes the strict ESPnet inference loader at the commit above (checked on 2026-11-30 on an NVIDIA GH200 with PyTorch 2.7.0, Transformers 4.57.1 and FlashAttention-3).
  • Smoke test (not a benchmark result): on 24 MMAU test-mini questions (8 sound, 8 music, 8 speech) with the prompt format above and inference_text.yaml (8192 text tokens), every output followed the caption β†’ reasoning β†’ answer format, and 19 of 24 answers were correct.

Limitations and responsible use

Understanding can hallucinate or mistranscribe. Generated audio can contain artifacts, wrong words, unsafe content, or unintended resemblance to people and styles. Most reported evaluations are English and some rely on model judges. The model has no built-in watermark, factuality verifier, copyright filter, or speaker-consent check. Do not use it for impersonation, deceptive media, surveillance, biometric authentication, or high-stakes automated decisions.

Training-data availability and terms are documented at Bagpiper SFT Data. Third-party component terms are listed in THIRD_PARTY_NOTICES.md.

Citation

@inproceedings{anonymous2026bagpiper,
  title={Bagpiper: Solving Open-Ended Audio Tasks via Rich Captions},
  author={Jinchuan Tian and Haoran Wang and Bo-Hao Su and Chien-yu Huang and
          Qingzheng Wang and Jiatong Shi and William Chen and Xun Gong and
          Siddhant Arora and Chin-Jou Li and Masao Someki and Takashi Maekaku and
          Keita Goto and Yusuke Shinohara and Jin Sakuma and
          Chao-Han Huck Yang and Shinji Watanabe},
  booktitle={Third Conference on Language Modeling},
  year={2026},
  url={https://openreview.net/forum?id=FuHs64E3X6}
}
Downloads last month
41
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for espnet/bagpiper-sft

Finetuned
espnet/bagpiper
Finetuned
(2)
this model

Space using espnet/bagpiper-sft 1

Collection including espnet/bagpiper-sft