nemotron 3.5 implementation

This commit is contained in:
Gaspa79 authored and StillDeadcode committed 2026-10-30 10:22:53 +01:00
1 parent 33108e488b
commit 94c90b17ad
59 files changed
+6046 -76

No files matched your search

+13
View File
@@ -107,6 +107,19 @@ std::vector<Case> build_cases() {
add("scale_rows", { HI("M", 6), HI("n", 640), HS("act", "none"), HS("dtype", dt) },
EB(6, 640, w, 2));
}
for (const char* dt : {"f32", "bf16"})
add("position_scale",
{HI("M", 7), HI("n", 259), HI("original", 16384), HF("beta", 0.1), HS("dtype", dt)});
for (const char* dt : {"f32", "bf16"})
add("pixtral_rope",
{HI("M", 7), HI("head_dim", 64), HI("n_head", 2), HF("theta", 10000), HS("dtype", dt)});
for (const char* dt : {"f32", "bf16"})
add("ministral_rope", {HI("M", 7), HI("head_dim", 128), HI("n_head", 4), HI("n_head_kv", 1),
HF("theta", 1e6), HF("yarn_factor", 16), HF("yarn_low", 8),
HF("yarn_high", 24), HF("yarn_magnitude", 1), HS("dtype", dt)});
for (const char* dt : {"f32", "bf16"})
add("embed_attn", {HI("M", 7), HI("head_dim", 64), HI("n_head", 4), HI("gqa", 2),
HI("causal", 0), HI("n_seq", 2), HS("dtype", dt)});
/* Every dtype pair: `cast` carries the narrowing conventions and is checked at 1e-6, i.e.
* exactly. */
for (const char* from : { "f32", "bf16", "f16", "fp8_e4m3", "fp8_e5m2", "i8" })