
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3186d65
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.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 720.736256, | |
"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.13812060546875, | |
"mean": 7.13812060546875, | |
"stdev": 0.0, | |
"p50": 7.13812060546875, | |
"p90": 7.13812060546875, | |
"p95": 7.13812060546875, | |
"p99": 7.13812060546875, | |
"values": [ | |
7.13812060546875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.685539537005954e-07, | |
"ram": 5.151919365859688e-07, | |
"gpu": 1.8355570240000032e-06, | |
"total": 3.3193029142865677e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1044.185088, | |
"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.486669280052185, | |
"mean": 0.006488923734029133, | |
"stdev": 0.00026854743120499717, | |
"p50": 0.006511072158813477, | |
"p90": 0.006793024063110352, | |
"p95": 0.006863961458206177, | |
"p99": 0.00706652991294861, | |
"values": [ | |
0.007356160163879395, | |
0.006912896156311035, | |
0.0067021121978759765, | |
0.006639904022216797, | |
0.006688416004180908, | |
0.0064618558883666995, | |
0.006605343818664551, | |
0.006739391803741455, | |
0.006737215995788574, | |
0.006679296016693115, | |
0.006703839778900146, | |
0.006755551815032959, | |
0.00680185604095459, | |
0.006709887981414795, | |
0.006719647884368896, | |
0.006457376003265381, | |
0.006633471965789795, | |
0.006567327976226806, | |
0.006620607852935791, | |
0.006858431816101075, | |
0.006778560161590576, | |
0.006662816047668457, | |
0.006691711902618408, | |
0.006604832172393799, | |
0.006640255928039551, | |
0.006546847820281983, | |
0.006605023860931396, | |
0.006876863956451416, | |
0.006853951930999756, | |
0.006587903976440429, | |
0.006566847801208496, | |
0.006779776096343994, | |
0.0067422080039978025, | |
0.006691232204437256, | |
0.006670432090759277, | |
0.006548768043518067, | |
0.00647215986251831, | |
0.0062763519287109375, | |
0.006511072158813477, | |
0.0061695041656494145, | |
0.006146336078643799, | |
0.006689023971557617, | |
0.006822048187255859, | |
0.0069647679328918456, | |
0.006506847858428955, | |
0.0063023362159729006, | |
0.006356031894683838, | |
0.0063298878669738766, | |
0.006297696113586426, | |
0.0061025600433349605, | |
0.006059328079223633, | |
0.006095776081085205, | |
0.006312448024749756, | |
0.006277664184570313, | |
0.006260223865509033, | |
0.006282303810119629, | |
0.006293568134307861, | |
0.00629420804977417, | |
0.006260767936706543, | |
0.006274496078491211, | |
0.006055712223052978, | |
0.006269311904907227, | |
0.006319424152374267, | |
0.006281631946563721, | |
0.006081920146942138, | |
0.006287871837615967, | |
0.0062820158004760745, | |
0.0062484159469604495, | |
0.00632700777053833, | |
0.006258240222930908, | |
0.006300704002380371, | |
0.006265024185180664, | |
0.006048672199249268, | |
0.006033631801605224, | |
0.006053664207458496 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 308.2175229632651 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.58378347942193e-08, | |
"ram": 4.1466267404802086e-08, | |
"gpu": 1.53713852624204e-07, | |
"total": 2.7101795482322544e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7379584.8740151655 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1059.827712, | |
"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.5132033295631409, | |
"mean": 0.006842711060841878, | |
"stdev": 0.0003081883164183316, | |
"p50": 0.006868735790252685, | |
"p90": 0.00719422721862793, | |
"p95": 0.007226985502243041, | |
"p99": 0.00772106806755066, | |
"values": [ | |
0.007805439949035644, | |
0.007206751823425293, | |
0.006973536014556885, | |
0.007063456058502197, | |
0.006838912010192871, | |
0.006963136196136474, | |
0.00705731201171875, | |
0.007071807861328125, | |
0.007691423892974853, | |
0.0070977602005004884, | |
0.0070668158531188964, | |
0.007055871963500977, | |
0.0070260481834411624, | |
0.007030272006988526, | |
0.006888031959533691, | |
0.006868735790252685, | |
0.006924992084503174, | |
0.00707151985168457, | |
0.007007232189178467, | |
0.007126912117004395, | |
0.0070143680572509765, | |
0.007102464199066162, | |
0.007093344211578369, | |
0.007040639877319336, | |
0.0068643841743469235, | |
0.006912384033203125, | |
0.007122144222259521, | |
0.0071974401473999024, | |
0.007225247859954834, | |
0.00695084810256958, | |
0.007043551921844482, | |
0.007125152111053467, | |
0.007119200229644775, | |
0.006994880199432373, | |
0.00701964807510376, | |
0.007078752040863037, | |
0.00678934383392334, | |
0.006665567874908448, | |
0.006641983985900879, | |
0.006352320194244385, | |
0.0065924482345581055, | |
0.007189407825469971, | |
0.007231040000915527, | |
0.007276576042175293, | |
0.006624383926391602, | |
0.006577087879180908, | |
0.006594816207885742, | |
0.0067497920989990235, | |
0.006612927913665772, | |
0.006339327812194824, | |
0.006360960006713867, | |
0.006515456199645996, | |
0.006636991977691651, | |
0.006594079971313477, | |
0.006593376159667969, | |
0.006553055763244629, | |
0.006597119808197022, | |
0.0065929279327392575, | |
0.006570079803466797, | |
0.006556416034698486, | |
0.006595456123352051, | |
0.0066139202117919925, | |
0.006612415790557861, | |
0.006578688144683838, | |
0.006339807987213134, | |
0.00661081600189209, | |
0.006609695911407471, | |
0.007221695899963379, | |
0.006607776165008545, | |
0.006607168197631836, | |
0.006602272033691407, | |
0.006591807842254638, | |
0.006327648162841797, | |
0.006418176174163818, | |
0.006318079948425293 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 146.14090688741828 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.113139823593509e-08, | |
"ram": 3.889275615082911e-08, | |
"gpu": 1.44698594610364e-07, | |
"total": 2.5472274899712815e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3925837.028444108 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.4794390721321107, | |
"mean": 0.006392520961761474, | |
"stdev": 0.00026027777156193744, | |
"p50": 0.006400000095367431, | |
"p90": 0.006693683242797852, | |
"p95": 0.0067533825874328615, | |
"p99": 0.007224278974533082, | |
"values": [ | |
0.007259136199951172, | |
0.006707200050354004, | |
0.0064839677810668945, | |
0.006565887928009034, | |
0.006367231845855713, | |
0.006451200008392334, | |
0.006553599834442139, | |
0.006567935943603515, | |
0.0072120318412780765, | |
0.006559743881225586, | |
0.006562816143035889, | |
0.006556672096252441, | |
0.006529024124145508, | |
0.006523903846740723, | |
0.006421504020690918, | |
0.0063907837867736815, | |
0.00643891191482544, | |
0.006584320068359375, | |
0.006498303890228272, | |
0.006597631931304931, | |
0.0065146880149841305, | |
0.006593535900115967, | |
0.006560768127441406, | |
0.006543424129486084, | |
0.006400000095367431, | |
0.006426623821258545, | |
0.006565951824188233, | |
0.006691840171813965, | |
0.006729728221893311, | |
0.0064430079460144046, | |
0.006524928092956543, | |
0.006604800224304199, | |
0.0066078720092773435, | |
0.006479872226715088, | |
0.006524928092956543, | |
0.0065812478065490725, | |
0.006306816101074219, | |
0.006179840087890625, | |
0.00623308801651001, | |
0.005975039958953857, | |
0.0061717119216918945, | |
0.006694911956787109, | |
0.006714367866516113, | |
0.006808576107025147, | |
0.006238207817077636, | |
0.006182911872863769, | |
0.0062156801223754886, | |
0.006362112045288086, | |
0.006228991985321045, | |
0.0059688959121704105, | |
0.005981184005737304, | |
0.006132736206054688, | |
0.006247424125671387, | |
0.006210559844970703, | |
0.006205440044403076, | |
0.006158336162567139, | |
0.006195199966430664, | |
0.006210559844970703, | |
0.006184959888458252, | |
0.006174719810485839, | |
0.00621062421798706, | |
0.006203360080718994, | |
0.006227968215942382, | |
0.006195199966430664, | |
0.005964799880981446, | |
0.006213632106781006, | |
0.00620854377746582, | |
0.006819839954376221, | |
0.006201344013214111, | |
0.006223872184753418, | |
0.006217696189880371, | |
0.00620851182937622, | |
0.005955584049224853, | |
0.006041600227355957, | |
0.0059391999244689945 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 156.43280733559732 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |