Skip to content

Using the endpoint parameter in Whisperkit and downloading CoreML and tokenizer#396

Open
lemo366 wants to merge 3 commits intoargmaxinc:release/v0.14.1from
lemo366:whisperkit-endpoint-v2
Open

Using the endpoint parameter in Whisperkit and downloading CoreML and tokenizer#396
lemo366 wants to merge 3 commits intoargmaxinc:release/v0.14.1from
lemo366:whisperkit-endpoint-v2

Conversation

@lemo366
Copy link

@lemo366 lemo366 commented Jan 10, 2026

Allows users to specify the endpoint via parameters when initializing WhisperKit, thus enabling the download of CoreML models and tokenizers from domestic mirror sites (such as hf-mirror.com).

let endpoints = "https://hf-mirror.com"
let whisperkit = try await WhisperKit(
      model: modelName,
      verbose: true,
      logLevel: .info, 
      prewarm: true,
      load: true,
      download: true,
      endpoint: endpoint
)

@lemo366 lemo366 changed the base branch from main to release/v0.14.1 January 10, 2026 15:40
@ZachNagengast
Copy link
Contributor

Thanks @lemo366 this looks great! Do the unit tests pass with hf-mirror as the default? Might be worth including at least one test that uses hf-mirror as the endpoint for a simple download.

Co-authored-by: Zach Nagengast <zacharynagengast@gmail.com>
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.

2 participants