machine stringclasses 3
values | run stringclasses 5
values | commit stringclasses 7
values | file stringlengths 19 42 | task stringclasses 5
values | mode stringclasses 8
values | n int64 128 2k | bs int64 16 128 | cfg float64 0 1 | seconds float64 1.86 133 | seq_per_s float64 1.95 652 | peak_gb float64 0.85 35.7 | identical_to_first float64 0.09 1 | metric stringclasses 3
values | score float64 20.1 99.4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
h100 | bench | df2e848 | h100/bench/bench-sudoku-easy.json | sudoku-easy | eager | 2,000 | 128 | 0 | 8.547082 | 233.997981 | 0.875382 | 1 | solved% | 99.4 |
h100 | bench | df2e848 | h100/bench/bench-sudoku-easy.json | sudoku-easy | kv | 2,000 | 128 | 0 | 4.134659 | 483.715805 | 0.972867 | 1 | solved% | 99.4 |
h100 | bench | df2e848 | h100/bench/bench-sudoku-hard.json | sudoku-hard | eager | 2,000 | 128 | 0 | 8.540675 | 234.173517 | 0.875382 | 1 | solved% | 86.3 |
h100 | bench | df2e848 | h100/bench/bench-sudoku-hard.json | sudoku-hard | kv | 2,000 | 128 | 0 | 4.133409 | 483.862082 | 0.972867 | 1 | solved% | 86.3 |
h100 | bench | df2e848 | h100/bench/bench-sudoku-medium.json | sudoku-medium | eager | 2,000 | 128 | 0 | 8.519924 | 234.743879 | 0.875382 | 1 | solved% | 96.4 |
h100 | bench | df2e848 | h100/bench/bench-sudoku-medium.json | sudoku-medium | kv | 2,000 | 128 | 0 | 4.12995 | 484.267318 | 0.972867 | 1 | solved% | 96.4 |
h100 | bench | df2e848 | h100/bench/bench-wmt14-bs16.json | wmt14 | eager | 1,024 | 16 | 0 | 13.602598 | 75.279735 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | bench | df2e848 | h100/bench/bench-wmt14-bs16.json | wmt14 | kv | 1,024 | 16 | 0 | 7.394167 | 138.487532 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | bench | df2e848 | h100/bench/bench-wmt14-bs64.json | wmt14 | eager | 1,024 | 64 | 0 | 12.70865 | 80.575044 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | bench | df2e848 | h100/bench/bench-wmt14-bs64.json | wmt14 | kv | 1,024 | 64 | 0 | 6.138602 | 166.813225 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | bench | df2e848 | h100/bench/bench-wmt14-cfg1-bs16.json | wmt14 | eager | 1,024 | 16 | 1 | 24.59249 | 41.638728 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | bench | df2e848 | h100/bench/bench-wmt14-cfg1-bs16.json | wmt14 | kv | 1,024 | 16 | 1 | 12.287212 | 83.338678 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | bench | df2e848 | h100/bench/bench-xsum-bs16.json | xsum | eager | 1,024 | 16 | 0 | 44.791505 | 22.861478 | 1.213125 | 1 | ROUGE-L | 27.767115 |
h100 | bench | df2e848 | h100/bench/bench-xsum-bs16.json | xsum | kv | 1,024 | 16 | 0 | 14.539413 | 70.429254 | 1.768244 | 1 | ROUGE-L | 27.767115 |
h100 | bench | df2e848 | h100/bench/bench-xsum-bs64.json | xsum | eager | 1,024 | 64 | 0 | 44.611654 | 22.953643 | 2.547451 | 1 | ROUGE-L | 27.767115 |
h100 | bench | df2e848 | h100/bench/bench-xsum-bs64.json | xsum | kv | 1,024 | 64 | 0 | 13.262847 | 77.208158 | 4.781563 | 1 | ROUGE-L | 27.767115 |
h100 | bench | df2e848 | h100/bench/bench-xsum-cfg05-bs16.json | xsum | eager | 1,024 | 16 | 0.5 | 86.906053 | 11.782839 | 1.654914 | 1 | ROUGE-L | 27.953548 |
h100 | bench | df2e848 | h100/bench/bench-xsum-cfg05-bs16.json | xsum | kv | 1,024 | 16 | 0.5 | 25.528679 | 40.111751 | 2.771839 | 1 | ROUGE-L | 27.953548 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | eager | 1,024 | 16 | 0 | 13.916049 | 73.584106 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | kv | 1,024 | 16 | 0 | 7.651083 | 133.837259 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | kv-tf32 | 1,024 | 16 | 0 | 5.411388 | 189.230573 | 1.79607 | 0.901367 | BLEU | 20.596381 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | kv-bf16 | 1,024 | 16 | 0 | 6.030894 | 169.792409 | 1.79607 | 0.265625 | BLEU | 20.389159 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | kv-compile | 1,024 | 16 | 0 | 6.114989 | 167.457375 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | kv-cudagraph | 1,024 | 16 | 0 | 5.988632 | 170.990623 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | kv-bf16-cudagraph | 1,024 | 16 | 0 | 2.648802 | 386.589828 | 1.79607 | 0.276367 | BLEU | 20.348869 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs16.json | wmt14 | eager-cudagraph | 1,024 | 16 | 0 | 11.989581 | 85.407486 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | eager | 1,024 | 64 | 0 | 12.555607 | 81.557191 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | kv | 1,024 | 64 | 0 | 6.090324 | 168.135565 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | kv-tf32 | 1,024 | 64 | 0 | 2.795954 | 366.243551 | 3.687346 | 0.90918 | BLEU | 20.589322 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | kv-bf16 | 1,024 | 64 | 0 | 2.543506 | 402.593965 | 3.687346 | 0.268555 | BLEU | 20.370811 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | kv-compile | 1,024 | 64 | 0 | 5.265099 | 194.488287 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | kv-cudagraph | 1,024 | 64 | 0 | 5.209827 | 196.551645 | 3.687412 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | kv-bf16-cudagraph | 1,024 | 64 | 0 | 1.85782 | 551.183548 | 3.687412 | 0.280273 | BLEU | 20.396119 |
h100 | sweep | df2e848 | h100/sweep/wmt14-bs64.json | wmt14 | eager-cudagraph | 1,024 | 64 | 0 | 11.157538 | 91.776519 | 3.687412 | 1 | BLEU | 20.585948 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | eager | 1,024 | 16 | 1 | 24.743364 | 41.384833 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | kv | 1,024 | 16 | 1 | 12.291952 | 83.306539 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | kv-tf32 | 1,024 | 16 | 1 | 5.78164 | 177.112364 | 1.79611 | 0.869141 | BLEU | 22.103905 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | kv-bf16 | 1,024 | 16 | 1 | 6.146955 | 166.586542 | 1.79611 | 0.094727 | BLEU | 21.998237 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | kv-compile | 1,024 | 16 | 1 | 10.215753 | 100.237352 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | kv-cudagraph | 1,024 | 16 | 1 | 10.111285 | 101.272988 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | kv-bf16-cudagraph | 1,024 | 16 | 1 | 3.370292 | 303.831285 | 1.79611 | 0.112305 | BLEU | 22.01112 |
h100 | sweep | df2e848 | h100/sweep/wmt14-cfg1-bs16.json | wmt14 | eager-cudagraph | 1,024 | 16 | 1 | 21.459791 | 47.717146 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | eager | 1,024 | 16 | 0 | 44.694558 | 22.911067 | 1.213125 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | kv | 1,024 | 16 | 0 | 14.493293 | 70.653372 | 1.768244 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | kv-tf32 | 1,024 | 16 | 0 | 7.680655 | 133.321954 | 1.768244 | 0.954102 | ROUGE-L | 27.744868 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | kv-bf16 | 1,024 | 16 | 0 | 5.734631 | 178.564226 | 1.670058 | 0.548828 | ROUGE-L | 27.757229 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | kv-compile | 1,024 | 16 | 0 | 12.509455 | 81.858083 | 1.667581 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | kv-cudagraph | 1,024 | 16 | 0 | 12.437507 | 82.331611 | 1.124483 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | kv-bf16-cudagraph | 1,024 | 16 | 0 | 3.848979 | 266.044553 | 1.21988 | 0.561523 | ROUGE-L | 27.756214 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs16.json | xsum | eager-cudagraph | 1,024 | 16 | 0 | 40.814633 | 25.089041 | 1.124483 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | eager | 1,024 | 64 | 0 | 44.143932 | 23.196846 | 2.547451 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | kv | 1,024 | 64 | 0 | 13.163084 | 77.793319 | 4.781563 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | kv-tf32 | 1,024 | 64 | 0 | 6.580004 | 155.623006 | 4.781563 | 0.941406 | ROUGE-L | 27.736587 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | kv-bf16 | 1,024 | 64 | 0 | 4.777813 | 214.324018 | 3.855117 | 0.555664 | ROUGE-L | 27.77177 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | kv-compile | 1,024 | 64 | 0 | 11.564017 | 88.550544 | 4.378911 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | kv-cudagraph | 1,024 | 64 | 0 | 11.576999 | 88.451244 | 2.208617 | 1 | ROUGE-L | 27.767115 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | kv-bf16-cudagraph | 1,024 | 64 | 0 | 3.208047 | 319.197296 | 2.069839 | 0.574219 | ROUGE-L | 27.747811 |
h100 | sweep | df2e848 | h100/sweep/xsum-bs64.json | xsum | eager-cudagraph | 1,024 | 64 | 0 | 40.184461 | 25.482487 | 2.208617 | 1 | ROUGE-L | 27.767115 |
h100 | reuse | b744792 | h100/reuse/sudoku-easy.json | sudoku-easy | eager | 2,000 | 128 | 0 | 8.52293 | 234.66109 | 0.875382 | 1 | solved% | 99.4 |
h100 | reuse | b744792 | h100/reuse/sudoku-easy.json | sudoku-easy | kv | 2,000 | 128 | 0 | 3.628318 | 551.219584 | 0.979125 | 1 | solved% | 99.4 |
h100 | reuse | b744792 | h100/reuse/sudoku-hard.json | sudoku-hard | eager | 2,000 | 128 | 0 | 8.500169 | 235.289438 | 0.875382 | 1 | solved% | 86.3 |
h100 | reuse | b744792 | h100/reuse/sudoku-hard.json | sudoku-hard | kv | 2,000 | 128 | 0 | 3.604202 | 554.907876 | 0.979125 | 1 | solved% | 86.3 |
h100 | reuse | b744792 | h100/reuse/sudoku-medium.json | sudoku-medium | eager | 2,000 | 128 | 0 | 8.479615 | 235.859763 | 0.875382 | 1 | solved% | 96.4 |
h100 | reuse | b744792 | h100/reuse/sudoku-medium.json | sudoku-medium | kv | 2,000 | 128 | 0 | 3.599723 | 555.598356 | 0.979125 | 1 | solved% | 96.4 |
h100 | reuse | b744792 | h100/reuse/wmt14-bs16.json | wmt14 | eager | 1,024 | 16 | 0 | 13.72745 | 74.595064 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | reuse | b744792 | h100/reuse/wmt14-bs16.json | wmt14 | kv | 1,024 | 16 | 0 | 6.518239 | 157.097639 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | reuse | b744792 | h100/reuse/wmt14-bs16.json | wmt14 | kv-cudagraph | 1,024 | 16 | 0 | 5.152518 | 198.737786 | 1.79607 | 1 | BLEU | 20.585948 |
h100 | reuse | b744792 | h100/reuse/wmt14-bs16.json | wmt14 | kv-bf16-cudagraph | 1,024 | 16 | 0 | 2.195687 | 466.368913 | 1.79607 | 0.276367 | BLEU | 20.427545 |
h100 | reuse | b744792 | h100/reuse/wmt14-bs64.json | wmt14 | eager | 1,024 | 64 | 0 | 12.553886 | 81.56837 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | reuse | b744792 | h100/reuse/wmt14-bs64.json | wmt14 | kv | 1,024 | 64 | 0 | 5.206587 | 196.673961 | 3.687346 | 1 | BLEU | 20.585948 |
h100 | reuse | b744792 | h100/reuse/wmt14-cfg1-bs16.json | wmt14 | eager | 1,024 | 16 | 1 | 24.63677 | 41.56389 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | reuse | b744792 | h100/reuse/wmt14-cfg1-bs16.json | wmt14 | kv | 1,024 | 16 | 1 | 10.473089 | 97.774405 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | reuse | b744792 | h100/reuse/wmt14-cfg1-bs16.json | wmt14 | kv-cudagraph | 1,024 | 16 | 1 | 8.54187 | 119.880068 | 1.79611 | 1 | BLEU | 22.093163 |
h100 | reuse | b744792 | h100/reuse/wmt14-cfg1-bs16.json | wmt14 | kv-bf16-cudagraph | 1,024 | 16 | 1 | 2.865431 | 357.363332 | 1.79611 | 0.112305 | BLEU | 21.958723 |
h100 | reuse | b744792 | h100/reuse/xsum-bs16.json | xsum | eager | 1,024 | 16 | 0 | 44.7112 | 22.902539 | 1.213125 | 1 | ROUGE-L | 27.767115 |
h100 | reuse | b744792 | h100/reuse/xsum-bs16.json | xsum | kv | 1,024 | 16 | 0 | 10.037559 | 102.016839 | 1.733181 | 1 | ROUGE-L | 27.767115 |
h100 | reuse | b744792 | h100/reuse/xsum-bs16.json | xsum | kv-cudagraph | 1,024 | 16 | 0 | 8.85163 | 115.684902 | 1.733181 | 1 | ROUGE-L | 27.767115 |
h100 | reuse | b744792 | h100/reuse/xsum-bs16.json | xsum | kv-bf16-cudagraph | 1,024 | 16 | 0 | 3.451831 | 296.654128 | 1.636789 | 0.535156 | ROUGE-L | 27.74435 |
h100 | reuse | b744792 | h100/reuse/xsum-bs64.json | xsum | eager | 1,024 | 64 | 0 | 44.163142 | 23.186756 | 2.547451 | 1 | ROUGE-L | 27.767115 |
h100 | reuse | b744792 | h100/reuse/xsum-bs64.json | xsum | kv | 1,024 | 64 | 0 | 8.692876 | 117.797602 | 4.642362 | 1 | ROUGE-L | 27.767115 |
h100 | reuse | b744792 | h100/reuse/xsum-cfg05-bs16.json | xsum | eager | 1,024 | 16 | 0.5 | 86.417117 | 11.849504 | 1.654914 | 1 | ROUGE-L | 27.953548 |
h100 | reuse | b744792 | h100/reuse/xsum-cfg05-bs16.json | xsum | kv | 1,024 | 16 | 0.5 | 16.983008 | 60.295563 | 2.703156 | 1 | ROUGE-L | 27.953548 |
h100 | reuse | b744792 | h100/reuse/xsum-cfg05-bs16.json | xsum | kv-cudagraph | 1,024 | 16 | 0.5 | 15.441573 | 66.314487 | 2.703812 | 1 | ROUGE-L | 27.953548 |
h100 | reuse | b744792 | h100/reuse/xsum-cfg05-bs16.json | xsum | kv-bf16-cudagraph | 1,024 | 16 | 0.5 | 5.546961 | 184.605595 | 2.344407 | 0.508789 | ROUGE-L | 27.878399 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-sudoku-easy.json | sudoku-easy | eager | 2,000 | 128 | 0 | 6.488666 | 308.229769 | 0.850216 | 1 | solved% | 99.4 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-sudoku-easy.json | sudoku-easy | kv | 2,000 | 128 | 0 | 3.06721 | 652.058378 | 1.277545 | 1 | solved% | 99.4 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-sudoku-hard.json | sudoku-hard | eager | 2,000 | 128 | 0 | 6.475652 | 308.849229 | 0.850216 | 1 | solved% | 86.25 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-sudoku-hard.json | sudoku-hard | kv | 2,000 | 128 | 0 | 3.083523 | 648.60868 | 1.277545 | 1 | solved% | 86.25 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-sudoku-medium.json | sudoku-medium | eager | 2,000 | 128 | 0 | 6.480282 | 308.628565 | 0.850216 | 1 | solved% | 96.45 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-sudoku-medium.json | sudoku-medium | kv | 2,000 | 128 | 0 | 3.07195 | 651.052322 | 1.277545 | 1 | solved% | 96.45 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-wmt14-bs16.json | wmt14 | eager | 1,024 | 16 | 0 | 9.900643 | 103.427629 | 1.771036 | 1 | BLEU | 20.574751 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-wmt14-bs16.json | wmt14 | kv | 1,024 | 16 | 0 | 7.445829 | 137.526661 | 1.771036 | 1 | BLEU | 20.574751 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-wmt14-bs64.json | wmt14 | eager | 1,024 | 64 | 0 | 8.999637 | 113.782371 | 3.661525 | 1 | BLEU | 20.613356 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-wmt14-bs64.json | wmt14 | kv | 1,024 | 64 | 0 | 4.325194 | 236.752409 | 3.661525 | 1 | BLEU | 20.613356 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-wmt14-cfg1-bs16.json | wmt14 | eager | 1,024 | 16 | 1 | 17.295281 | 59.2069 | 1.771076 | 1 | BLEU | 22.098 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-wmt14-cfg1-bs16.json | wmt14 | kv | 1,024 | 16 | 1 | 9.036027 | 113.324145 | 1.771076 | 0.999023 | BLEU | 22.098 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-xsum-bs16.json | xsum | eager | 1,024 | 16 | 0 | 33.234986 | 30.810905 | 1.186779 | 1 | ROUGE-L | 27.767115 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-xsum-bs16.json | xsum | kv | 1,024 | 16 | 0 | 11.576246 | 88.457004 | 2.346992 | 1 | ROUGE-L | 27.767115 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-xsum-bs64.json | xsum | eager | 1,024 | 64 | 0 | 35.179084 | 29.108205 | 2.522416 | 1 | ROUGE-L | 27.755955 |
rtx4090 | bench | eb6da99 | rtx4090/bench/bench-xsum-bs64.json | xsum | kv | 1,024 | 64 | 0 | 10.44075 | 98.077248 | 7.171661 | 1 | ROUGE-L | 27.755955 |
Next Concept Models: reproduction results
Raw results from reproducing Next Concept Models with the released code (HazyResearch/ncm) and checkpoints (hazyresearch/ncm-checkpoints). The runs were on an Apple M1 Max, a rented RTX 4090 and a rented H100.
In short:
- The quality numbers reproduce. Every task with a released checkpoint lands within run-to-run noise of the paper.
- The KV cache gives identical outputs once fixed. With the fix (#5), cached and uncached generation give identical outputs, and the cached path is 2.1–5.1× faster on an H100.
- The paper's wall-clock times are only reached with reduced precision. With the released code in fp32, XSum takes 44.7 s for the paper's timing protocol; Figure 1 shows about 3.4 s. Only bf16 with the cache and CUDA graphs comes close (3.45 s). See issue #9.
Code: velaia/ncm, branch mac-mps. Changes sent upstream:
- #4: free
generate()'s tensors on return (memory leak) - #5: fix the KV-cached
generate()path - #6: run evaluation on Apple silicon (MPS) and CPU
Quality
Greedy decoding with the eval configs shipped with the checkpoints. Mac runs used the uncached path. The 4090 and H100 runs used the KV cache.
| Task | Metric | M1 Max | RTX 4090 | H100 | Paper |
|---|---|---|---|---|---|
| WMT14 De→En, 3,003 sentences | BLEU / lowercased | 21.72 / 22.61 | 21.73 / 22.62 | 21.72 / 22.61 | 22.6 |
| WMT14 + CFG 1.0 | BLEU / lowercased | 22.95 / 23.84 | 22.96 / 23.85 | 22.96 / 23.84 | 23.9 |
| XSum, 11,334 articles | ROUGE-1 / 2 / L | 34.92 / 12.71 / 27.93 | 34.92 / 12.71 / 27.93 | 35.0 / 12.8 / 28.0 | |
| Sudoku easy / medium / hard, 2,000 each | % solved | 99.4 / 96.4 / 86.3 | 99.40 / 96.45 / 86.25 | 99.4 / 96.4 / 86.3 | 99.5 / 96.5 / 86.1 |
| TinyStories, 5 seeds × 256 | gen. PPL (entropy) | 15.98 ± 0.28 (3.97) | 15.41 (3.98) | ||
| LM1B small, 5 seeds × 256 | gen. PPL (entropy) | 92.60 ± 1.41 (4.31) | 93.05 (4.31) | ||
| LM1B medium | gen. PPL (entropy) | 88.96 ± 1.68 (4.34) | plot only | ||
| LM1B large | gen. PPL (entropy) | 81.41 ± 1.95 (4.34) | plot only |
The paper's WMT14 numbers match lowercased BLEU. The Mac and the 4090 differ by about 0.01 BLEU, and by one Sudoku puzzle on medium and on hard. These differences come from floating-point differences between the GPUs. On each machine, cached and uncached outputs are identical.
The repo has no OpenWebText checkpoint, MBR decoding, baselines or training code, so those parts of the paper are out of scope.
Speed
scripts/bench_kv.py runs the same inputs through each mode, with the uncached fp32 run (eager) first. "Identical" is the share of outputs that match eager token for token.
Timing follows Section 4.6 of the paper: 1,024 inputs at batch 16. It covers generation plus VQ decoding to token ids, after one warmup batch, with the device synchronised. It excludes model loading, detokenisation and scoring.
H100 SXM 80 GB, at b744792 (h100/reuse/):
| Task (NFE) | eager | kv | kv + CUDA graphs | kv + bf16 + CUDA graphs |
|---|---|---|---|---|
| WMT14 (11) | 13.73 s | 6.52 s, 100% | 5.15 s, 100% | 2.20 s, 27.6%, BLEU 20.43 vs 20.59 |
| WMT14 + CFG 1.0 (22) | 24.64 s | 10.47 s, 100% | 8.54 s, 100% | 2.87 s, 11.2%, BLEU 21.96 vs 22.09 |
| XSum (9) | 44.71 s | 10.04 s, 100% | 8.85 s, 100% | 3.45 s, 53.5%, ROUGE-L 27.74 vs 27.77 |
| XSum + CFG 0.5 (18) | 86.42 s | 16.98 s, 100% | 15.44 s, 100% | 5.55 s, 50.9%, ROUGE-L 27.88 vs 27.95 |
| Sudoku ×3, 2,000 at batch 128 (12) | 8.48–8.52 s | 3.60–3.63 s, 100% |
NFE counts generator forward passes per generate() call. We measured it with a hook on the first transformer block. The paper's Table 2 lists 8 for XSum.
Batch size barely matters without the cache: XSum takes 44.16 s at batch 64. Figure 1 of the paper shows about 3.4 s for XSum and about 4.9 s with CFG (read off the log axis).
benchmarks.csv has every bench row, with its machine, run and commit, including:
- TF32, bf16 and
torch.compilemodes in thesweepruns - the 4090 and Mac numbers
Memory
Before #4, generate() kept its tensors alive after returning, until Python's cyclic garbage collector ran. The cause was a reference cycle from a getattr on a missing OmegaConf key.
- Uncached path, RTX 4090, 1,024 sequences: peak memory dropped from 5.82 GB to 2.52 GB on XSum at batch 64 (
rtx4090/pre-fix/summary.txtvsrtx4090/bench/). - KV-cached path: before the fix and the cache memory trimming in
eb6da99, XSum at batch 16 peaked at 11.54 GB (2.35 GB after), and batch 64 ran out of memory on the 24 GB card.
Layout
| Path | What | Commit |
|---|---|---|
h100/bench/, h100/eval/, h100/outputs/ |
bench JSONs, full-test-set scores and generated outputs (cached path) | df2e848 |
h100/sweep/ |
precision / compile / CUDA-graph sweep | df2e848 |
h100/reuse/ |
re-timing after the cache reuses the level-0 pass's prefix K/V | b744792 |
rtx4090/bench/, rtx4090/eval/, rtx4090/outputs/ |
as for the H100 | eb6da99 |
rtx4090/pre-fix/ |
uncached path before the memory fix | 2b8c50f |
rtx4090/sweep/ |
precision / compile / CUDA-graph sweep | c30081e |
mac/bench/ |
eager vs kv, stateful cache with the mask fix | 00184d7 (Sudoku: 2b8c50f) |
mac/bench-pr-branch/, mac/eval/wmt14-kv-pr-branch.txt |
the #5 branch on top of the #6 commit | 60c947b + 1281b68 |
mac/eval/, mac/outputs/ |
full evaluations, uncached path | 57233ec (WMT14), 00184d7 (TinyStories, LM1B) |
*/nvidia-smi.txt, */torch.txt, */commit.txt |
GPU, driver, PyTorch version, commit at the start of the run |
Commits are on velaia/ncm, branch mac-mps, except 60c947b (branch kv-cache) and 1281b68 (branch mps-cpu). df2e848 has the same model code as c30081e; only the cloud runner scripts differ.
outputs/*.jsonl hold the generated text only, one object per input: idx, the index into the test set, and output; for the unconditional tasks, also seed. References and source texts are not included; they are in the original datasets.
Machines and caveats
- M1 Max, 64 GB, macOS 26.5, PyTorch 2.14.1, MPS. Needs the changes in #6: float32 instead of float64 for the frequency penalty, and a replacement for area interpolation.
- RTX 4090 24 GB (vast.ai), PyTorch 2.14.1+cu126.
- H100 SXM 80 GB HBM3 (vast.ai), PyTorch 2.14.1+cu126.
- This host was power-capped at 500 W instead of the stock 700 W (
h100/nvidia-smi.txt). - Absolute H100 times are therefore likely slower than on a stock H100 like the paper's.
- This host was power-capped at 500 W instead of the stock 700 W (
- cuDNN TF32 is off in
bench_kv.py. With it on, 1 of 1,024 guided WMT14 translations differed between cached and uncached in one early 4090 run. - The 4090 and Mac speed numbers predate
b744792, so their KV-cache columns are slightly pessimistic. So is everything inh100/bench/andh100/sweep/.
- Downloads last month
- 66