
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2699800
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.5.1+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"model_kwargs": {}, | |
"processor_kwargs": {}, | |
"no_weights": true, | |
"device_map": null, | |
"torch_dtype": null, | |
"eval_mode": true, | |
"to_bettertransformer": false, | |
"low_cpu_mem_usage": null, | |
"attn_implementation": null, | |
"cache_implementation": null, | |
"autocast_enabled": false, | |
"autocast_dtype": null, | |
"torch_compile": false, | |
"torch_compile_target": "forward", | |
"torch_compile_config": {}, | |
"quantization_scheme": null, | |
"quantization_config": {}, | |
"deepspeed_inference": false, | |
"deepspeed_inference_config": {}, | |
"peft_type": null, | |
"peft_config": {} | |
}, | |
"scenario": { | |
"name": "inference", | |
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", | |
"iterations": 1, | |
"duration": 1, | |
"warmup_runs": 1, | |
"input_shapes": { | |
"batch_size": 2, | |
"sequence_length": 16 | |
}, | |
"new_tokens": null, | |
"memory": true, | |
"latency": true, | |
"energy": true, | |
"forward_kwargs": {}, | |
"generate_kwargs": { | |
"max_new_tokens": 2, | |
"min_new_tokens": 2 | |
}, | |
"call_kwargs": { | |
"num_inference_steps": 2 | |
} | |
}, | |
"launcher": { | |
"name": "process", | |
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", | |
"device_isolation": true, | |
"device_isolation_action": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.248768, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.227-219.884.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.11", | |
"timm_commit": null, | |
"peft_version": "0.13.2", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 820.224, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.07920230102539062 | |
], | |
"count": 1, | |
"total": 0.07920230102539062, | |
"mean": 0.07920230102539062, | |
"p50": 0.07920230102539062, | |
"p90": 0.07920230102539062, | |
"p95": 0.07920230102539062, | |
"p99": 0.07920230102539062, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1269.907456, | |
"max_global_vram": 1379.401728, | |
"max_process_vram": 0.0, | |
"max_reserved": 731.906048, | |
"max_allocated": 538.394112 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.008020256042480469, | |
0.008043487548828126, | |
0.00828502368927002, | |
0.008084063529968261, | |
0.008272735595703126, | |
0.008262432098388672, | |
0.008604703903198242, | |
0.009037280082702636, | |
0.008285663604736327, | |
0.008296511650085448, | |
0.00814095973968506, | |
0.008225536346435547, | |
0.007998144149780274, | |
0.00810534381866455, | |
0.008283552169799804, | |
0.007997280120849609, | |
0.008084192276000976, | |
0.008178879737854004, | |
0.008124287605285645, | |
0.008062527656555176, | |
0.008032959938049316, | |
0.008074784278869629, | |
0.007921184062957764, | |
0.00792905616760254, | |
0.007615071773529053, | |
0.0077283520698547365, | |
0.007602367877960205, | |
0.007719456195831299, | |
0.0073925118446350096, | |
0.007996319770812988, | |
0.00801427173614502, | |
0.008646207809448242, | |
0.00872976016998291, | |
0.0076566081047058105, | |
0.007590752124786377, | |
0.00749721622467041, | |
0.007502175807952881, | |
0.007483136177062988, | |
0.0074934720993041996, | |
0.007498784065246582, | |
0.007511871814727783, | |
0.007469791889190674, | |
0.007436351776123047, | |
0.007507552146911621, | |
0.007475872039794922, | |
0.007145088195800781, | |
0.007059711933135987, | |
0.00704911994934082, | |
0.007115295886993408, | |
0.007069759845733643, | |
0.007110144138336182, | |
0.007096767902374268, | |
0.007087232112884522, | |
0.007085567951202393, | |
0.007084991931915283, | |
0.007110688209533691, | |
0.007141695976257324, | |
0.007035679817199707, | |
0.007067359924316406, | |
0.007046271800994873, | |
0.007166143894195557, | |
0.007130271911621093, | |
0.007154399871826172, | |
0.00754099178314209, | |
0.007550943851470948, | |
0.007146080017089843 | |
], | |
"count": 66, | |
"total": 0.507912956237793, | |
"mean": 0.007695650852087773, | |
"p50": 0.007596560001373291, | |
"p90": 0.008284287929534912, | |
"p95": 0.008527655839920044, | |
"p99": 0.008837392139434812, | |
"stdev": 0.0004998521920493949, | |
"stdev_": 6.495255588600264 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 4158.192804617512 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.297262794053951e-08, | |
"ram": 5.080296741214696e-08, | |
"gpu": 2.041407883124997e-07, | |
"total": 3.479163836651862e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 91976122.71917288 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1269.907456, | |
"max_global_vram": 1379.401728, | |
"max_process_vram": 0.0, | |
"max_reserved": 731.906048, | |
"max_allocated": 538.394624 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007707871913909912, | |
0.008083359718322754, | |
0.0078503999710083, | |
0.0078852481842041, | |
0.007856128215789794, | |
0.008065855979919434, | |
0.00852121639251709, | |
0.008261471748352052, | |
0.007976128101348876, | |
0.008074272155761718, | |
0.007956768035888672, | |
0.007884704113006591, | |
0.00791648006439209, | |
0.007913663864135742, | |
0.008114272117614747, | |
0.007788928031921387, | |
0.008033856391906739, | |
0.007847807884216308, | |
0.00790112018585205, | |
0.008108287811279298, | |
0.007644224166870117, | |
0.007668000221252441, | |
0.007570752143859863, | |
0.007603807926177979, | |
0.0074776320457458495, | |
0.00744649600982666, | |
0.0071883521080017086, | |
0.0074203200340271, | |
0.006996799945831298, | |
0.007628287792205811, | |
0.007757120132446289, | |
0.008094944000244141, | |
0.00756550407409668, | |
0.007337183952331543, | |
0.007314400196075439, | |
0.007341856002807617, | |
0.007282144069671631, | |
0.007332223892211914, | |
0.007335807800292969, | |
0.007302559852600097, | |
0.007270847797393799, | |
0.007266335964202881, | |
0.0072276158332824705, | |
0.007274367809295654, | |
0.007235072135925293, | |
0.00683900785446167, | |
0.006855423927307129, | |
0.006855072021484375, | |
0.006934847831726074, | |
0.007308063983917236, | |
0.006925631999969482, | |
0.006921664237976074, | |
0.006944672107696533, | |
0.006928639888763428, | |
0.0069090561866760256, | |
0.00693449592590332, | |
0.006887648105621338, | |
0.00685148811340332, | |
0.006863776206970215, | |
0.006909183979034424, | |
0.00687059211730957, | |
0.006969151973724365, | |
0.00687011194229126, | |
0.007359583854675293, | |
0.007011680126190185, | |
0.006883872032165527 | |
], | |
"count": 66, | |
"total": 0.4911641612052917, | |
"mean": 0.007441881230383208, | |
"p50": 0.00733951997756958, | |
"p90": 0.008070064067840575, | |
"p95": 0.008104951858520509, | |
"p99": 0.008352382373809813, | |
"stdev": 0.00045070929816800855, | |
"stdev_": 6.056389294791257 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 268.7492501001676 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.219467744140079e-08, | |
"ram": 4.491696135044841e-08, | |
"gpu": 1.6230149830514997e-07, | |
"total": 2.89413137096999e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6910536.335915135 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.00724070405960083, | |
0.007605247974395752, | |
0.007375872135162354, | |
0.007411712169647216, | |
0.0073768959045410155, | |
0.007572480201721191, | |
0.007887872219085693, | |
0.007776256084442139, | |
0.007491583824157715, | |
0.007589888095855713, | |
0.007479296207427978, | |
0.007431168079376221, | |
0.007449600219726562, | |
0.007438208103179932, | |
0.007640063762664795, | |
0.007326720237731933, | |
0.007559167861938477, | |
0.007383039951324463, | |
0.007425024032592774, | |
0.007559167861938477, | |
0.007173120021820068, | |
0.0071814398765563964, | |
0.007108607769012451, | |
0.007139328002929687, | |
0.007015391826629639, | |
0.006977536201477051, | |
0.0067686400413513184, | |
0.007003136157989502, | |
0.006632448196411133, | |
0.007187615871429443, | |
0.00728166389465332, | |
0.007584767818450928, | |
0.007158783912658692, | |
0.00695091199874878, | |
0.006912000179290771, | |
0.006960127830505371, | |
0.006915103912353515, | |
0.006965248107910156, | |
0.006960127830505371, | |
0.006929344177246094, | |
0.0068853759765625, | |
0.006897664070129395, | |
0.006861887931823731, | |
0.006906879901885986, | |
0.006841343879699707, | |
0.006486015796661377, | |
0.006475776195526123, | |
0.006504447937011719, | |
0.006560768127441406, | |
0.006949888229370117, | |
0.006569983959197998, | |
0.006562816143035889, | |
0.00658739185333252, | |
0.006575104236602783, | |
0.006551551818847656, | |
0.006569983959197998, | |
0.006526976108551025, | |
0.006493184089660644, | |
0.006513599872589111, | |
0.006556672096252441, | |
0.0065177597999572755, | |
0.006585343837738037, | |
0.006503424167633057, | |
0.006903808116912841, | |
0.006657023906707763, | |
0.006524928092956543 | |
], | |
"count": 66, | |
"total": 0.4633949127197264, | |
"mean": 0.007021135041207978, | |
"p50": 0.006960127830505371, | |
"p90": 0.007565824031829834, | |
"p95": 0.007601408004760743, | |
"p99": 0.007815321731567381, | |
"stdev": 0.00039530346972600034, | |
"stdev_": 5.630193229526444 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 284.85422773693045 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |