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,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": 82.67470955848694,
6
+ "weight_bytes_rank0": 93614947776,
7
+ "state_bytes_rank0": 24379392,
8
+ "expert_shard": "ep_tp",
9
+ "mem_alloc_gb_rank0": 100.34678528,
10
+ "Bmax": 1,
11
+ "smax": 2048,
12
+ "mtp": true,
13
+ "single": [
14
+ {
15
+ "name": "code",
16
+ "ctx": 4,
17
+ "sampling": "greedy",
18
+ "tok_s": 265.42149871911954,
19
+ "tok_s_min": 264.637445278186,
20
+ "tok_s_max": 266.2055521600531,
21
+ "tokens_per_pass": 9.807692307692308,
22
+ "mode": "spec D=3 (MTP) + suffix C=32 + echo E=0/W1",
23
+ "runs": [
24
+ {
25
+ "t1": 0.16627584299999398,
26
+ "t256": 1.124182234999978,
27
+ "tok_s": 266.2055521600531,
28
+ "tok_per_pass": 9.807692307692308,
29
+ "engine_decode_tok_s": 266.00712810643256
30
+ },
31
+ {
32
+ "t1": 0.1651809569999898,
33
+ "t256": 1.1287634150000088,
34
+ "tok_s": 264.637445278186,
35
+ "tok_per_pass": 9.807692307692308,
36
+ "engine_decode_tok_s": 265.8285620980897
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "chat",
42
+ "ctx": 23,
43
+ "sampling": "greedy",
44
+ "tok_s": 95.93417586474035,
45
+ "tok_s_min": 95.55413746970169,
46
+ "tok_s_max": 96.314214259779,
47
+ "tokens_per_pass": 3.591549295774648,
48
+ "mode": "spec D=3 (MTP) + suffix C=32 + echo E=0/W1",
49
+ "runs": [
50
+ {
51
+ "t1": 0.18859153799999717,
52
+ "t256": 2.857235793000001,
53
+ "tok_s": 95.55413746970169,
54
+ "tok_per_pass": 3.591549295774648,
55
+ "engine_decode_tok_s": 94.86788129457648
56
+ },
57
+ {
58
+ "t1": 0.20454864900000302,
59
+ "t256": 2.852132933000007,
60
+ "tok_s": 96.314214259779,
61
+ "tok_per_pass": 3.591549295774648,
62
+ "engine_decode_tok_s": 94.98834422054581
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
+ 257,
154
+ 671,
155
+ 1096,
156
+ 1555,
157
+ 374,
158
+ 7402,
159
+ 198,
160
+ 257,
161
+ 671,
162
+ 1096,
163
+ 1555,
164
+ 374,
165
+ 7402,
166
+ 198,
167
+ 257,
168
+ 671,
169
+ 1096,
170
+ 1555,
171
+ 374,
172
+ 7402,
173
+ 198,
174
+ 257,
175
+ 671,
176
+ 1096,
177
+ 1555,
178
+ 374,
179
+ 7402,
180
+ 198,
181
+ 257,
182
+ 671,
183
+ 1096,
184
+ 1555,
185
+ 374,
186
+ 7402,
187
+ 198,
188
+ 257,
189
+ 671,
190
+ 1096,
191
+ 1555,
192
+ 374,
193
+ 7402,
194
+ 198,
195
+ 257,
196
+ 671,
197
+ 1096,
198
+ 1555,
199
+ 374,
200
+ 7402,
201
+ 198,
202
+ 257,
203
+ 671,
204
+ 1096,
205
+ 1555,
206
+ 374,
207
+ 7402,
208
+ 198,
209
+ 257,
210
+ 671,
211
+ 1096,
212
+ 1555,
213
+ 374,
214
+ 7402,
215
+ 198,
216
+ 257,
217
+ 671,
218
+ 1096,
219
+ 1555,
220
+ 374,
221
+ 7402,
222
+ 198,
223
+ 257,
224
+ 671,
225
+ 1096,
226
+ 1555,
227
+ 374,
228
+ 7402,
229
+ 198,
230
+ 257,
231
+ 671,
232
+ 1096,
233
+ 1555,
234
+ 374,
235
+ 7402,
236
+ 198,
237
+ 257,
238
+ 671,
239
+ 1096,
240
+ 1555,
241
+ 374,
242
+ 7402,
243
+ 198,
244
+ 257,
245
+ 671,
246
+ 1096,
247
+ 1555,
248
+ 374,
249
+ 7402,
250
+ 198,
251
+ 257,
252
+ 671,
253
+ 1096,
254
+ 1555,
255
+ 374,
256
+ 7402,
257
+ 198,
258
+ 257,
259
+ 671,
260
+ 1096,
261
+ 1555,
262
+ 374,
263
+ 7402,
264
+ 198,
265
+ 257,
266
+ 671,
267
+ 1096,
268
+ 1555,
269
+ 374,
270
+ 7402,
271
+ 198,
272
+ 257,
273
+ 671,
274
+ 1096,
275
+ 1555,
276
+ 374,
277
+ 7402,
278
+ 198,
279
+ 257,
280
+ 671,
281
+ 1096,
282
+ 1555,
283
+ 374,
284
+ 7402,
285
+ 198,
286
+ 257,
287
+ 671,
288
+ 1096,
289
+ 1555,
290
+ 374,
291
+ 7402,
292
+ 198,
293
+ 257,
294
+ 671,
295
+ 1096,
296
+ 1555,
297
+ 374,
298
+ 7402,
299
+ 198,
300
+ 257,
301
+ 671,
302
+ 1096,
303
+ 1555,
304
+ 374,
305
+ 7402,
306
+ 198,
307
+ 257,
308
+ 671,
309
+ 1096,
310
+ 1555,
311
+ 374,
312
+ 7402,
313
+ 198,
314
+ 257,
315
+ 671,
316
+ 1096,
317
+ 1555,
318
+ 374,
319
+ 7402,
320
+ 198,
321
+ 257,
322
+ 671,
323
+ 1096,
324
+ 1555,
325
+ 374,
326
+ 7402,
327
+ 198,
328
+ 257,
329
+ 671,
330
+ 1096,
331
+ 1555,
332
+ 374,
333
+ 7402,
334
+ 198,
335
+ 257,
336
+ 671,
337
+ 1096,
338
+ 1555,
339
+ 374,
340
+ 7402,
341
+ 198
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
+ 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
+ ],
630
+ "T": 0.0
631
+ }
632
+ ],
633
+ "wall_s": 140.91508769989014,
634
+ "mem_peak_gb_rank0": 103.028304384,
635
+ "symm_buffers": 5,
636
+ "symm_ok": true,
637
+ "job_s": 158.7017924785614
638
+ }