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": 123.0900411605835,
6
+ "weight_bytes_rank0": 93614947776,
7
+ "state_bytes_rank0": 24379392,
8
+ "expert_shard": "ep_tp",
9
+ "mem_alloc_gb_rank0": 100.359499264,
10
+ "Bmax": 1,
11
+ "smax": 2048,
12
+ "mtp": true,
13
+ "single": [
14
+ {
15
+ "name": "code",
16
+ "ctx": 4,
17
+ "sampling": "greedy",
18
+ "tok_s": 139.1533642238643,
19
+ "tok_s_min": 139.09733882746264,
20
+ "tok_s_max": 139.2093896202659,
21
+ "tokens_per_pass": 5.204081632653061,
22
+ "mode": "online-tree D=3 (MTP) + suffix C=32 + echo E=8/W3",
23
+ "runs": [
24
+ {
25
+ "t1": 0.16257709399999953,
26
+ "t256": 1.9943500850000078,
27
+ "tok_s": 139.2093896202659,
28
+ "tok_per_pass": 5.204081632653061,
29
+ "engine_decode_tok_s": 138.99010760202054
30
+ },
31
+ {
32
+ "t1": 0.1679970080000146,
33
+ "t256": 2.0012455959999897,
34
+ "tok_s": 139.09733882746264,
35
+ "tok_per_pass": 5.204081632653061,
36
+ "engine_decode_tok_s": 138.44773581115038
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "chat",
42
+ "ctx": 23,
43
+ "sampling": "greedy",
44
+ "tok_s": 91.05116803026081,
45
+ "tok_s_min": 91.0274170753505,
46
+ "tok_s_max": 91.07491898517111,
47
+ "tokens_per_pass": 3.3552631578947367,
48
+ "mode": "online-tree D=3 (MTP) + suffix C=32 + echo E=8/W3",
49
+ "runs": [
50
+ {
51
+ "t1": 0.16817683399997918,
52
+ "t256": 2.968069525000004,
53
+ "tok_s": 91.07491898517111,
54
+ "tok_per_pass": 3.3552631578947367,
55
+ "engine_decode_tok_s": 90.9091281478035
56
+ },
57
+ {
58
+ "t1": 0.16300241899998014,
59
+ "t256": 2.964356210999995,
60
+ "tok_s": 91.0274170753505,
61
+ "tok_per_pass": 3.3552631578947367,
62
+ "engine_decode_tok_s": 91.01661085949846
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
+ 20109,
149
+ 25,
150
+ 572,
151
+ 7402,
152
+ 73401,
153
+ 311,
154
+ 3520,
155
+ 1618,
156
+ 279,
157
+ 729,
158
+ 198,
159
+ 257,
160
+ 1022,
161
+ 2,
162
+ 576,
163
+ 9871,
164
+ 25,
165
+ 1887,
166
+ 572,
167
+ 4512,
168
+ 714,
169
+ 2581,
170
+ 2598,
171
+ 320,
172
+ 30496,
173
+ 73401,
174
+ 340,
175
+ 2,
176
+ 576,
177
+ 5046,
178
+ 25,
179
+ 5497,
180
+ 1565,
181
+ 3817,
182
+ 63,
183
+ 311,
184
+ 1565,
185
+ 3817,
186
+ 53896,
187
+ 311,
188
+ 3520,
189
+ 19835,
190
+ 279,
191
+ 729,
192
+ 198,
193
+ 2,
194
+ 1096,
195
+ 374,
196
+ 264,
197
+ 4185,
198
+ 13020,
199
+ 2684,
200
+ 6447,
201
+ 481,
202
+ 56136,
203
+ 264,
204
+ 729,
205
+ 2041,
206
+ 8097,
207
+ 432,
208
+ 198,
209
+ 2,
210
+ 576,
211
+ 421,
212
+ 1304,
213
+ 606,
214
+ 563,
215
+ 621,
216
+ 13257,
217
+ 3817,
218
+ 563,
219
+ 1,
220
+ 7616,
221
+ 25273,
222
+ 1887,
223
+ 368,
224
+ 1172,
225
+ 8472,
226
+ 979,
227
+ 5316,
228
+ 374,
229
+ 15683,
230
+ 5961,
231
+ 198,
232
+ 2,
233
+ 576,
234
+ 75096,
235
+ 729,
236
+ 5086,
237
+ 374,
238
+ 4396,
239
+ 481,
240
+ 432,
241
+ 13460,
242
+ 2331,
243
+ 5048,
244
+ 320,
245
+ 77,
246
+ 2651,
247
+ 220,
248
+ 16,
249
+ 8,
250
+ 323,
251
+ 49940,
252
+ 10272,
253
+ 198,
254
+ 2,
255
+ 7036,
256
+ 25,
257
+ 1096,
258
+ 30697,
259
+ 8128,
260
+ 374,
261
+ 62929,
262
+ 369,
263
+ 3460,
264
+ 308,
265
+ 320,
266
+ 327,
267
+ 59410,
268
+ 882,
269
+ 23031,
270
+ 340,
271
+ 2,
272
+ 1752,
273
+ 5670,
274
+ 990,
275
+ 11,
276
+ 2908,
277
+ 86155,
278
+ 5486,
279
+ 476,
280
+ 21388,
281
+ 2022,
282
+ 198,
283
+ 2,
284
+ 576,
285
+ 1946,
286
+ 368,
287
+ 1618,
288
+ 686,
289
+ 9929,
290
+ 279,
291
+ 1196,
292
+ 369,
293
+ 264,
294
+ 1372,
295
+ 979,
296
+ 279,
297
+ 5316,
298
+ 8472,
299
+ 198,
300
+ 2,
301
+ 526,
302
+ 368,
303
+ 14399,
304
+ 25273,
305
+ 582,
306
+ 975,
307
+ 448,
308
+ 25700,
309
+ 11,
310
+ 537,
311
+ 9066,
312
+ 198,
313
+ 2,
314
+ 576,
315
+ 282,
316
+ 30756,
317
+ 304,
318
+ 1173,
319
+ 368,
320
+ 10272,
321
+ 19818,
322
+ 279,
323
+ 2550,
324
+ 448,
325
+ 279,
326
+ 75096,
327
+ 1102,
328
+ 198,
329
+ 2,
330
+ 1096,
331
+ 2038,
332
+ 686,
333
+ 1431,
334
+ 12434,
335
+ 9929,
336
+ 369,
337
+ 1946,
338
+ 323,
339
+ 3037,
340
+ 279,
341
+ 75096
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
+ 1959,
460
+ 419,
461
+ 374,
462
+ 13247,
463
+ 62524,
464
+ 71268,
465
+ 11,
466
+ 1380,
467
+ 71268,
468
+ 20569,
469
+ 374,
470
+ 64116,
471
+ 974,
472
+ 53810,
473
+ 311,
474
+ 279,
475
+ 11731,
476
+ 2355,
477
+ 315,
478
+ 45038,
479
+ 198,
480
+ 19,
481
+ 13,
482
+ 1096,
483
+ 36775,
484
+ 6303,
485
+ 3100,
486
+ 4041,
487
+ 518,
488
+ 601,
489
+ 504,
490
+ 678,
491
+ 17934,
492
+ 304,
493
+ 279,
494
+ 12877,
495
+ 11,
496
+ 3259,
497
+ 432,
498
+ 4994,
499
+ 6303,
500
+ 198,
501
+ 20,
502
+ 13,
503
+ 320,
504
+ 48423,
505
+ 25,
506
+ 3170,
507
+ 537,
508
+ 79095,
509
+ 30,
510
+ 5633,
511
+ 6414,
512
+ 525,
513
+ 803,
514
+ 16202,
515
+ 311,
516
+ 6303,
517
+ 11,
518
+ 323,
519
+ 279,
520
+ 7015,
521
+ 72220,
522
+ 2686,
523
+ 79095,
524
+ 692,
525
+ 40,
526
+ 1184,
527
+ 311,
528
+ 9751,
529
+ 1117,
530
+ 419,
531
+ 1119,
532
+ 6896,
533
+ 2326,
534
+ 22809,
535
+ 13,
536
+ 6771,
537
+ 752,
538
+ 9955,
539
+ 1447,
540
+ 83869,
541
+ 220,
542
+ 16,
543
+ 25,
544
+ 8058,
545
+ 4145,
546
+ 5610,
547
+ 678,
548
+ 7986,
549
+ 315,
550
+ 9430,
551
+ 3100,
552
+ 11,
553
+ 323,
554
+ 979,
555
+ 432,
556
+ 28730,
557
+ 9234,
558
+ 594,
559
+ 16550,
560
+ 11,
561
+ 432,
562
+ 4530,
563
+ 3341,
564
+ 448,
565
+ 13664,
566
+ 6819,
567
+ 34445,
568
+ 1075,
569
+ 46123,
570
+ 323,
571
+ 23487,
572
+ 382,
573
+ 83869,
574
+ 220,
575
+ 17,
576
+ 25,
577
+ 4220,
578
+ 34445,
579
+ 44219,
580
+ 23263,
581
+ 92080,
582
+ 315,
583
+ 3100,
584
+ 320,
585
+ 12197,
586
+ 323,
587
+ 79095,
588
+ 8,
589
+ 1753,
590
+ 803,
591
+ 16495,
592
+ 1091,
593
+ 5021,
594
+ 92080,
595
+ 320,
596
+ 1151,
597
+ 323,
598
+ 18543,
599
+ 8,
600
+ 1959,
601
+ 264,
602
+ 24768,
603
+ 2598,
604
+ 13247,
605
+ 62524,
606
+ 71268,
607
+ 382,
608
+ 83869,
609
+ 220,
610
+ 18,
611
+ 25,
612
+ 576,
613
+ 36775,
614
+ 6303,
615
+ 3100,
616
+ 293,
617
+ 29828,
618
+ 2163,
619
+ 279,
620
+ 16550,
621
+ 323,
622
+ 24417,
623
+ 1039,
624
+ 6414,
625
+ 504,
626
+ 678,
627
+ 17934,
628
+ 11
629
+ ],
630
+ "T": 0.0
631
+ }
632
+ ],
633
+ "wall_s": 193.22373127937317,
634
+ "mem_peak_gb_rank0": 102.741612544,
635
+ "symm_buffers": 8,
636
+ "symm_ok": true,
637
+ "job_s": 218.0866129398346
638
+ }