quantuminfer 0.0.0-stage → 0.1.0

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 (82) 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 +10 -4
  64. package/results/ANALYSIS.md +156 -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_text_plain_batch_b300.json +5792 -0
  74. package/results/res_glm_text_w1_b300.json +1635 -0
  75. package/results/res_glm_text_w3_b300.json +1639 -0
  76. package/results/res_sweep_echo_b300.json +129 -0
  77. package/results/res_sweep_final_b300.json +153 -0
  78. package/results/res_sweep_glm_b300.json +153 -0
  79. package/results/res_techo.json +29 -0
  80. package/results/res_tgsuf.json +21 -0
  81. package/results/res_tjac.json +17 -0
  82. package/results/res_tonline_jac.json +13 -0
@@ -0,0 +1,638 @@
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": 125.08893704414368,
6
+ "weight_bytes_rank0": 93614947776,
7
+ "state_bytes_rank0": 24379392,
8
+ "expert_shard": "ep_tp",
9
+ "mem_alloc_gb_rank0": 100.346523136,
10
+ "Bmax": 1,
11
+ "smax": 2048,
12
+ "mtp": true,
13
+ "single": [
14
+ {
15
+ "name": "code",
16
+ "ctx": 4,
17
+ "sampling": "greedy",
18
+ "tok_s": 78.89114235482535,
19
+ "tok_s_min": 77.1315574733938,
20
+ "tok_s_max": 80.6507272362569,
21
+ "tokens_per_pass": 2.9325842696629216,
22
+ "mode": "online-tree D=3 (MTP) + suffix C=32 + echo E=8/W3",
23
+ "runs": [
24
+ {
25
+ "t1": 0.1657083529999852,
26
+ "t256": 3.3274901340000156,
27
+ "tok_s": 80.6507272362569,
28
+ "tok_per_pass": 3.0,
29
+ "engine_decode_tok_s": 80.5723671634025
30
+ },
31
+ {
32
+ "t1": 0.1674044050000134,
33
+ "t256": 3.4734442200000046,
34
+ "tok_s": 77.1315574733938,
35
+ "tok_per_pass": 2.865168539325843,
36
+ "engine_decode_tok_s": 77.07248855666072
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "chat",
42
+ "ctx": 23,
43
+ "sampling": "greedy",
44
+ "tok_s": 88.59596782935778,
45
+ "tok_s_min": 88.41125135259003,
46
+ "tok_s_max": 88.78068430612552,
47
+ "tokens_per_pass": 3.311688311688312,
48
+ "mode": "online-tree D=3 (MTP) + suffix C=32 + echo E=8/W3",
49
+ "runs": [
50
+ {
51
+ "t1": 0.17045003399999814,
52
+ "t256": 3.042696424000013,
53
+ "tok_s": 88.78068430612552,
54
+ "tok_per_pass": 3.311688311688312,
55
+ "engine_decode_tok_s": 88.69229985177529
56
+ },
57
+ {
58
+ "t1": 0.16741740300000174,
59
+ "t256": 3.0516656869999963,
60
+ "tok_s": 88.41125135259003,
61
+ "tok_per_pass": 3.311688311688312,
62
+ "engine_decode_tok_s": 88.43732517826562
63
+ }
64
+ ]
65
+ }
66
+ ],
67
+ "batched": [],
68
+ "shared": [],
69
+ "ttft": [],
70
+ "errors": [],
71
+ "fusion": {
72
+ "x_fp8": 78,
73
+ "x_bf16": 0,
74
+ "q_fp8": 21
75
+ },
76
+ "streams": [
77
+ {
78
+ "id": "single/code",
79
+ "prompt": [
80
+ 750,
81
+ 75096,
82
+ 1445,
83
+ 1648
84
+ ],
85
+ "out": [
86
+ 715,
87
+ 262,
88
+ 421,
89
+ 308,
90
+ 2651,
91
+ 220,
92
+ 16,
93
+ 510,
94
+ 286,
95
+ 470,
96
+ 308,
97
+ 198,
98
+ 262,
99
+ 770,
100
+ 510,
101
+ 286,
102
+ 470,
103
+ 75096,
104
+ 1445,
105
+ 12,
106
+ 16,
107
+ 8,
108
+ 488,
109
+ 75096,
110
+ 1445,
111
+ 12,
112
+ 17,
113
+ 692,
114
+ 750,
115
+ 1887,
116
+ 3932,
117
+ 262,
118
+ 308,
119
+ 284,
120
+ 526,
121
+ 5384,
122
+ 445,
123
+ 6269,
124
+ 264,
125
+ 1372,
126
+ 25,
127
+ 40735,
128
+ 262,
129
+ 1173,
130
+ 955,
131
+ 579,
132
+ 39133,
133
+ 1445,
134
+ 4390,
135
+ 333,
136
+ 1304,
137
+ 606,
138
+ 563,
139
+ 621,
140
+ 13257,
141
+ 3817,
142
+ 21035,
143
+ 262,
144
+ 1887,
145
+ 368,
146
+ 220,
147
+ 671,
148
+ 1096,
149
+ 1555,
150
+ 374,
151
+ 7402,
152
+ 198,
153
+ 2,
154
+ 576,
155
+ 2038,
156
+ 3403,
157
+ 374,
158
+ 264,
159
+ 4285,
160
+ 79043,
161
+ 8499,
162
+ 13814,
163
+ 1667,
164
+ 49940,
165
+ 624,
166
+ 2,
167
+ 1084,
168
+ 50598,
169
+ 279,
170
+ 1196,
171
+ 369,
172
+ 264,
173
+ 1372,
174
+ 323,
175
+ 23408,
176
+ 279,
177
+ 79043,
178
+ 897,
179
+ 518,
180
+ 429,
181
+ 1922,
182
+ 13,
183
+ 220,
184
+ 671,
185
+ 20109,
186
+ 25,
187
+ 17659,
188
+ 7402,
189
+ 1887,
190
+ 368,
191
+ 1618,
192
+ 198,
193
+ 2,
194
+ 576,
195
+ 2038,
196
+ 374,
197
+ 4583,
198
+ 323,
199
+ 15617,
200
+ 1431,
201
+ 13,
202
+ 220,
203
+ 671,
204
+ 20109,
205
+ 25,
206
+ 17659,
207
+ 7402,
208
+ 1887,
209
+ 368,
210
+ 1618,
211
+ 198,
212
+ 2,
213
+ 576,
214
+ 2038,
215
+ 374,
216
+ 4583,
217
+ 323,
218
+ 15617,
219
+ 1431,
220
+ 13,
221
+ 220,
222
+ 671,
223
+ 20109,
224
+ 25,
225
+ 17659,
226
+ 7402,
227
+ 1887,
228
+ 368,
229
+ 1618,
230
+ 198,
231
+ 2,
232
+ 576,
233
+ 2038,
234
+ 374,
235
+ 4583,
236
+ 323,
237
+ 15617,
238
+ 1431,
239
+ 13,
240
+ 220,
241
+ 671,
242
+ 20109,
243
+ 25,
244
+ 17659,
245
+ 7402,
246
+ 1887,
247
+ 368,
248
+ 1618,
249
+ 198,
250
+ 2,
251
+ 576,
252
+ 2038,
253
+ 374,
254
+ 4583,
255
+ 323,
256
+ 15617,
257
+ 1431,
258
+ 13,
259
+ 220,
260
+ 671,
261
+ 20109,
262
+ 25,
263
+ 17659,
264
+ 7402,
265
+ 1887,
266
+ 368,
267
+ 1618,
268
+ 198,
269
+ 2,
270
+ 576,
271
+ 2038,
272
+ 374,
273
+ 4583,
274
+ 323,
275
+ 15617,
276
+ 1431,
277
+ 13,
278
+ 220,
279
+ 671,
280
+ 20109,
281
+ 25,
282
+ 17659,
283
+ 7402,
284
+ 1887,
285
+ 368,
286
+ 1618,
287
+ 198,
288
+ 2,
289
+ 576,
290
+ 2038,
291
+ 374,
292
+ 4583,
293
+ 323,
294
+ 15617,
295
+ 1431,
296
+ 13,
297
+ 220,
298
+ 671,
299
+ 20109,
300
+ 25,
301
+ 17659,
302
+ 7402,
303
+ 1887,
304
+ 368,
305
+ 1618,
306
+ 198,
307
+ 2,
308
+ 576,
309
+ 2038,
310
+ 374,
311
+ 4583,
312
+ 323,
313
+ 15617,
314
+ 1431,
315
+ 13,
316
+ 220,
317
+ 671,
318
+ 20109,
319
+ 25,
320
+ 17659,
321
+ 7402,
322
+ 1887,
323
+ 368,
324
+ 1618,
325
+ 198,
326
+ 2,
327
+ 576,
328
+ 2038,
329
+ 374,
330
+ 4583,
331
+ 323,
332
+ 15617,
333
+ 1431,
334
+ 13,
335
+ 220,
336
+ 671,
337
+ 20109,
338
+ 25,
339
+ 17659,
340
+ 7402,
341
+ 1887
342
+ ],
343
+ "T": 0.0
344
+ },
345
+ {
346
+ "id": "single/chat",
347
+ "prompt": [
348
+ 154822,
349
+ 154824,
350
+ 154826,
351
+ 25062,
352
+ 287,
353
+ 29905,
354
+ 371,
355
+ 25,
356
+ 7487,
357
+ 154827,
358
+ 840,
359
+ 20726,
360
+ 304,
361
+ 2326,
362
+ 22809,
363
+ 3170,
364
+ 279,
365
+ 12877,
366
+ 374,
367
+ 6303,
368
+ 13,
369
+ 154828,
370
+ 154841
371
+ ],
372
+ "out": [
373
+ 785,
374
+ 1196,
375
+ 6801,
376
+ 264,
377
+ 2326,
378
+ 1331,
379
+ 18351,
380
+ 16134,
381
+ 315,
382
+ 3170,
383
+ 279,
384
+ 12877,
385
+ 374,
386
+ 6303,
387
+ 13,
388
+ 1096,
389
+ 374,
390
+ 264,
391
+ 11411,
392
+ 21271,
393
+ 3405,
394
+ 911,
395
+ 13247,
396
+ 62524,
397
+ 71268,
398
+ 13,
399
+ 6771,
400
+ 752,
401
+ 1744,
402
+ 911,
403
+ 279,
404
+ 1376,
405
+ 3501,
406
+ 1447,
407
+ 16,
408
+ 13,
409
+ 8058,
410
+ 4145,
411
+ 5610,
412
+ 678,
413
+ 7986,
414
+ 315,
415
+ 9430,
416
+ 3100,
417
+ 198,
418
+ 17,
419
+ 13,
420
+ 3197,
421
+ 38810,
422
+ 28730,
423
+ 9234,
424
+ 594,
425
+ 16550,
426
+ 11,
427
+ 432,
428
+ 4530,
429
+ 3341,
430
+ 448,
431
+ 6819,
432
+ 34445,
433
+ 320,
434
+ 43814,
435
+ 25110,
436
+ 11,
437
+ 23487,
438
+ 340,
439
+ 18,
440
+ 13,
441
+ 10693,
442
+ 261,
443
+ 92080,
444
+ 320,
445
+ 12197,
446
+ 5457,
447
+ 30787,
448
+ 8,
449
+ 44219,
450
+ 803,
451
+ 1091,
452
+ 5021,
453
+ 92080,
454
+ 320,
455
+ 1151,
456
+ 5144,
457
+ 844,
458
+ 8,
459
+ 481,
460
+ 419,
461
+ 374,
462
+ 13247,
463
+ 62524,
464
+ 71268,
465
+ 11,
466
+ 1380,
467
+ 71268,
468
+ 374,
469
+ 64116,
470
+ 974,
471
+ 53810,
472
+ 311,
473
+ 279,
474
+ 11731,
475
+ 2355,
476
+ 315,
477
+ 45038,
478
+ 198,
479
+ 19,
480
+ 13,
481
+ 8696,
482
+ 3100,
483
+ 1136,
484
+ 10170,
485
+ 304,
486
+ 678,
487
+ 17934,
488
+ 3941,
489
+ 279,
490
+ 12877,
491
+ 11,
492
+ 773,
493
+ 582,
494
+ 1490,
495
+ 6303,
496
+ 5001,
497
+ 504,
498
+ 16834,
499
+ 198,
500
+ 20,
501
+ 13,
502
+ 8428,
503
+ 6303,
504
+ 323,
505
+ 537,
506
+ 79095,
507
+ 30,
508
+ 72903,
509
+ 1136,
510
+ 10170,
511
+ 1496,
512
+ 803,
513
+ 11,
514
+ 714,
515
+ 279,
516
+ 7015,
517
+ 72220,
518
+ 2686,
519
+ 79095,
520
+ 3100,
521
+ 11,
522
+ 1045,
523
+ 374,
524
+ 40771,
525
+ 304,
526
+ 279,
527
+ 8415,
528
+ 16550,
529
+ 11,
530
+ 323,
531
+ 1039,
532
+ 6414,
533
+ 525,
534
+ 2686,
535
+ 16202,
536
+ 311,
537
+ 79095,
538
+ 271,
539
+ 40,
540
+ 1184,
541
+ 311,
542
+ 9751,
543
+ 1117,
544
+ 419,
545
+ 1119,
546
+ 6896,
547
+ 2326,
548
+ 22809,
549
+ 13,
550
+ 6771,
551
+ 752,
552
+ 9955,
553
+ 1447,
554
+ 83869,
555
+ 220,
556
+ 16,
557
+ 25,
558
+ 8058,
559
+ 4145,
560
+ 5610,
561
+ 678,
562
+ 7986,
563
+ 315,
564
+ 9430,
565
+ 3100,
566
+ 11,
567
+ 323,
568
+ 979,
569
+ 432,
570
+ 28730,
571
+ 9234,
572
+ 594,
573
+ 16550,
574
+ 11,
575
+ 432,
576
+ 4530,
577
+ 3341,
578
+ 448,
579
+ 13664,
580
+ 6819,
581
+ 34445,
582
+ 1075,
583
+ 46123,
584
+ 323,
585
+ 23487,
586
+ 382,
587
+ 83869,
588
+ 220,
589
+ 17,
590
+ 25,
591
+ 1096,
592
+ 18719,
593
+ 11132,
594
+ 279,
595
+ 3100,
596
+ 311,
597
+ 44219,
598
+ 304,
599
+ 264,
600
+ 1882,
601
+ 2598,
602
+ 13247,
603
+ 62524,
604
+ 71268,
605
+ 11,
606
+ 892,
607
+ 21451,
608
+ 23263,
609
+ 92080,
610
+ 320,
611
+ 12197,
612
+ 8,
613
+ 1753,
614
+ 803,
615
+ 16495,
616
+ 1091,
617
+ 5021,
618
+ 92080,
619
+ 320,
620
+ 1151,
621
+ 3593,
622
+ 83869,
623
+ 220,
624
+ 18,
625
+ 25,
626
+ 576,
627
+ 36775,
628
+ 6303
629
+ ],
630
+ "T": 0.0
631
+ }
632
+ ],
633
+ "wall_s": 195.88724160194397,
634
+ "mem_peak_gb_rank0": 101.932314112,
635
+ "symm_buffers": 8,
636
+ "symm_ok": true,
637
+ "job_s": 222.6602909564972
638
+ }