mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
* free imported model definitions after rename and removal * silence test-only lints on linux The new state-machine tests keep macOS-only helpers and imports; clippy on Linux denies them as unused, and one test cloned a selection only to compare it. * borrow the model definition on macOS-only paths Meeting audio import and Parakeet's macOS load path still passed the ModelRef by value to model_path, is_installed, and validate_gguf_artifact. * address review nits on the imported model definitions Track every rename build with its own Weak, restore the moved doc comments verbatim, name the new registry tests in the feature map, and use is_gguf for the plain runtime checks.
316 lines
16 KiB
Rust
316 lines
16 KiB
Rust
//! The catalog's pinned model files and the language lists its entries share.
|
||
|
||
use std::borrow::Cow;
|
||
|
||
use super::definitions::GgufArtifact;
|
||
|
||
pub(super) const PARAKEET_V3_LANGUAGES: &[&str] = &[
|
||
"bg", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "hu", "it", "lv", "lt", "mt",
|
||
"pl", "pt", "ro", "ru", "sk", "sl", "es", "sv", "uk",
|
||
];
|
||
pub(super) const QWEN_LANGUAGES: &[&str] = &[
|
||
"zh", "en", "yue", "ar", "de", "fr", "es", "pt", "id", "it", "ko", "ru", "th", "vi", "ja",
|
||
"tr", "hi", "ms", "nl", "sv", "da", "fi", "pl", "cs", "fil", "fa", "el", "ro", "hu", "mk",
|
||
];
|
||
pub(super) const COHERE_LANGUAGES: &[&str] = &[
|
||
"en", "fr", "de", "es", "it", "pt", "nl", "pl", "el", "ar", "ja", "zh", "vi", "ko",
|
||
];
|
||
|
||
pub(super) const PARAKEET_V2_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("parakeet-tdt-0.6b-v2-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "07cee0616125a08ef619729bb47f40ef747e4bc4",
|
||
repository: "handy-computer/parakeet-tdt-0.6b-v2-gguf",
|
||
bytes: 729_574_912,
|
||
sha256: Cow::Borrowed("f0d0e99cebb6d3b83f1f7069b82b5d3c2e39a54545b0da039cb4bafd9c4e5caa"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-v2"),
|
||
};
|
||
pub(super) const PARAKEET_UNIFIED_ENGLISH_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("parakeet-unified-en-0.6b-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "7e948f21b7bdbac698d3318db9d350f1096f3b6c",
|
||
repository: "handy-computer/parakeet-unified-en-0.6b-gguf",
|
||
bytes: 731_357_568,
|
||
sha256: Cow::Borrowed("4b50b6dd862bf6e346929aaf4f5eaacec003bfa3f56462d6c874b41ef2f38795"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("unified-en-0.6b"),
|
||
};
|
||
pub(super) const PARAKEET_V3_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("parakeet-tdt-0.6b-v3-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "85ac09ea12fc4b1112fa76810059364bc6adc9de",
|
||
repository: "handy-computer/parakeet-tdt-0.6b-v3-gguf",
|
||
bytes: 739_508_576,
|
||
sha256: Cow::Borrowed("5859f77944efcd8eafa23a6350731960b2b55b2203df51f319665c807d802cc7"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-v3"),
|
||
};
|
||
// Oruk AI's Orukeet (CC-BY-SA-4.0), a Parakeet TDT 0.6B v3 fine-tune with
|
||
// frozen fitted Gabor kernels in half the encoder's temporal depthwise
|
||
// filters, trained on multilingual and multi-accent data. handy-computer
|
||
// converted oruk/orukeet at b59c13a to GGUF for transcribe.cpp and quantized
|
||
// it to Q8_0; the file needs no Gabor-specific runtime because the export
|
||
// materializes the fitted taps as ordinary convolution weights.
|
||
pub(super) const ORUKEET_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("orukeet-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "c5511a3850fce1cbbfa5d94ef815966e1d99275f",
|
||
repository: "handy-computer/orukeet-gguf",
|
||
bytes: 739_508_704,
|
||
sha256: Cow::Borrowed("68cd64b2a6c3c747f0a9f109884ed75b277c266c0fb8e5888c5a9f4d824fb9f7"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-orukeet"),
|
||
};
|
||
// FluidVoice's Fluid Speech Pro (CC-BY-4.0), a Parakeet TDT 0.6B v3 retrain
|
||
// that also declares Moondream's Parakeet Ultra as a base. It adds one block
|
||
// between the encoder's subsampling and its first Conformer layer, which its
|
||
// file announces as `stt.parakeet.encoder.pre_block_kernel` (15, dim 1024).
|
||
// TalkMate converted FluidVoice-Labs/fluid-speech-pro to GGUF for
|
||
// transcribe.cpp and quantized it to Q8_0; a transcribe.cpp built without
|
||
// pre-block support loads the file without that block and transcribes worse.
|
||
pub(super) const FLUID_SPEECH_PRO_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("fluid-speech-pro-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "d59dc79f7e04715c5b0ba07f01106f71ebea97dc",
|
||
repository: "TalkMate/fluid-speech-pro-gguf",
|
||
bytes: 741_819_456,
|
||
sha256: Cow::Borrowed("c3848e98e1c54add4ff425e183b1f8cdb2a54ba6d576d08b07a07855634d693c"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-fluid-speech-pro"),
|
||
};
|
||
pub(super) const WHISPER_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("whisper-large-v3-turbo-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "d222c9f621c1128299248f2ded4d8a1820519780",
|
||
repository: "handy-computer/whisper-large-v3-turbo-gguf",
|
||
bytes: 886_381_824,
|
||
sha256: Cow::Borrowed("d5e65f2b0828802ae2c231673d31982cebe3a778c95d9494a9f3efee6bd17448"),
|
||
architecture: "whisper",
|
||
variant: Cow::Borrowed("whisper-large-v3-turbo"),
|
||
};
|
||
pub(super) const QWEN_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("Qwen3-ASR-0.6B-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "e4e16599b900eb0cb36e524514756bb92eb092b7",
|
||
repository: "handy-computer/Qwen3-ASR-0.6B-gguf",
|
||
bytes: 850_423_456,
|
||
sha256: Cow::Borrowed("f081b2d5e23bd669d92cc331d722a8a0681943b8e6f34b48996fd5c319b5acd8"),
|
||
architecture: "qwen3_asr",
|
||
variant: Cow::Borrowed("qwen3-asr-0.6b"),
|
||
};
|
||
// Mohammed Aly's Qwen3-ASR 1.7B fine-tune for Egyptian Arabic and
|
||
// Arabic/English code-switching (Apache-2.0), from mohammedaly22/QwenCleo-ASR
|
||
// at 50f6b901. Converted with transcribe.cpp 7045d1c's Qwen3-ASR converter,
|
||
// with the fine-tune's attribution in `general.*`, and quantized to Q8_0;
|
||
// rebuilding it that way reproduces this file byte for byte.
|
||
pub(super) const QWENCLEO_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("QwenCleo-ASR-1.7B-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "08c66976a0496e1e3f1a88965eea123631e634fa",
|
||
repository: "reomar15/QwenCleo-ASR-transcribe-cpp-GGUF",
|
||
bytes: 2_185_030_816,
|
||
sha256: Cow::Borrowed("43bae9d5d7a26684b4a0faf1abc6e872b5825cc9147dbb7200da9ff4c5d12f87"),
|
||
architecture: "qwen3_asr",
|
||
variant: Cow::Borrowed("qwen3-asr-1.7b"),
|
||
};
|
||
// ivrit.ai's Hebrew fine-tune of Whisper large-v3-turbo (Apache-2.0), from
|
||
// ivrit-ai/whisper-large-v3-turbo at f33172a8. Converted with transcribe.cpp
|
||
// 7045d1c's Whisper converter, with the variant's display name added
|
||
// (`ivrit.ai Whisper Large v3 Turbo`; author and repository come from the
|
||
// source), and quantized to Q8_0; rebuilding it that way reproduces this
|
||
// file byte for byte.
|
||
pub(super) const IVRIT_WHISPER_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("ivrit-whisper-large-v3-turbo-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "a12befaff80add995ac6a8fe10cbb7f38438c7b5",
|
||
repository: "adolan/ivrit-whisper-large-v3-turbo-gguf",
|
||
bytes: 886_381_536,
|
||
sha256: Cow::Borrowed("23756afa3d3c52cd3cb55e259c8373373eba6d19c3858a67531ba2772b7f272f"),
|
||
architecture: "whisper",
|
||
variant: Cow::Borrowed("ivrit-whisper-large-v3-turbo"),
|
||
};
|
||
pub(super) const SENSEVOICE_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("SenseVoiceSmall-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "4a08b8e900b38a977e32eb08d5d0697d6e72ba04",
|
||
repository: "handy-computer/SenseVoiceSmall-gguf",
|
||
bytes: 252_684_608,
|
||
sha256: Cow::Borrowed("6c759ee4c9748c9b3f7a5a60ca74f0f7e685fb9d45d1378fce7cfd62f59adf29"),
|
||
architecture: "sensevoice",
|
||
variant: Cow::Borrowed("sensevoice-small"),
|
||
};
|
||
pub(super) const COHERE_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("cohere-transcribe-03-2026-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "dfa4adebb64f3076b7b6b90b721275cc069cb421",
|
||
repository: "handy-computer/cohere-transcribe-03-2026-gguf",
|
||
bytes: 2_410_655_232,
|
||
sha256: Cow::Borrowed("931916663432fd895423a4291a8400221802b288967ca2d435fc5e3141c9e71e"),
|
||
architecture: "cohere_asr",
|
||
variant: Cow::Borrowed("cohere-transcribe-03-2026"),
|
||
};
|
||
// Conway Research's Parakeet TDT v3 fine-tunes (CC-BY-4.0), converted to
|
||
// Q8_0 with transcribe.cpp's Parakeet converter; each repository holds the
|
||
// recipe.
|
||
pub(super) const UNDERDOG_BARK_3_PRO_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("underdog-bark-3.0-pro-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "5c10586263806666c0a8b4905a3346a7c679803e",
|
||
repository: "joshthomasdev/underdog-bark-3.0-pro-gguf",
|
||
bytes: 739_508_480,
|
||
sha256: Cow::Borrowed("472d151cc1546bd30629c4c25df3a8e555e8990845843ddafe76800c640e9865"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-bark-3.0-pro"),
|
||
};
|
||
pub(super) const UNDERDOG_BARK_3_CLEAN_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("underdog-bark-3.0-clean-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "868701fd53d62c59d759ed1d79e095118f3fa7b9",
|
||
repository: "joshthomasdev/underdog-bark-3.0-clean-gguf",
|
||
bytes: 739_508_480,
|
||
sha256: Cow::Borrowed("42ec2f70a3d14842e322391baf5186b2829f271cc7e396aed25580135ae46fae"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-bark-3.0-clean"),
|
||
};
|
||
// Moondream's Parakeet Ultra, a post-trained Parakeet TDT 0.6B v3
|
||
// (CC-BY-4.0), converted to GGUF and quantized to Q8_0 by handy-computer
|
||
// (430 F32, 225 Q8_0, and 48 F16 tensors). Behind Labs › Parakeet Ultra.
|
||
pub(super) const PARAKEET_ULTRA_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("parakeet-ultra-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "a1539be1b849ea7463b88343e5277b373d0c4ea9",
|
||
repository: "handy-computer/parakeet-ultra-gguf",
|
||
bytes: 740_363_168,
|
||
sha256: Cow::Borrowed("007a59761e9258779f189df396b50d12b83bb5b79e66df4b955c230d2f2a0a59"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("tdt-0.6b-ultra"),
|
||
};
|
||
// NVIDIA's Nemotron 3.5 ASR Streaming 0.6B (OpenMDW-1.1), a cache-aware
|
||
// FastConformer with a language-prompted RNN-T. Hex converted
|
||
// nvidia/nemotron-3.5-asr-streaming-0.6b at 24b151a (the .nemo,
|
||
// 210214ed…) with transcribe.cpp 7045d1c's Parakeet converter and quantized
|
||
// it to Q8_0: all 653 tensors match this file byte for byte, and the
|
||
// metadata differs only by two capability flags the newer converter writes
|
||
// as false (translate, diarization). The pinned file is handy-computer's,
|
||
// which ships the licence and notice beside it.
|
||
pub(super) const NEMOTRON_3_5_ASR_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("nemotron-3.5-asr-streaming-0.6b-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "53ce288f69326b415aeef030cfcb02a08a8096dd",
|
||
repository: "handy-computer/nemotron-3.5-asr-streaming-0.6b-gguf",
|
||
bytes: 751_094_240,
|
||
sha256: Cow::Borrowed("b94545b313b3223fda7b2857a52681da813935c2127643d1e9ff0c23d988089c"),
|
||
architecture: "parakeet",
|
||
variant: Cow::Borrowed("nemotron-3.5-asr-streaming-0.6b"),
|
||
};
|
||
// ai-sage's GigaAM v3 e2e RNN-T (MIT), Russian only, cased and punctuated.
|
||
// Hex converted the `v3_e2e_rnnt` checkpoint that salute-developers/GigaAM
|
||
// at 6e4b027c downloads and checks (MD5 2730de75…) with transcribe.cpp
|
||
// 7045d1c's GigaAM converter and quantized it to Q8_0: all 560 tensors
|
||
// match this file byte for byte, and the metadata differs only by four
|
||
// capability flags the newer converter writes as false. The pinned file is
|
||
// handy-computer's (from ai-sage/GigaAM-v3 at ec1dc1f), which ships the
|
||
// licence and notice beside it.
|
||
pub(super) const GIGAAM_V3_E2E_RNNT_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("gigaam-v3-e2e-rnnt-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "3efd5b39882ceadca5570a8fb9fa1a2c801d6d6d",
|
||
repository: "handy-computer/gigaam-v3-e2e-rnnt-gguf",
|
||
bytes: 273_724_832,
|
||
sha256: Cow::Borrowed("78d63b47723b7f8d78c6113a6ef983b5a86e2a86f6c273e1f5cb6967b1c4467a"),
|
||
architecture: "gigaam",
|
||
variant: Cow::Borrowed("gigaam-v3-e2e-rnnt"),
|
||
};
|
||
// The National Library of Norway's NB-Whisper Medium (Apache-2.0), a
|
||
// Whisper medium fine-tune for Norwegian: NbAiLab's own whisper.cpp Q5_0
|
||
// file at nb-whisper-medium 0ed074d5, which transcribe.cpp loads as Whisper.
|
||
// Hex also converted the same revision's weights with transcribe.cpp
|
||
// 7045d1c's Whisper converter at Q8_0 (832 MB): it scored 6.75% on FLEURS
|
||
// Norwegian against this file's 6.68%, so the authors' smaller file stays.
|
||
pub(super) const NB_WHISPER_MEDIUM_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("ggml-model-q5_0.bin"),
|
||
stored_as: None,
|
||
revision: "0ed074d5985bd56ca4140159a9dbffbc3fb5117e",
|
||
repository: "NbAiLab/nb-whisper-medium",
|
||
bytes: 539_212_484,
|
||
sha256: Cow::Borrowed("18733de634af639a43b0f8c5f5a2ea0920de4c5b32a5570ec130981581c0e5e7"),
|
||
architecture: "whisper",
|
||
// transcribe.cpp names a legacy Whisper file by its geometry.
|
||
variant: Cow::Borrowed("whisper-medium"),
|
||
};
|
||
// The National Library of Sweden's KB-Whisper Medium (Apache-2.0), a
|
||
// Whisper medium fine-tune trained on Swedish speech: KBLab's own
|
||
// whisper.cpp Q5_0 file at kb-whisper-medium 0abe10b9, which transcribe.cpp
|
||
// loads as Whisper. The GGML files were uploaded at fcfa0af8 from the
|
||
// repository's standard stage-2 weights and were carried unchanged into the
|
||
// later `strict` tag, which replaced only model.safetensors, so the card's
|
||
// default-checkpoint figures apply. Its file is also called
|
||
// `ggml-model-q5_0.bin`, the same as NbAiLab's Norwegian file at exactly the
|
||
// same size, so Hex stores its copy under `stored_as` instead.
|
||
pub(super) const KB_WHISPER_MEDIUM_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("ggml-model-q5_0.bin"),
|
||
stored_as: Some("kb-whisper-medium-q5_0.bin"),
|
||
revision: "0abe10b9d7f75d0902656e5c06c5c4d549604dc5",
|
||
repository: "KBLab/kb-whisper-medium",
|
||
bytes: 539_212_484,
|
||
sha256: Cow::Borrowed("7f8762e0ade9e0073674c0d5acae942a0b1ea98add9baa008ee89c94eaba43d0"),
|
||
architecture: "whisper",
|
||
// transcribe.cpp names a legacy Whisper file by its geometry.
|
||
variant: Cow::Borrowed("whisper-medium"),
|
||
};
|
||
// IBM's Granite Speech 5.0 470M TurboCTC (Apache-2.0), the multilingual,
|
||
// cased and punctuated release at ibm-granite 1dd23f46 (handy-computer's
|
||
// file is the earlier English-only, lowercase checkpoint). Hex converted it
|
||
// with transcribe.cpp 7045d1c's Granite 5 converter, patched only to accept
|
||
// the release's missing legacy `preprocessor_config.json` and to list its
|
||
// seven languages, and quantized it to Q8_0: the result matches this file
|
||
// byte for byte. The pinned file is 17slever17's, which ships the licence
|
||
// and notice beside it.
|
||
pub(super) const GRANITE_SPEECH_5_ARTIFACT: GgufArtifact = GgufArtifact {
|
||
filename: Cow::Borrowed("granite-speech-5.0-470m-turboctc-multilingual-Q8_0.gguf"),
|
||
stored_as: None,
|
||
revision: "62f64d9d5ad35989b06caf199cafe7155944a22b",
|
||
repository: "17slever17/granite-speech-5.0-470m-turboctc-multilingual-GGUF",
|
||
bytes: 505_663_136,
|
||
sha256: Cow::Borrowed("f3efdc05b85b3a764bb5bb7022e69f61cafcecc11605c881c6396a6ed07ec91b"),
|
||
architecture: "granite_speech5_ctc",
|
||
variant: Cow::Borrowed("granite-speech-5.0-470m-turboctc"),
|
||
};
|
||
pub(super) const GRANITE_SPEECH_5_LANGUAGES: &[&str] = &["en", "fr", "de", "es", "pt", "it", "ja"];
|
||
/// The languages Nemotron 3.5 transcribes that Hex names, as the locales
|
||
/// its language prompt takes (`runtime_language`). Its card also lists
|
||
/// Norwegian Bokmål, which Hex doesn't offer it for yet.
|
||
pub(super) const NEMOTRON_3_5_LOCALES: &[(&str, &str)] = &[
|
||
("en", "en-US"),
|
||
("es", "es-ES"),
|
||
("fr", "fr-FR"),
|
||
("de", "de-DE"),
|
||
("it", "it-IT"),
|
||
("pt", "pt-BR"),
|
||
("nl", "nl-NL"),
|
||
("tr", "tr-TR"),
|
||
("ru", "ru-RU"),
|
||
("uk", "uk-UA"),
|
||
("pl", "pl-PL"),
|
||
("cs", "cs-CZ"),
|
||
("sk", "sk-SK"),
|
||
("bg", "bg-BG"),
|
||
("hr", "hr-HR"),
|
||
("ro", "ro-RO"),
|
||
("hu", "hu-HU"),
|
||
("sv", "sv-SE"),
|
||
("da", "da-DK"),
|
||
("fi", "fi-FI"),
|
||
("et", "et-EE"),
|
||
("ar", "ar-AR"),
|
||
("hi", "hi-IN"),
|
||
("ja", "ja-JP"),
|
||
("ko", "ko-KR"),
|
||
("zh", "zh-CN"),
|
||
("vi", "vi-VN"),
|
||
];
|
||
pub(super) const NEMOTRON_3_5_LANGUAGES: &[&str] = &[
|
||
"en", "es", "fr", "de", "it", "pt", "nl", "tr", "ru", "uk", "pl", "cs", "sk", "bg", "hr", "ro",
|
||
"hu", "sv", "da", "fi", "et", "ar", "hi", "ja", "ko", "zh", "vi",
|
||
];
|