Skip to content

Voxtral ASR Pipeline Integration Broken in 4.57.3 #42656

@juzhxng

Description

@juzhxng

System Info

  • transformers version: 4.57.3
  • Platform: Linux-6.1.0-31-amd64-x86_64-with-glibc2.36
  • Python version: 3.12.9
  • Huggingface_hub version: 0.36.0
  • Safetensors version: 0.7.0
  • Accelerate version: 1.12.0
  • Accelerate config: not found
  • DeepSpeed version: not installed
  • PyTorch version (accelerator?): 2.9.1+cu128 (CUDA)
  • Tensorflow version (GPU?): not installed (NA)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using distributed or parallel set-up in script?: no
  • Using GPU in script?: yes
  • GPU type: NVIDIA A100 80GB PCIe

Who can help?

@Rocketknight1 @ebezzam

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

from transformers import pipeline

asr = pipeline(
    "automatic-speech-recognition",
    model="mistralai/Voxtral-Mini-3B-2507"
)
from transformers import VoxtralForConditionalGeneration, VoxtralProcessor, pipeline

model = VoxtralForConditionalGeneration.from_pretrained("mistralai/Voxtral-Mini-3B-2507")
processor = VoxtralProcessor.from_pretrained("mistralai/Voxtral-Mini-3B-2507")

asr = pipeline(
    "automatic-speech-recognition",
    model=model,
    tokenizer=processor.tokenizer,
    feature_extractor=processor.feature_extractor,
)

result = asr("example.wav")

Expected behavior

The automatic-speech-recognition pipeline should seamlessly handle mistralai/Voxtral models by:

  1. The tokenizer should accept standard pipeline arguments (like _from_pipeline) without raising a ValueError
  2. The pipeline should automatically generate the required request and the corresponding input_ids

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions