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,652 @@
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": 121.51905393600464,
6
+ "weight_bytes_rank0": 93614947776,
7
+ "state_bytes_rank0": 24379392,
8
+ "expert_shard": "ep_tp",
9
+ "mem_alloc_gb_rank0": 100.368805376,
10
+ "Bmax": 1,
11
+ "smax": 2048,
12
+ "mtp": true,
13
+ "single": [
14
+ {
15
+ "name": "code",
16
+ "ctx": 4,
17
+ "sampling": "greedy",
18
+ "tok_s": 144.57764534722907,
19
+ "tok_s_min": 144.53962252627315,
20
+ "tok_s_max": 144.61535626641094,
21
+ "tokens_per_pass": 5.204081632653061,
22
+ "mode": "spec D=3 (MTP) + suffix C=32 + echo E=0/W1",
23
+ "runs": [
24
+ {
25
+ "t1": 0.19565636799998742,
26
+ "t256": 1.9589545860000044,
27
+ "tok_s": 144.61535626641094,
28
+ "tok_per_pass": 5.204081632653061,
29
+ "engine_decode_tok_s": 144.5459410267996
30
+ },
31
+ {
32
+ "t1": 0.1943431569999916,
33
+ "t256": 1.958097500000008,
34
+ "tok_s": 144.57795724900313,
35
+ "tok_per_pass": 5.204081632653061,
36
+ "engine_decode_tok_s": 144.54878678148336
37
+ },
38
+ {
39
+ "t1": 0.1933470609999972,
40
+ "t256": 1.9575691860000006,
41
+ "tok_s": 144.53962252627315,
42
+ "tok_per_pass": 5.204081632653061,
43
+ "engine_decode_tok_s": 144.5337544901071
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "name": "chat",
49
+ "ctx": 23,
50
+ "sampling": "greedy",
51
+ "tok_s": 94.14964990891922,
52
+ "tok_s_min": 94.1166264394556,
53
+ "tok_s_max": 94.20753016127716,
54
+ "tokens_per_pass": 3.4,
55
+ "mode": "spec D=3 (MTP) + suffix C=32 + echo E=0/W1",
56
+ "runs": [
57
+ {
58
+ "t1": 0.19528555099998357,
59
+ "t256": 2.9020755450000024,
60
+ "tok_s": 94.20753016127716,
61
+ "tok_per_pass": 3.4,
62
+ "engine_decode_tok_s": 94.08600575494717
63
+ },
64
+ {
65
+ "t1": 0.19348424100002148,
66
+ "t256": 2.902888622000006,
67
+ "tok_s": 94.1166264394556,
68
+ "tok_per_pass": 3.4,
69
+ "engine_decode_tok_s": 94.07245870334948
70
+ },
71
+ {
72
+ "t1": 0.1935698220000006,
73
+ "t256": 2.902739122999975,
74
+ "tok_s": 94.12479312602487,
75
+ "tok_per_pass": 3.4,
76
+ "engine_decode_tok_s": 94.08108767335852
77
+ }
78
+ ]
79
+ }
80
+ ],
81
+ "batched": [],
82
+ "shared": [],
83
+ "ttft": [],
84
+ "errors": [],
85
+ "fusion": {
86
+ "x_fp8": 78,
87
+ "x_bf16": 0,
88
+ "q_fp8": 21
89
+ },
90
+ "streams": [
91
+ {
92
+ "id": "single/code",
93
+ "prompt": [
94
+ 750,
95
+ 75096,
96
+ 1445,
97
+ 1648
98
+ ],
99
+ "out": [
100
+ 715,
101
+ 262,
102
+ 421,
103
+ 308,
104
+ 2651,
105
+ 220,
106
+ 16,
107
+ 510,
108
+ 286,
109
+ 470,
110
+ 308,
111
+ 198,
112
+ 262,
113
+ 770,
114
+ 510,
115
+ 286,
116
+ 470,
117
+ 75096,
118
+ 1445,
119
+ 12,
120
+ 16,
121
+ 8,
122
+ 488,
123
+ 75096,
124
+ 1445,
125
+ 12,
126
+ 17,
127
+ 692,
128
+ 750,
129
+ 1887,
130
+ 3932,
131
+ 262,
132
+ 308,
133
+ 284,
134
+ 526,
135
+ 5384,
136
+ 445,
137
+ 6269,
138
+ 264,
139
+ 1372,
140
+ 25,
141
+ 40735,
142
+ 262,
143
+ 1173,
144
+ 955,
145
+ 579,
146
+ 39133,
147
+ 1445,
148
+ 4390,
149
+ 333,
150
+ 1304,
151
+ 606,
152
+ 563,
153
+ 621,
154
+ 13257,
155
+ 3817,
156
+ 21035,
157
+ 262,
158
+ 1887,
159
+ 368,
160
+ 220,
161
+ 671,
162
+ 1096,
163
+ 686,
164
+ 1598,
165
+ 279,
166
+ 1887,
167
+ 729,
168
+ 979,
169
+ 279,
170
+ 5316,
171
+ 374,
172
+ 15683,
173
+ 5961,
174
+ 198,
175
+ 257,
176
+ 1022,
177
+ 2,
178
+ 707,
179
+ 75096,
180
+ 1445,
181
+ 982,
182
+ 2,
183
+ 257,
184
+ 421,
185
+ 308,
186
+ 2651,
187
+ 220,
188
+ 16,
189
+ 510,
190
+ 2,
191
+ 260,
192
+ 470,
193
+ 308,
194
+ 198,
195
+ 2,
196
+ 257,
197
+ 770,
198
+ 510,
199
+ 2,
200
+ 260,
201
+ 470,
202
+ 75096,
203
+ 1445,
204
+ 12,
205
+ 16,
206
+ 8,
207
+ 488,
208
+ 75096,
209
+ 1445,
210
+ 12,
211
+ 17,
212
+ 692,
213
+ 2,
214
+ 707,
215
+ 1887,
216
+ 3932,
217
+ 2,
218
+ 257,
219
+ 308,
220
+ 284,
221
+ 526,
222
+ 5384,
223
+ 445,
224
+ 6269,
225
+ 264,
226
+ 1372,
227
+ 25,
228
+ 40735,
229
+ 2,
230
+ 257,
231
+ 1173,
232
+ 955,
233
+ 579,
234
+ 39133,
235
+ 1445,
236
+ 4390,
237
+ 2,
238
+ 421,
239
+ 1304,
240
+ 606,
241
+ 563,
242
+ 621,
243
+ 13257,
244
+ 3817,
245
+ 21035,
246
+ 2,
247
+ 257,
248
+ 1887,
249
+ 368,
250
+ 220,
251
+ 671,
252
+ 1096,
253
+ 686,
254
+ 1598,
255
+ 279,
256
+ 1887,
257
+ 729,
258
+ 979,
259
+ 279,
260
+ 5316,
261
+ 374,
262
+ 15683,
263
+ 5961,
264
+ 198,
265
+ 257,
266
+ 1022,
267
+ 2,
268
+ 707,
269
+ 75096,
270
+ 1445,
271
+ 982,
272
+ 2,
273
+ 257,
274
+ 421,
275
+ 308,
276
+ 2651,
277
+ 220,
278
+ 16,
279
+ 510,
280
+ 2,
281
+ 260,
282
+ 470,
283
+ 308,
284
+ 198,
285
+ 2,
286
+ 257,
287
+ 770,
288
+ 510,
289
+ 2,
290
+ 260,
291
+ 470,
292
+ 75096,
293
+ 1445,
294
+ 12,
295
+ 16,
296
+ 8,
297
+ 488,
298
+ 75096,
299
+ 1445,
300
+ 12,
301
+ 17,
302
+ 692,
303
+ 2,
304
+ 707,
305
+ 1887,
306
+ 3932,
307
+ 2,
308
+ 257,
309
+ 308,
310
+ 284,
311
+ 526,
312
+ 5384,
313
+ 445,
314
+ 6269,
315
+ 264,
316
+ 1372,
317
+ 25,
318
+ 40735,
319
+ 2,
320
+ 257,
321
+ 1173,
322
+ 955,
323
+ 579,
324
+ 39133,
325
+ 1445,
326
+ 4390,
327
+ 2,
328
+ 421,
329
+ 1304,
330
+ 606,
331
+ 563,
332
+ 621,
333
+ 13257,
334
+ 3817,
335
+ 21035,
336
+ 2,
337
+ 257,
338
+ 1887,
339
+ 368,
340
+ 220,
341
+ 671,
342
+ 1096,
343
+ 686,
344
+ 1598,
345
+ 279,
346
+ 1887,
347
+ 729,
348
+ 979,
349
+ 279,
350
+ 5316,
351
+ 374,
352
+ 15683,
353
+ 5961,
354
+ 198,
355
+ 257
356
+ ],
357
+ "T": 0.0
358
+ },
359
+ {
360
+ "id": "single/chat",
361
+ "prompt": [
362
+ 154822,
363
+ 154824,
364
+ 154826,
365
+ 25062,
366
+ 287,
367
+ 29905,
368
+ 371,
369
+ 25,
370
+ 7487,
371
+ 154827,
372
+ 840,
373
+ 20726,
374
+ 304,
375
+ 2326,
376
+ 22809,
377
+ 3170,
378
+ 279,
379
+ 12877,
380
+ 374,
381
+ 6303,
382
+ 13,
383
+ 154828,
384
+ 154841
385
+ ],
386
+ "out": [
387
+ 785,
388
+ 1196,
389
+ 6801,
390
+ 264,
391
+ 2326,
392
+ 1331,
393
+ 18351,
394
+ 16134,
395
+ 315,
396
+ 3170,
397
+ 279,
398
+ 12877,
399
+ 374,
400
+ 6303,
401
+ 13,
402
+ 1096,
403
+ 374,
404
+ 264,
405
+ 11411,
406
+ 21271,
407
+ 3405,
408
+ 911,
409
+ 13247,
410
+ 62524,
411
+ 71268,
412
+ 13,
413
+ 6771,
414
+ 752,
415
+ 1744,
416
+ 911,
417
+ 279,
418
+ 1376,
419
+ 3501,
420
+ 1447,
421
+ 16,
422
+ 13,
423
+ 8058,
424
+ 4145,
425
+ 5610,
426
+ 678,
427
+ 7986,
428
+ 315,
429
+ 9430,
430
+ 3100,
431
+ 198,
432
+ 17,
433
+ 13,
434
+ 3197,
435
+ 38810,
436
+ 28730,
437
+ 9234,
438
+ 594,
439
+ 16550,
440
+ 11,
441
+ 432,
442
+ 4530,
443
+ 3341,
444
+ 448,
445
+ 6819,
446
+ 34445,
447
+ 320,
448
+ 43814,
449
+ 25110,
450
+ 11,
451
+ 23487,
452
+ 340,
453
+ 18,
454
+ 13,
455
+ 10693,
456
+ 261,
457
+ 92080,
458
+ 320,
459
+ 12197,
460
+ 5457,
461
+ 30787,
462
+ 8,
463
+ 44219,
464
+ 803,
465
+ 1091,
466
+ 5021,
467
+ 92080,
468
+ 320,
469
+ 1151,
470
+ 5144,
471
+ 844,
472
+ 8,
473
+ 1959,
474
+ 419,
475
+ 374,
476
+ 13247,
477
+ 62524,
478
+ 71268,
479
+ 11,
480
+ 1380,
481
+ 71268,
482
+ 20569,
483
+ 374,
484
+ 64116,
485
+ 974,
486
+ 53810,
487
+ 311,
488
+ 279,
489
+ 11731,
490
+ 2355,
491
+ 315,
492
+ 45038,
493
+ 198,
494
+ 19,
495
+ 13,
496
+ 1096,
497
+ 36775,
498
+ 6303,
499
+ 3100,
500
+ 4041,
501
+ 518,
502
+ 601,
503
+ 504,
504
+ 678,
505
+ 17934,
506
+ 304,
507
+ 279,
508
+ 12877,
509
+ 11,
510
+ 3259,
511
+ 432,
512
+ 4994,
513
+ 6303,
514
+ 198,
515
+ 20,
516
+ 13,
517
+ 320,
518
+ 48423,
519
+ 25,
520
+ 3170,
521
+ 537,
522
+ 79095,
523
+ 30,
524
+ 5633,
525
+ 6414,
526
+ 525,
527
+ 803,
528
+ 16202,
529
+ 311,
530
+ 6303,
531
+ 11,
532
+ 323,
533
+ 279,
534
+ 7015,
535
+ 72220,
536
+ 2686,
537
+ 79095,
538
+ 692,
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
+ 4220,
592
+ 34445,
593
+ 44219,
594
+ 23263,
595
+ 92080,
596
+ 315,
597
+ 3100,
598
+ 320,
599
+ 12197,
600
+ 323,
601
+ 79095,
602
+ 8,
603
+ 1753,
604
+ 803,
605
+ 16495,
606
+ 1091,
607
+ 5021,
608
+ 92080,
609
+ 320,
610
+ 1151,
611
+ 323,
612
+ 18543,
613
+ 701,
614
+ 264,
615
+ 24768,
616
+ 3881,
617
+ 438,
618
+ 13247,
619
+ 62524,
620
+ 71268,
621
+ 382,
622
+ 83869,
623
+ 220,
624
+ 18,
625
+ 25,
626
+ 576,
627
+ 36775,
628
+ 6303,
629
+ 3100,
630
+ 293,
631
+ 29828,
632
+ 2163,
633
+ 279,
634
+ 16550,
635
+ 323,
636
+ 24417,
637
+ 1039,
638
+ 6414,
639
+ 504,
640
+ 678,
641
+ 17934,
642
+ 11
643
+ ],
644
+ "T": 0.0
645
+ }
646
+ ],
647
+ "wall_s": 194.6646957397461,
648
+ "mem_peak_gb_rank0": 102.4028672,
649
+ "symm_buffers": 5,
650
+ "symm_ok": true,
651
+ "job_s": 215.14953136444092
652
+ }