
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5df5adf
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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.089152, | |
"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.4072392578125, | |
"mean": 7.4072392578125, | |
"stdev": 0.0, | |
"p50": 7.4072392578125, | |
"p90": 7.4072392578125, | |
"p95": 7.4072392578125, | |
"p99": 7.4072392578125, | |
"values": [ | |
7.4072392578125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.749783687499224e-07, | |
"ram": 5.184616998672515e-07, | |
"gpu": 1.621945741999949e-06, | |
"total": 3.1153858106171226e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1238.106112, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48968681573867806, | |
"mean": 0.006801205774148306, | |
"stdev": 0.0003387954081562497, | |
"p50": 0.006873087882995605, | |
"p90": 0.007176614427566528, | |
"p95": 0.007335228753089905, | |
"p99": 0.00743515495300293, | |
"values": [ | |
0.007176383972167969, | |
0.006973504066467285, | |
0.006950047969818116, | |
0.006889984130859375, | |
0.00695417594909668, | |
0.006794464111328125, | |
0.006915391921997071, | |
0.007081376075744629, | |
0.007048031806945801, | |
0.006966559886932373, | |
0.007362624168395996, | |
0.007427072048187256, | |
0.007361663818359375, | |
0.007100863933563233, | |
0.0070005121231079106, | |
0.006768576145172119, | |
0.006905087947845459, | |
0.006925183773040772, | |
0.006876063823699951, | |
0.007130496025085449, | |
0.0070713601112365725, | |
0.006897791862487793, | |
0.007046624183654785, | |
0.0073136000633239745, | |
0.007454944133758545, | |
0.0071699519157409665, | |
0.00723414421081543, | |
0.007081439971923828, | |
0.007172160148620606, | |
0.0071766400337219234, | |
0.006806335926055908, | |
0.007085567951202393, | |
0.00709606409072876, | |
0.00687011194229126, | |
0.006978240013122559, | |
0.006814080238342285, | |
0.006772448062896728, | |
0.006551648139953613, | |
0.006817279815673828, | |
0.006449183940887451, | |
0.006375040054321289, | |
0.007123744010925293, | |
0.00705625581741333, | |
0.0072008957862854, | |
0.006902847766876221, | |
0.006846943855285645, | |
0.0068849921226501465, | |
0.006730271816253662, | |
0.006755199909210205, | |
0.0066495680809021, | |
0.006632991790771484, | |
0.006620480060577393, | |
0.006600831985473633, | |
0.006604320049285889, | |
0.0065894718170166015, | |
0.006600255966186523, | |
0.006593023777008057, | |
0.006261216163635254, | |
0.006391903877258301, | |
0.006310656070709229, | |
0.0063162240982055666, | |
0.0063201279640197755, | |
0.0062854399681091305, | |
0.006332128047943115, | |
0.006311744213104248, | |
0.006273536205291748, | |
0.006277535915374756, | |
0.0063096961975097655, | |
0.006263455867767334, | |
0.006245183944702149, | |
0.006254848003387451, | |
0.006298304080963135 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 294.06550344382924 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.947936892710691e-08, | |
"ram": 4.3452933206065355e-08, | |
"gpu": 1.5073091849664546e-07, | |
"total": 2.736632206298177e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7308252.805755677 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1256.513536, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5154330234527588, | |
"mean": 0.007158791992399428, | |
"stdev": 0.00037581564683510197, | |
"p50": 0.007228832006454468, | |
"p90": 0.007616022348403931, | |
"p95": 0.007753830432891845, | |
"p99": 0.007911163697242736, | |
"values": [ | |
0.007315423965454102, | |
0.0072911038398742675, | |
0.007264351844787598, | |
0.0072408318519592285, | |
0.007118624210357666, | |
0.00725113582611084, | |
0.0072243518829345705, | |
0.007375520229339599, | |
0.00801801586151123, | |
0.007733856201171875, | |
0.007739488124847412, | |
0.007867519855499267, | |
0.007588640213012695, | |
0.007273663997650146, | |
0.007134335994720459, | |
0.00714246416091919, | |
0.007249407768249512, | |
0.007247647762298584, | |
0.007348991870880127, | |
0.007411456108093262, | |
0.007281727790832519, | |
0.007346879959106445, | |
0.007771359920501709, | |
0.007788576126098633, | |
0.007615071773529053, | |
0.007561312198638916, | |
0.007691391944885254, | |
0.00753718376159668, | |
0.007616127967834473, | |
0.0075129599571228025, | |
0.007293375968933105, | |
0.007411839962005615, | |
0.007380608081817627, | |
0.007331103801727295, | |
0.007257887840270996, | |
0.0073465280532836914, | |
0.0071488962173461915, | |
0.007008255958557129, | |
0.006882143974304199, | |
0.006622464179992676, | |
0.007145343780517578, | |
0.007571455955505371, | |
0.007531392097473145, | |
0.007415167808532715, | |
0.007158976078033447, | |
0.007233312129974365, | |
0.0071083841323852535, | |
0.007117472171783447, | |
0.007014431953430176, | |
0.007048223972320557, | |
0.006934144020080566, | |
0.0069415678977966305, | |
0.0070865597724914554, | |
0.00698147201538086, | |
0.0069218559265136715, | |
0.0069244480133056644, | |
0.0069213762283325195, | |
0.006640160083770752, | |
0.006547520160675049, | |
0.0065790719985961916, | |
0.006694176197052002, | |
0.0065972480773925785, | |
0.006637279987335205, | |
0.006631199836730957, | |
0.006645023822784424, | |
0.006666016101837158, | |
0.006573760032653809, | |
0.0065915842056274414, | |
0.006598688125610351, | |
0.006582399845123291, | |
0.0065764479637145995, | |
0.006574336051940918 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.688372152971 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.641521622802205e-08, | |
"ram": 4.161878914125334e-08, | |
"gpu": 1.4121736700984794e-07, | |
"total": 2.5925137237912326e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3857260.198174083 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48175314950943, | |
"mean": 0.006691015965408749, | |
"stdev": 0.0003259052593575368, | |
"p50": 0.0067205440998077395, | |
"p90": 0.007107583808898926, | |
"p95": 0.007218227243423462, | |
"p99": 0.007385958266258241, | |
"values": [ | |
0.006812672138214112, | |
0.0067870721817016606, | |
0.006760447978973389, | |
0.006727744102478028, | |
0.0066406397819519045, | |
0.006738944053649902, | |
0.006713344097137451, | |
0.006862847805023193, | |
0.007505919933319092, | |
0.007131135940551757, | |
0.007195648193359375, | |
0.007336959838867187, | |
0.007047167778015137, | |
0.006763519763946534, | |
0.006654975891113281, | |
0.0066304001808166506, | |
0.006739967823028564, | |
0.0067010560035705566, | |
0.006819839954376221, | |
0.00689356803894043, | |
0.006774784088134766, | |
0.006822912216186523, | |
0.007245823860168457, | |
0.007260159969329834, | |
0.007108607769012451, | |
0.00703385591506958, | |
0.007173120021820068, | |
0.007019519805908203, | |
0.007098368167877197, | |
0.006998015880584717, | |
0.006785024166107178, | |
0.006884352207183838, | |
0.00682700777053833, | |
0.006815743923187256, | |
0.0067758078575134275, | |
0.006860799789428711, | |
0.006677504062652588, | |
0.006523903846740723, | |
0.006458367824554443, | |
0.006227968215942382, | |
0.00667852783203125, | |
0.007053311824798584, | |
0.007003168106079102, | |
0.006968319892883301, | |
0.0067348480224609375, | |
0.006796288013458252, | |
0.006673408031463623, | |
0.006708223819732666, | |
0.006612991809844971, | |
0.0066406397819519045, | |
0.0065177597999572755, | |
0.006523903846740723, | |
0.006642687797546387, | |
0.006573056221008301, | |
0.006516736030578613, | |
0.006505472183227539, | |
0.006512639999389648, | |
0.006214655876159668, | |
0.006162432193756104, | |
0.006195199966430664, | |
0.006312960147857666, | |
0.006214655876159668, | |
0.006250495910644531, | |
0.006227968215942382, | |
0.0062638077735900875, | |
0.006280191898345947, | |
0.0061931519508361815, | |
0.006178815841674804, | |
0.00620851182937622, | |
0.00618393611907959, | |
0.006186975955963135, | |
0.006181888103485108 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 149.45413449464257 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |