Views
No views yet
The ASR prompt for Phi-4-Multimodal is “Transcribe the audio clip into text.”, which is language agnostic. We notice that the model can learn to recognize in the target language perfectly without providing language information, while Qwen2-audio and Gemini-2.0-Flash require the language information in the prompt to obtain the optimal ASR performance.
generation_config and processor from the base model as a quick fix to use the default generation settings.model.save_pretrained(), the processor configuration—including essential audio parameters—is not automatically saved. This omission can lead to errors during inference due to the model’s complex architecture. Loading these components from the base model ensures that all critical settings are properly included.1generation_config = GenerationConfig.from_pretrained(
2 'microsoft/Phi-4-multimodal-instruct', 'generation_config.json'
3)
4processor = AutoProcessor.from_pretrained(
5 'microsoft/Phi-4-multimodal-instruct', trust_remote_code=True
6)