1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// arch/whisper/bin_load.h - legacy whisper.cpp .bin adapter. INTERNAL,
// consumed by transcribe.cpp (magic-byte dispatch) and bin_load.cpp.
//
// The .bin parser (transcribe-bin-loader.{h,cpp}) is architecture-neutral.
// This module is the whisper-specific bridge: it consumes a parsed
// WhisperBinModel, synthesizes hparams/capabilities/special-tokens/languages,
// populates the Tokenizer, builds ctx_meta with canonical-named tensors, and
// streams tensor bytes into the allocated slots. The resulting
// transcribe_model* is indistinguishable from the GGUF whisper_load path.
namespace transcribe::whisper // namespace transcribe::whisper