
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6462b3b
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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": 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": 790.089728, | |
"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.40585693359375, | |
"mean": 7.40585693359375, | |
"stdev": 0.0, | |
"p50": 7.40585693359375, | |
"p90": 7.40585693359375, | |
"p95": 7.40585693359375, | |
"p99": 7.40585693359375, | |
"values": [ | |
7.40585693359375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0231846666667446e-06, | |
"ram": 5.450725038649552e-07, | |
"gpu": 1.731945830000083e-06, | |
"total": 3.3002030005317826e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1194.344448, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.48917977619171144, | |
"mean": 0.006701092824543992, | |
"stdev": 0.0001495310964234629, | |
"p50": 0.006661824226379395, | |
"p90": 0.0067602496147155765, | |
"p95": 0.006918080043792721, | |
"p99": 0.007347120780944824, | |
"values": [ | |
0.007461376190185547, | |
0.007302688121795654, | |
0.007143968105316162, | |
0.0065248641967773436, | |
0.006545279979705811, | |
0.0067536959648132324, | |
0.006767488002777099, | |
0.006729824066162109, | |
0.0067040958404541015, | |
0.006732192039489746, | |
0.006693759918212891, | |
0.0066613759994506834, | |
0.006662975788116455, | |
0.006651743888854981, | |
0.006687871932983399, | |
0.006671648025512695, | |
0.006674240112304688, | |
0.006575232028961182, | |
0.006644544124603272, | |
0.006689472198486328, | |
0.0066317119598388674, | |
0.0066694397926330565, | |
0.006678624153137207, | |
0.006678016185760498, | |
0.006612383842468262, | |
0.006626463890075683, | |
0.006647903919219971, | |
0.006670591831207276, | |
0.006765247821807862, | |
0.006701695919036865, | |
0.0066696639060974125, | |
0.006659552097320557, | |
0.006627264022827148, | |
0.0066943678855896, | |
0.006648672103881836, | |
0.00722431993484497, | |
0.00672870397567749, | |
0.006659488201141358, | |
0.006684480190277099, | |
0.006676896095275879, | |
0.006653920173645019, | |
0.006660192012786865, | |
0.006646016120910645, | |
0.006658847808837891, | |
0.006671711921691894, | |
0.0066763520240783695, | |
0.006644991874694825, | |
0.006661824226379395, | |
0.006635776042938232, | |
0.006721951961517334, | |
0.006600192070007324, | |
0.0066929922103881835, | |
0.0067612800598144535, | |
0.006681695938110351, | |
0.006650720119476318, | |
0.006652448177337646, | |
0.006649504184722901, | |
0.006660255908966064, | |
0.006697375774383545, | |
0.006675168037414551, | |
0.006627679824829102, | |
0.0066598720550537106, | |
0.006620128154754639, | |
0.006763552188873291, | |
0.0066520957946777344, | |
0.0067561278343200686, | |
0.006651167869567871, | |
0.0066509761810302735, | |
0.006637695789337158, | |
0.006640927791595459, | |
0.0066477122306823734, | |
0.0066471037864685055, | |
0.006637695789337158 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 298.458781629562 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.952237443518636e-08, | |
"ram": 4.332179171927358e-08, | |
"gpu": 1.530927150666664e-07, | |
"total": 2.759368812211263e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7248034.373474233 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1212.751872, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.5139726104736326, | |
"mean": 0.0070407206914196285, | |
"stdev": 0.00018459038671687341, | |
"p50": 0.006998176097869873, | |
"p90": 0.007149753570556641, | |
"p95": 0.007232588863372802, | |
"p99": 0.008010945205688477, | |
"values": [ | |
0.00799555206298828, | |
0.008050527572631836, | |
0.006864128112792969, | |
0.006782080173492432, | |
0.007276000022888184, | |
0.00712656021118164, | |
0.0070069761276245115, | |
0.007001215934753418, | |
0.007196959972381592, | |
0.006983424186706543, | |
0.006977248191833496, | |
0.007019519805908203, | |
0.006985824108123779, | |
0.0069870719909667965, | |
0.006979936122894287, | |
0.00700758409500122, | |
0.006971295833587647, | |
0.007017632007598877, | |
0.006979199886322021, | |
0.007024864196777344, | |
0.0070557122230529784, | |
0.007071296215057373, | |
0.006968224048614502, | |
0.007000864028930664, | |
0.006963456153869629, | |
0.0070217280387878415, | |
0.006954720020294189, | |
0.007376128196716308, | |
0.006971199989318847, | |
0.006989759922027588, | |
0.006947360038757324, | |
0.007000768184661865, | |
0.006996736049652099, | |
0.00701529598236084, | |
0.007058559894561767, | |
0.007191648006439209, | |
0.006972064018249511, | |
0.006967584133148194, | |
0.006950943946838379, | |
0.006980959892272949, | |
0.006938208103179932, | |
0.0069749121665954586, | |
0.00697702407836914, | |
0.006974815845489502, | |
0.007004127979278564, | |
0.007022175788879394, | |
0.006997951984405518, | |
0.007112927913665771, | |
0.007022047996520996, | |
0.007203648090362549, | |
0.0068940801620483395, | |
0.0069922561645507815, | |
0.007012544155120849, | |
0.006995808124542236, | |
0.00698144006729126, | |
0.0070316162109375, | |
0.006965248107910156, | |
0.007027647972106934, | |
0.0069417600631713865, | |
0.006998176097869873, | |
0.007155551910400391, | |
0.007, | |
0.007016992092132569, | |
0.007007359981536865, | |
0.007009344100952148, | |
0.006990560054779053, | |
0.0069747200012207035, | |
0.006986623764038086, | |
0.007046976089477539, | |
0.007044384002685547, | |
0.006994400024414062, | |
0.007009696006774902, | |
0.006978975772857666 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.03091470716598 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.529369594720557e-08, | |
"ram": 4.1322561010785556e-08, | |
"gpu": 1.4188587589437404e-07, | |
"total": 2.585021328523651e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3868440.0355455354 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.48378585433959986, | |
"mean": 0.006627203484104104, | |
"stdev": 0.0001436421246933251, | |
"p50": 0.006591519832611084, | |
"p90": 0.006740991878509521, | |
"p95": 0.0067846145629882814, | |
"p99": 0.007314873428344727, | |
"values": [ | |
0.007442399978637695, | |
0.007265279769897461, | |
0.006468607902526856, | |
0.0063907837867736815, | |
0.0067870721817016606, | |
0.0066938881874084475, | |
0.006601727962493896, | |
0.006595583915710449, | |
0.006782976150512696, | |
0.006584320068359375, | |
0.00657919979095459, | |
0.006619135856628418, | |
0.00658841609954834, | |
0.00657919979095459, | |
0.006574079990386963, | |
0.0065976958274841305, | |
0.006565887928009034, | |
0.006621183872222901, | |
0.00658022403717041, | |
0.006592512130737305, | |
0.006649856090545654, | |
0.006672383785247803, | |
0.006569983959197998, | |
0.006599679946899414, | |
0.006567935943603515, | |
0.006622208118438721, | |
0.006540287971496582, | |
0.006937600135803222, | |
0.006573056221008301, | |
0.006592512130737305, | |
0.006551551818847656, | |
0.006605823993682861, | |
0.006599679946899414, | |
0.006591487884521485, | |
0.006651904106140137, | |
0.006778880119323731, | |
0.006561791896820069, | |
0.006566976070404053, | |
0.0065413122177124024, | |
0.006582272052764892, | |
0.006540287971496582, | |
0.00657919979095459, | |
0.006558720111846924, | |
0.006576128005981445, | |
0.006599679946899414, | |
0.006608895778656006, | |
0.006599679946899414, | |
0.0067123198509216305, | |
0.006612991809844971, | |
0.006766592025756836, | |
0.006501376152038574, | |
0.006591519832611084, | |
0.0066007041931152345, | |
0.00658841609954834, | |
0.006582272052764892, | |
0.006633471965789795, | |
0.0065443840026855465, | |
0.006618112087249756, | |
0.006546432018280029, | |
0.006589439868927002, | |
0.006748159885406494, | |
0.006591487884521485, | |
0.006618112087249756, | |
0.006585343837738037, | |
0.006609920024871826, | |
0.006591487884521485, | |
0.0065781760215759275, | |
0.00658841609954834, | |
0.006648831844329834, | |
0.006642687797546387, | |
0.006576128005981445, | |
0.0066109437942504885, | |
0.0065781760215759275 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.89320893776429 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |