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