Archived
Add HYV3 BF16 FP8 and GGUF architecture adapters
Declare the HYV3 graph with a private attention helper and existing kernels/layouts. Support per-head Q/K normalization, sigmoid-correction routing, the dense-first schedule and TP1/TP2 independent arm reductions with FP32 combine. Add graph, format and plugin tests without calibration or decode optimizations.
This commit is contained in:
1 parent
7e04bcac2b
commit
e3eab050bd
12 files changed
+1484
-42
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
/* Shapes read from the local Tencent Hy-Memory-30B-A3B-BF16 model.safetensors headers and checked
|
||||
* against its config.json (48 layers, hidden=2048, 32 Q heads, 4 KV heads, 128 experts). Keep these
|
||||
* source tensor shapes separate from the architecture's declared, sometimes concatenated shapes. */
|
||||
namespace hyv3_bf16_fixture {
|
||||
constexpr char source[] = "Hy-Memory-30B-A3B-BF16 / model.safetensors headers";
|
||||
constexpr int64_t q_proj[2] = { 4096, 2048 };
|
||||
constexpr int64_t k_proj[2] = { 512, 2048 };
|
||||
constexpr int64_t v_proj[2] = { 512, 2048 };
|
||||
constexpr int64_t o_proj[2] = { 2048, 4096 };
|
||||
constexpr int64_t q_norm[1] = { 128 };
|
||||
constexpr int64_t k_norm[1] = { 128 };
|
||||
constexpr int64_t dense_gate[2] = { 6912, 2048 };
|
||||
constexpr int64_t dense_up[2] = { 6912, 2048 };
|
||||
constexpr int64_t dense_down[2] = { 2048, 6912 };
|
||||
constexpr int64_t expert_gate[2] = { 768, 2048 };
|
||||
constexpr int64_t expert_up[2] = { 768, 2048 };
|
||||
constexpr int64_t expert_down[2] = { 2048, 768 };
|
||||
constexpr int64_t shared_gate[2] = { 768, 2048 };
|
||||
constexpr int64_t shared_up[2] = { 768, 2048 };
|
||||
constexpr int64_t shared_down[2] = { 2048, 768 };
|
||||
constexpr int64_t router[2] = { 128, 2048 };
|
||||
constexpr int64_t correction[1] = { 128 };
|
||||
} // namespace hyv3_bf16_fixture
|
||||
Reference in new issue
Block a user