Skip to content

Fix forced_decoder_ids parsing for HuggingFace generation config, and add SpeechTests target - #150

Merged
stikves merged 4 commits into
apple:mainfrom
stikves:sukru/fix-speech-decoder-ids
Aug 6, 2026
Merged

Fix forced_decoder_ids parsing for HuggingFace generation config, and add SpeechTests target#150
stikves merged 4 commits into
apple:mainfrom
stikves:sukru/fix-speech-decoder-ids

Conversation

@stikves

@stikves stikves commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The Hugging Face model config will have a nested array in JSON

For example:

"forced_decoder_ids": [
    [
      1,
      null
    ],
    [
      2,
      50360
    ]
  ],

(from https://huggingface.co/openai/whisper-large-v3/blob/main/generation_config.json)

@stikves
stikves force-pushed the sukru/fix-speech-decoder-ids branch from a992479 to ed7ebe4 Compare August 5, 2026 05:31
@stikves stikves self-assigned this Aug 5, 2026
@stikves stikves added the code health Improving the overall health of the codebase label Aug 5, 2026
@stikves
stikves requested a review from carinapeng August 5, 2026 16:00
@stikves
stikves marked this pull request as ready for review August 5, 2026 16:01
Comment thread Package.swift
@stikves stikves changed the title Fix forced_decoder_ids parsing for HuggingFace generation config Fix forced_decoder_ids parsing for HuggingFace generation config, and add SpeechTests target Aug 5, 2026
@stikves
stikves requested a review from kevchengcodes August 5, 2026 21:03
@stikves
stikves merged commit 2ee0327 into apple:main Aug 6, 2026
3 checks passed
@stikves
stikves deleted the sukru/fix-speech-decoder-ids branch August 6, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code health Improving the overall health of the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants