quantuminfer 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +96 -2
  3. package/bin/quantuminfer.js +61 -0
  4. package/c27/adapters.py +161 -0
  5. package/c27/harness27.py +349 -0
  6. package/data/input.txt +40000 -0
  7. package/data/wikitext/test.txt +7249 -0
  8. package/engine/API.txt +208 -0
  9. package/engine/PLUGINS.txt +4 -0
  10. package/engine/__init__.py +82 -0
  11. package/engine/adapter.py +505 -0
  12. package/engine/blocks.py +1180 -0
  13. package/engine/c12.py +324 -0
  14. package/engine/c12cu.py +1074 -0
  15. package/engine/ctx.py +87 -0
  16. package/engine/dev.py +11 -0
  17. package/engine/ds4.py +389 -0
  18. package/engine/kernels.py +833 -0
  19. package/engine/model.py +281 -0
  20. package/engine/record.py +140 -0
  21. package/engine/server.py +183 -0
  22. package/engine/spec.py +1030 -0
  23. package/engine/wcode.py +122 -0
  24. package/p27/SPEC.txt +66 -0
  25. package/p27/STATUS.txt +91 -0
  26. package/p27/bench_glm.py +354 -0
  27. package/p27/bench_multi.py +76 -0
  28. package/p27/mkfinal.py +98 -0
  29. package/p27/modal_comp.py +173 -0
  30. package/p27/modal_dl.py +63 -0
  31. package/p27/modal_p27.py +168 -0
  32. package/p27/modal_probe.py +49 -0
  33. package/p27/p27rules.py +29 -0
  34. package/p27/pblocks.py +1242 -0
  35. package/p27/pmodel.py +402 -0
  36. package/p27/pref.py +151 -0
  37. package/p27/prof_glm.py +34 -0
  38. package/p27/quant.py +850 -0
  39. package/p27/recipes/vllm_b300_single_node_tep_b300_agentx_ep.md +353 -0
  40. package/p27/recipes/vllm_b300_single_node_tp_b300_agentx.md +351 -0
  41. package/p27/recipes/vllm_b300_single_node_tp_baseline.md +250 -0
  42. package/p27/recipes/vllm_default_gb300.md +281 -0
  43. package/p27/recipes/vllm_glm53_h200.md +301 -0
  44. package/p27/run_window1.sh +21 -0
  45. package/p27/run_window2.sh +13 -0
  46. package/p27/sweep_glm.py +64 -0
  47. package/p27/t_align.py +42 -0
  48. package/p27/t_combine.py +28 -0
  49. package/p27/t_echo.py +31 -0
  50. package/p27/t_fp8dense.py +59 -0
  51. package/p27/t_fp8speed.py +48 -0
  52. package/p27/t_glm.py +340 -0
  53. package/p27/t_glu.py +30 -0
  54. package/p27/t_gsuf.py +23 -0
  55. package/p27/t_jac.py +22 -0
  56. package/p27/t_moebm.py +30 -0
  57. package/p27/t_nccl.py +36 -0
  58. package/p27/t_online_jac.py +31 -0
  59. package/p27/t_probe.py +4 -0
  60. package/p27/t_router.py +28 -0
  61. package/p27/t_symm.py +50 -0
  62. package/p27/t_tiny.py +116 -0
  63. package/package.json +34 -4
  64. package/results/ANALYSIS.md +160 -0
  65. package/results/comp_vllm_mtp_k5_b300mtp.json +235 -0
  66. package/results/glm53_b300x8_opt4.json +624 -0
  67. package/results/res_glm_c32w3_b300.json +638 -0
  68. package/results/res_glm_final_c32_b300.json +652 -0
  69. package/results/res_glm_multi_final_b300.json +1821 -0
  70. package/results/res_glm_online_b300.json +638 -0
  71. package/results/res_glm_online_fixed_b300.json +638 -0
  72. package/results/res_glm_opt4_b300.json +624 -0
  73. package/results/res_glm_t1_j8_b300.json +340 -0
  74. package/results/res_glm_text_plain_batch_b300.json +5792 -0
  75. package/results/res_glm_text_w1_b300.json +1635 -0
  76. package/results/res_glm_text_w3_b300.json +1639 -0
  77. package/results/res_sweep_echo_b300.json +129 -0
  78. package/results/res_sweep_final_b300.json +153 -0
  79. package/results/res_sweep_glm_b300.json +153 -0
  80. package/results/res_techo.json +29 -0
  81. package/results/res_tgsuf.json +21 -0
  82. package/results/res_tjac.json +17 -0
  83. package/results/res_tonline_jac.json +13 -0
@@ -0,0 +1,340 @@
1
+ {
2
+ "model": "/vol/hf/hub/models--zai-org--GLM-5.3/snapshots/ba32f8c19c8738e2c57c71798c601d477a7bf844",
3
+ "gpu": "NVIDIA B300 SXM6 AC",
4
+ "world": 8,
5
+ "load_s": 110.39359712600708,
6
+ "weight_bytes_rank0": 93614947776,
7
+ "state_bytes_rank0": 24379392,
8
+ "expert_shard": "ep_tp",
9
+ "mem_alloc_gb_rank0": 100.370640384,
10
+ "Bmax": 1,
11
+ "smax": 2048,
12
+ "mtp": true,
13
+ "single": [
14
+ {
15
+ "name": "t1/chat",
16
+ "ctx": 23,
17
+ "sampling": "T=1 exact",
18
+ "tok_s": 87.7262526107552,
19
+ "tok_s_min": 87.7262526107552,
20
+ "tok_s_max": 87.7262526107552,
21
+ "tokens_per_pass": 2.865168539325843,
22
+ "mode": "spec D=3 (MTP) + suffix C=16 + echo E=0/W1",
23
+ "runs": [
24
+ {
25
+ "t1": 0.17357720700002233,
26
+ "t256": 3.08034675899998,
27
+ "tok_s": 87.7262526107552,
28
+ "tok_per_pass": 2.865168539325843,
29
+ "engine_decode_tok_s": 87.5900453488911
30
+ }
31
+ ]
32
+ }
33
+ ],
34
+ "batched": [],
35
+ "shared": [],
36
+ "ttft": [],
37
+ "errors": [],
38
+ "fusion": {
39
+ "x_fp8": 78,
40
+ "x_bf16": 0,
41
+ "q_fp8": 21
42
+ },
43
+ "streams": [
44
+ {
45
+ "id": "single/t1/chat",
46
+ "prompt": [
47
+ 154822,
48
+ 154824,
49
+ 154826,
50
+ 25062,
51
+ 287,
52
+ 29905,
53
+ 371,
54
+ 25,
55
+ 7487,
56
+ 154827,
57
+ 840,
58
+ 20726,
59
+ 304,
60
+ 2326,
61
+ 22809,
62
+ 3170,
63
+ 279,
64
+ 12877,
65
+ 374,
66
+ 6303,
67
+ 13,
68
+ 154828,
69
+ 154841
70
+ ],
71
+ "out": [
72
+ 785,
73
+ 1196,
74
+ 6801,
75
+ 264,
76
+ 2326,
77
+ 1331,
78
+ 18351,
79
+ 16134,
80
+ 315,
81
+ 3170,
82
+ 279,
83
+ 12877,
84
+ 374,
85
+ 6303,
86
+ 13,
87
+ 1096,
88
+ 374,
89
+ 13247,
90
+ 62524,
91
+ 71268,
92
+ 13,
93
+ 6771,
94
+ 752,
95
+ 10765,
96
+ 6896,
97
+ 2326,
98
+ 2797,
99
+ 22809,
100
+ 382,
101
+ 83869,
102
+ 220,
103
+ 16,
104
+ 25,
105
+ 8058,
106
+ 4145,
107
+ 5610,
108
+ 678,
109
+ 7986,
110
+ 315,
111
+ 9430,
112
+ 3100,
113
+ 624,
114
+ 83869,
115
+ 220,
116
+ 17,
117
+ 25,
118
+ 1634,
119
+ 38810,
120
+ 16197,
121
+ 1526,
122
+ 279,
123
+ 16550,
124
+ 11,
125
+ 23263,
126
+ 92080,
127
+ 320,
128
+ 12197,
129
+ 8,
130
+ 44219,
131
+ 803,
132
+ 1091,
133
+ 5021,
134
+ 92080,
135
+ 320,
136
+ 1151,
137
+ 8,
138
+ 979,
139
+ 807,
140
+ 13161,
141
+ 6819,
142
+ 34445,
143
+ 1959,
144
+ 419,
145
+ 374,
146
+ 13247,
147
+ 62524,
148
+ 71268,
149
+ 624,
150
+ 83869,
151
+ 220,
152
+ 18,
153
+ 25,
154
+ 1096,
155
+ 36775,
156
+ 6303,
157
+ 3100,
158
+ 4041,
159
+ 518,
160
+ 601,
161
+ 504,
162
+ 678,
163
+ 17934,
164
+ 315,
165
+ 279,
166
+ 12877,
167
+ 11,
168
+ 3259,
169
+ 432,
170
+ 4994,
171
+ 6303,
172
+ 382,
173
+ 4792,
174
+ 594,
175
+ 2326,
176
+ 22809,
177
+ 13,
178
+ 13646,
179
+ 432,
180
+ 63141,
181
+ 13,
182
+ 2308,
183
+ 1184,
184
+ 369,
185
+ 7102,
186
+ 476,
187
+ 11464,
188
+ 369,
189
+ 419,
190
+ 1959,
191
+ 1101,
192
+ 2326,
193
+ 22809,
194
+ 315,
195
+ 60276,
196
+ 13,
197
+ 154842,
198
+ 29975,
199
+ 4145,
200
+ 5610,
201
+ 678,
202
+ 7986,
203
+ 315,
204
+ 9430,
205
+ 3100,
206
+ 11,
207
+ 1817,
208
+ 20924,
209
+ 518,
210
+ 264,
211
+ 2155,
212
+ 45038,
213
+ 13,
214
+ 3197,
215
+ 38810,
216
+ 28730,
217
+ 9234,
218
+ 594,
219
+ 16550,
220
+ 11,
221
+ 279,
222
+ 23263,
223
+ 6303,
224
+ 92080,
225
+ 44219,
226
+ 1007,
227
+ 6819,
228
+ 34445,
229
+ 1753,
230
+ 803,
231
+ 1091,
232
+ 5021,
233
+ 92080,
234
+ 1075,
235
+ 2518,
236
+ 27901,
237
+ 24768,
238
+ 2598,
239
+ 13247,
240
+ 62524,
241
+ 71268,
242
+ 13,
243
+ 1096,
244
+ 36775,
245
+ 6303,
246
+ 3100,
247
+ 24417,
248
+ 1039,
249
+ 6414,
250
+ 504,
251
+ 1449,
252
+ 5106,
253
+ 304,
254
+ 279,
255
+ 12877,
256
+ 11,
257
+ 3259,
258
+ 279,
259
+ 12877,
260
+ 4994,
261
+ 6303,
262
+ 13,
263
+ 154827,
264
+ 15973,
265
+ 4238,
266
+ 4829,
267
+ 311,
268
+ 1414,
269
+ 279,
270
+ 16134,
271
+ 323,
272
+ 9494,
273
+ 429,
274
+ 279,
275
+ 12877,
276
+ 374,
277
+ 6303,
278
+ 1576,
279
+ 508,
280
+ 78832,
281
+ 1718,
282
+ 62,
283
+ 15,
284
+ 60,
285
+ 1576,
286
+ 508,
287
+ 78832,
288
+ 1718,
289
+ 62,
290
+ 16,
291
+ 60,
292
+ 1576,
293
+ 508,
294
+ 78832,
295
+ 1718,
296
+ 62,
297
+ 17,
298
+ 29450,
299
+ 785,
300
+ 11646,
301
+ 5944,
302
+ 374,
303
+ 25,
304
+ 330,
305
+ 15973,
306
+ 4238,
307
+ 4829,
308
+ 311,
309
+ 1414,
310
+ 279,
311
+ 16134,
312
+ 323,
313
+ 9494,
314
+ 429,
315
+ 279,
316
+ 12877,
317
+ 374,
318
+ 6303,
319
+ 1576,
320
+ 508,
321
+ 78832,
322
+ 1718,
323
+ 62,
324
+ 15,
325
+ 60,
326
+ 1576,
327
+ 508
328
+ ],
329
+ "T": 1.0,
330
+ "tail_periodicity": 0.27586206896551724,
331
+ "tail_period": 41,
332
+ "seq": 5001
333
+ }
334
+ ],
335
+ "wall_s": 162.25822377204895,
336
+ "mem_peak_gb_rank0": 103.3275008,
337
+ "symm_buffers": 4,
338
+ "symm_ok": true,
339
+ "job_s": 187.17249584197998
340
+ }