Spaces:
Running
Running
File size: 8,225 Bytes
35f0356 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | {
"env": {
"python": "3.12.3",
"torch": "2.15.0+cpu",
"transformers": "5.22.2",
"cuda": false
},
"model": "/tmp/tiny-qwen",
"adapter": null,
"dtype": "torch.float32",
"decoding": "greedy, EOS ignored",
"repeats": 1,
"warmup": 1,
"kv_bytes_per_token_theory": 256,
"results": [
{
"input_tokens": 32,
"output_tokens": 8,
"modes": {
"hf_nocache": {
"prefill_s": 0.007317987000078574,
"decode_s": 0.08488595699998314,
"total_s": 0.09220394400006171,
"tokens_per_s": 86.76418440402773,
"decode_tokens_per_s": 82.46358110801991,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_nocache": {
"prefill_s": 0.01265770899999552,
"decode_s": 0.06466986500004168,
"total_s": 0.0773275740000372,
"tokens_per_s": 103.45598065699244,
"decode_tokens_per_s": 108.24206916150959,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache": {
"prefill_s": 0.005451218999951379,
"decode_s": 0.013251598000010745,
"total_s": 0.018702816999962124,
"tokens_per_s": 427.7430506867602,
"decode_tokens_per_s": 528.2381792742524,
"peak_mem_mb": null,
"cache_mb": 0.009521484375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache_refattn": {
"prefill_s": 0.0056102620000046954,
"decode_s": 0.013915139999994608,
"total_s": 0.019525401999999303,
"tokens_per_s": 409.7226781809811,
"decode_tokens_per_s": 503.049196774356,
"peak_mem_mb": null,
"cache_mb": 0.009521484375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"hf_cache": {
"prefill_s": 0.005608906000020397,
"decode_s": 0.014035755000008976,
"total_s": 0.019644661000029373,
"tokens_per_s": 407.23532974114636,
"decode_tokens_per_s": 498.7262886816935,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
}
}
},
{
"input_tokens": 32,
"output_tokens": 16,
"modes": {
"hf_nocache": {
"prefill_s": 0.012575818999948751,
"decode_s": 0.20483556700003192,
"total_s": 0.21741138599998067,
"tokens_per_s": 73.59320178383584,
"decode_tokens_per_s": 73.22946995820146,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_nocache": {
"prefill_s": 0.013488909999978205,
"decode_s": 0.13026361799995811,
"total_s": 0.14375252799993632,
"tokens_per_s": 111.30239045261929,
"decode_tokens_per_s": 115.15110842387952,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache": {
"prefill_s": 0.0054928939999854265,
"decode_s": 0.027969528999960858,
"total_s": 0.033462422999946284,
"tokens_per_s": 478.1482799385354,
"decode_tokens_per_s": 536.2979119176798,
"peak_mem_mb": null,
"cache_mb": 0.011474609375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache_refattn": {
"prefill_s": 0.00561342200001036,
"decode_s": 0.02960321299997304,
"total_s": 0.0352166349999834,
"tokens_per_s": 454.3307445474999,
"decode_tokens_per_s": 506.70175565110657,
"peak_mem_mb": null,
"cache_mb": 0.011474609375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"hf_cache": {
"prefill_s": 0.005777425000019321,
"decode_s": 0.03093212199996742,
"total_s": 0.03670954699998674,
"tokens_per_s": 435.8539210523567,
"decode_tokens_per_s": 484.932782820907,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
}
}
},
{
"input_tokens": 64,
"output_tokens": 8,
"modes": {
"hf_nocache": {
"prefill_s": 0.022042528000042694,
"decode_s": 0.17682645099989713,
"total_s": 0.19886897899993983,
"tokens_per_s": 40.22749068371503,
"decode_tokens_per_s": 39.586837604991985,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_nocache": {
"prefill_s": 0.02301887299995542,
"decode_s": 0.18032055200001196,
"total_s": 0.20333942499996738,
"tokens_per_s": 39.34308361500129,
"decode_tokens_per_s": 38.81975694040431,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache": {
"prefill_s": 0.021187446999988424,
"decode_s": 0.017618621999986317,
"total_s": 0.03880606899997474,
"tokens_per_s": 206.15332101803992,
"decode_tokens_per_s": 397.3068949436248,
"peak_mem_mb": null,
"cache_mb": 0.017333984375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache_refattn": {
"prefill_s": 0.021761546999982784,
"decode_s": 0.01979657499998666,
"total_s": 0.041558121999969444,
"tokens_per_s": 192.50148021621098,
"decode_tokens_per_s": 353.5965185899438,
"peak_mem_mb": null,
"cache_mb": 0.017333984375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"hf_cache": {
"prefill_s": 0.02218399900004897,
"decode_s": 0.02140362499994808,
"total_s": 0.04358762399999705,
"tokens_per_s": 183.53833647827514,
"decode_tokens_per_s": 327.0474043540279,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
}
}
},
{
"input_tokens": 64,
"output_tokens": 16,
"modes": {
"hf_nocache": {
"prefill_s": 0.02384031100007178,
"decode_s": 0.41284213199992337,
"total_s": 0.43668244299999515,
"tokens_per_s": 36.63989761090573,
"decode_tokens_per_s": 36.333500961580114,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_nocache": {
"prefill_s": 0.023022617000037826,
"decode_s": 0.41483446099994126,
"total_s": 0.4378570779999791,
"tokens_per_s": 36.5416041076325,
"decode_tokens_per_s": 36.15900174696944,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache": {
"prefill_s": 0.02272177500003636,
"decode_s": 0.03686474999994971,
"total_s": 0.05958652499998607,
"tokens_per_s": 268.5170850289347,
"decode_tokens_per_s": 406.8927634127578,
"peak_mem_mb": null,
"cache_mb": 0.019287109375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"explicit_cache_refattn": {
"prefill_s": 0.021946311000078822,
"decode_s": 0.03566101100000196,
"total_s": 0.057607322000080785,
"tokens_per_s": 277.74247169444124,
"decode_tokens_per_s": 420.6274465970461,
"peak_mem_mb": null,
"cache_mb": 0.019287109375,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
},
"hf_cache": {
"prefill_s": 0.022241731999997683,
"decode_s": 0.039285696000092685,
"total_s": 0.06152742800009037,
"tokens_per_s": 260.04662505925813,
"decode_tokens_per_s": 381.818359536372,
"peak_mem_mb": null,
"cache_mb": null,
"tokens_equal_reference": true,
"first_mismatch": null,
"mismatch_margin": null
}
}
}
]
} |