Add chat template block (runtime-owned chat templating)
Browse files- v79/phimoe.json +85 -31
v79/phimoe.json
CHANGED
|
@@ -1,31 +1,85 @@
|
|
| 1 |
-
{
|
| 2 |
-
"schema_version": 1,
|
| 3 |
-
"_comment": "phi-tiny-moe - Qualcomm Hexagon v79 (QHexRT) deployment manifest.",
|
| 4 |
-
"model": {
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"_comment": "phi-tiny-moe - Qualcomm Hexagon v79 (QHexRT) deployment manifest.",
|
| 4 |
+
"model": {
|
| 5 |
+
"name": "phi-tiny-moe",
|
| 6 |
+
"family": "llm",
|
| 7 |
+
"dsp_arch": "v79",
|
| 8 |
+
"tokenizer_pre": "default"
|
| 9 |
+
},
|
| 10 |
+
"chat": {
|
| 11 |
+
"user": {
|
| 12 |
+
"prefix": [
|
| 13 |
+
32010
|
| 14 |
+
],
|
| 15 |
+
"suffix": [
|
| 16 |
+
32007
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
"assistant": {
|
| 20 |
+
"prefix": [
|
| 21 |
+
32001
|
| 22 |
+
],
|
| 23 |
+
"suffix": [
|
| 24 |
+
32007
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"params": {
|
| 29 |
+
"hidden": 4096,
|
| 30 |
+
"vocab": 32064,
|
| 31 |
+
"n_layers": 32,
|
| 32 |
+
"max_ctx": 2048,
|
| 33 |
+
"kv_dim": 512,
|
| 34 |
+
"head_dim": 128,
|
| 35 |
+
"rope_theta": 10000,
|
| 36 |
+
"eos_token_id": 32000
|
| 37 |
+
},
|
| 38 |
+
"artifacts": {
|
| 39 |
+
"contexts": {
|
| 40 |
+
"a_lo": {
|
| 41 |
+
"bin": "a_lo.bin"
|
| 42 |
+
},
|
| 43 |
+
"a_hi": {
|
| 44 |
+
"bin": "a_hi.bin"
|
| 45 |
+
},
|
| 46 |
+
"ffn": {
|
| 47 |
+
"bin": "ffn2.bin"
|
| 48 |
+
},
|
| 49 |
+
"lmhead": {
|
| 50 |
+
"bin": "lmhead_ar1.bin"
|
| 51 |
+
},
|
| 52 |
+
"pf_lo": {
|
| 53 |
+
"bin": "pf_lo.bin"
|
| 54 |
+
},
|
| 55 |
+
"pf_hi": {
|
| 56 |
+
"bin": "pf_hi.bin"
|
| 57 |
+
},
|
| 58 |
+
"ffn_pf": {
|
| 59 |
+
"bin": "ffn_pf.bin"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"embed": "embed_f16.bin",
|
| 63 |
+
"tokenizer": "tokenizer.json",
|
| 64 |
+
"fixture_dir": "."
|
| 65 |
+
},
|
| 66 |
+
"plan": {
|
| 67 |
+
"steps": [
|
| 68 |
+
{
|
| 69 |
+
"host": "phimoe_generate",
|
| 70 |
+
"params": {
|
| 71 |
+
"experts": "experts_i8.bin",
|
| 72 |
+
"scales": "experts_scale.f32",
|
| 73 |
+
"n_experts": 16,
|
| 74 |
+
"ffn": 448,
|
| 75 |
+
"jitter": 0.01,
|
| 76 |
+
"neg": -50,
|
| 77 |
+
"user_id": 32010,
|
| 78 |
+
"end_id": 32007,
|
| 79 |
+
"assistant_id": 32001,
|
| 80 |
+
"max_new": 24
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
]
|
| 84 |
+
}
|
| 85 |
+
}
|