
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ed3c82a
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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": 1, | |
"num_choices": 2, | |
"sequence_length": 2 | |
}, | |
"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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 722.751488, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.14682568359375, | |
"mean": 7.14682568359375, | |
"stdev": 0.0, | |
"p50": 7.14682568359375, | |
"p90": 7.14682568359375, | |
"p95": 7.14682568359375, | |
"p99": 7.14682568359375, | |
"values": [ | |
7.14682568359375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0010481166668386e-06, | |
"ram": 5.312346264569675e-07, | |
"gpu": 1.7122235919998004e-06, | |
"total": 3.2445063351236065e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1022.656512, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.4925780143737794, | |
"mean": 0.006567706858317058, | |
"stdev": 0.000358829211168053, | |
"p50": 0.006632031917572022, | |
"p90": 0.006953651237487793, | |
"p95": 0.007077532625198364, | |
"p99": 0.00741289796829224, | |
"values": [ | |
0.007169663906097412, | |
0.006983232021331787, | |
0.006828800201416015, | |
0.006785215854644776, | |
0.0066509761810302735, | |
0.006650400161743164, | |
0.006973824024200439, | |
0.007038047790527344, | |
0.006684351921081543, | |
0.0068427839279174806, | |
0.006846911907196045, | |
0.006779967784881592, | |
0.007236703872680664, | |
0.006952191829681396, | |
0.006724575996398926, | |
0.006609280109405518, | |
0.0066416959762573245, | |
0.0068401918411254885, | |
0.006954624176025391, | |
0.0068510079383850096, | |
0.006713280200958252, | |
0.006711103916168213, | |
0.006931583881378173, | |
0.006757984161376953, | |
0.006632031917572022, | |
0.006667871952056884, | |
0.006804351806640625, | |
0.006645023822784424, | |
0.0068484158515930175, | |
0.006722432136535644, | |
0.006893824100494385, | |
0.006809951782226563, | |
0.00724832010269165, | |
0.006873216152191162, | |
0.006768799781799316, | |
0.006608767986297608, | |
0.006413631916046143, | |
0.0066904001235961914, | |
0.006266079902648926, | |
0.006607999801635742, | |
0.0068853759765625, | |
0.006916831970214843, | |
0.007881311893463135, | |
0.006580863952636719, | |
0.006458047866821289, | |
0.006541215896606446, | |
0.006443071842193604, | |
0.006290592193603515, | |
0.006402912139892578, | |
0.006195424079895019, | |
0.006175360202789307, | |
0.00613708782196045, | |
0.006121791839599609, | |
0.006311103820800781, | |
0.006183104038238525, | |
0.006158559799194336, | |
0.006183072090148926, | |
0.006113120079040527, | |
0.006138368129730225, | |
0.006137856006622314, | |
0.006159711837768555, | |
0.006218880176544189, | |
0.006144768238067627, | |
0.006126431941986084, | |
0.006136928081512451, | |
0.006135647773742676, | |
0.006166848182678222, | |
0.0061710081100463865, | |
0.006172671794891358, | |
0.006301568031311035, | |
0.006244927883148193, | |
0.006157983779907226, | |
0.00616323184967041, | |
0.0062197761535644535, | |
0.0061430401802062985 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 304.52029043703243 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.799501509046004e-08, | |
"ram": 4.2645213082289794e-08, | |
"gpu": 1.4878666873684143e-07, | |
"total": 2.6942689690959127e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7423163.8449635515 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1038.569472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.5172190718650818, | |
"mean": 0.0068962542915344234, | |
"stdev": 0.0003587597661608221, | |
"p50": 0.00695743989944458, | |
"p90": 0.00733899507522583, | |
"p95": 0.007399331283569336, | |
"p99": 0.007743374080657959, | |
"values": [ | |
0.007319104194641113, | |
0.007332736015319824, | |
0.007093279838562012, | |
0.007174240112304687, | |
0.007101439952850342, | |
0.007074848175048828, | |
0.007344704151153564, | |
0.007343167781829834, | |
0.00722492790222168, | |
0.007222623825073242, | |
0.007153247833251953, | |
0.0071488962173461915, | |
0.007392352104187012, | |
0.007324607849121094, | |
0.006948063850402832, | |
0.007222655773162842, | |
0.0070284161567687985, | |
0.007107903957366943, | |
0.0072035517692565915, | |
0.007216479778289795, | |
0.007032256126403808, | |
0.007840320110321045, | |
0.007106272220611573, | |
0.007210783958435059, | |
0.007004703998565674, | |
0.007205440044403076, | |
0.007050943851470947, | |
0.007074368000030517, | |
0.0070332159996032715, | |
0.007144063949584961, | |
0.007415616035461426, | |
0.007709311962127686, | |
0.007349696159362793, | |
0.00695743989944458, | |
0.007182559967041016, | |
0.006806272029876709, | |
0.0069203519821166995, | |
0.0066752958297729495, | |
0.006464128017425537, | |
0.007059264183044434, | |
0.0071569600105285645, | |
0.007430751800537109, | |
0.006961088180541992, | |
0.006762656211853027, | |
0.006776063919067383, | |
0.0067573761940002445, | |
0.006701471805572509, | |
0.00679091215133667, | |
0.006662335872650147, | |
0.00642745590209961, | |
0.006461567878723144, | |
0.006467775821685791, | |
0.006652128219604492, | |
0.006639135837554932, | |
0.0064448962211608885, | |
0.006447231769561768, | |
0.00650435209274292, | |
0.0064774718284606935, | |
0.006447264194488525, | |
0.0064546561241149904, | |
0.006529280185699463, | |
0.006556287765502929, | |
0.006442624092102051, | |
0.006505472183227539, | |
0.006465888023376465, | |
0.0064629120826721195, | |
0.006439072132110596, | |
0.006440000057220459, | |
0.0064503679275512696, | |
0.006714303970336914, | |
0.006450240135192871, | |
0.006434144020080567, | |
0.006462751865386963, | |
0.006557663917541504, | |
0.006664959907531738 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.0062537902005 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.252783086594227e-08, | |
"ram": 3.9652466610719225e-08, | |
"gpu": 1.3560526060493025e-07, | |
"total": 2.4778555808159194e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 4035747.715654661 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.48235913801193253, | |
"mean": 0.006431455173492431, | |
"stdev": 0.000292296297815559, | |
"p50": 0.006465536117553711, | |
"p90": 0.00680816650390625, | |
"p95": 0.006839215993881226, | |
"p99": 0.007074017295837403, | |
"values": [ | |
0.0067717118263244626, | |
0.006804480075836182, | |
0.006573056221008301, | |
0.006662144184112549, | |
0.006594560146331787, | |
0.0065669121742248536, | |
0.006789120197296142, | |
0.006832159996032715, | |
0.0066979842185974124, | |
0.006689792156219483, | |
0.0066119680404663084, | |
0.006645760059356689, | |
0.0068618240356445315, | |
0.006810624122619629, | |
0.006460415840148926, | |
0.006718431949615479, | |
0.0064778242111206055, | |
0.00658739185333252, | |
0.006643712043762207, | |
0.006699935913085937, | |
0.006495232105255127, | |
0.007299071788787842, | |
0.006594560146331787, | |
0.006709248065948486, | |
0.006501376152038574, | |
0.006652927875518798, | |
0.006515711784362793, | |
0.006560768127441406, | |
0.0065146880149841305, | |
0.006599679946899414, | |
0.006855679988861084, | |
0.006994944095611572, | |
0.006823935985565186, | |
0.006465536117553711, | |
0.006686719894409179, | |
0.006367231845855713, | |
0.0063907837867736815, | |
0.006275072097778321, | |
0.006071296215057373, | |
0.006563839912414551, | |
0.006675456047058105, | |
0.006813695907592773, | |
0.006518784046173095, | |
0.006347743988037109, | |
0.006360064029693604, | |
0.0063498239517211915, | |
0.006308864116668702, | |
0.006396927833557129, | |
0.006271999835968017, | |
0.006037504196166992, | |
0.006061056137084961, | |
0.006086656093597412, | |
0.006261760234832763, | |
0.006245376110076905, | |
0.0060631041526794435, | |
0.006064127922058105, | |
0.006087679862976075, | |
0.0060928001403808595, | |
0.006065152168273926, | |
0.006073344230651856, | |
0.006146016120910644, | |
0.006164480209350586, | |
0.006057983875274659, | |
0.0061224961280822755, | |
0.006081535816192627, | |
0.006079487800598145, | |
0.006056960105895996, | |
0.006048736095428467, | |
0.006044672012329101, | |
0.006320159912109375, | |
0.00606822395324707, | |
0.006050816059112549, | |
0.006072319984436035, | |
0.006155263900756836, | |
0.006269951820373535 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 155.48580733665855 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |