Renumber spec 001 decision placeholders to D-040–D-051; record the Danish publication

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-30 01:47:27 +01:00
1 parent 30969e86b7
commit 0632f7843b
71 files changed
+244 -236

No files matched your search

+8 -8
View File
@@ -39,7 +39,7 @@ describe("MODELS catalog", () => {
"onnx-community/whisper-medium-ONNX",
"onnx-community/whisper-large-v3-turbo",
`${DANISH_MODELS_HF_OWNER}/whisper-small-danish-ONNX`,
// Not Whisper: the D-WS7a Parakeet engine path, last so it never
// Not Whisper: the D-051 Parakeet engine path, last so it never
// becomes anyone's accidental default.
"ysdede/parakeet-tdt-0.6b-v3-onnx",
]);
@@ -80,7 +80,7 @@ describe("MODELS catalog", () => {
});
test("every Whisper model maps to a faster-whisper name for the server engine (D-013)", () => {
// The Danish conversions (D-WS6a) have no faster-whisper alias; their
// The Danish conversions (D-046) have no faster-whisper alias; their
// server-engine name is a Hub repo id — covered by the Danish suite below.
for (const model of WHISPER_MODELS.filter((m) => !m.id.startsWith(`${DANISH_MODELS_HF_OWNER}/`))) {
// The onnx-community ids and faster-whisper's aliases share the same
@@ -98,7 +98,7 @@ describe("MODELS catalog", () => {
});
});
describe("Danish fine-tune conversions (D-WS6a)", () => {
describe("Danish fine-tune conversions (D-046)", () => {
const owner = `${DANISH_MODELS_HF_OWNER}/`;
const danish = MODELS.filter((model) => model.id.startsWith(owner));
@@ -131,7 +131,7 @@ describe("Danish fine-tune conversions (D-WS6a)", () => {
expect(smallDa!.decoderParamsM).toBe(small.decoderParamsM);
});
test("default to the dtypes measured on the converted files (D-WS6a)", () => {
test("default to the dtypes measured on the converted files (D-046)", () => {
// da_festuge on onnxruntime-node: q4 matched or beat q8 and was faster for
// all three, small included; fp16 encoders did not overflow (D-022 check).
for (const model of danish) {
@@ -141,7 +141,7 @@ describe("Danish fine-tune conversions (D-WS6a)", () => {
decoder_model_merged: "q4",
});
expect(resolveDefaultDtype(model.id, "webnn")).toBe("fp16");
expect(model.defaults.wasm.note).toContain("D-WS6a");
expect(model.defaults.wasm.note).toContain("D-046");
}
});
});
@@ -270,7 +270,7 @@ describe("WHISPER_LANGUAGES", () => {
});
});
describe("canTranslate (D-WS4a)", () => {
describe("canTranslate (D-044)", () => {
test("Whisper translate is offered only where OpenAI trained it", () => {
const translating = MODELS.filter((model) => model.canTranslate).map((model) => model.id);
// large-v3-turbo was not trained for translation (OpenAI model card);
@@ -290,7 +290,7 @@ describe("canTranslate (D-WS4a)", () => {
});
});
describe("taskForModel (D-WS4a)", () => {
describe("taskForModel (D-044)", () => {
test("a stale translate resets to transcribe on a model that cannot translate", () => {
expect(taskForModel("onnx-community/whisper-large-v3-turbo", "translate")).toBe("transcribe");
expect(taskForModel("onnx-community/whisper-small.en", "translate")).toBe("transcribe");
@@ -306,7 +306,7 @@ describe("taskForModel (D-WS4a)", () => {
});
});
describe("Parakeet catalog entry (D-WS7a)", () => {
describe("Parakeet catalog entry (D-051)", () => {
const parakeet = getModel(PARAKEET_MODEL_ID)!;
test("family defaults to whisper when absent", () => {