IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e05e5f5
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_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": false, | |
"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 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "3b109cf557e2496fe3c954817385781e6dc5cad1", | |
"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, | |
"llama_cpp_version": null, | |
"llama_cpp_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 901.91872, | |
"max_global_vram": 1011.744768, | |
"max_process_vram": 45171.838976, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.621611328125, | |
"mean": 7.621611328125, | |
"stdev": 0.0, | |
"p50": 7.621611328125, | |
"p90": 7.621611328125, | |
"p95": 7.621611328125, | |
"p99": 7.621611328125, | |
"values": [ | |
7.621611328125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.268288, | |
"max_global_vram": 1107.480576, | |
"max_process_vram": 279171.833856, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5126940402984618, | |
"mean": 0.008839552418938999, | |
"stdev": 0.00045603446711262394, | |
"p50": 0.008721062660217285, | |
"p90": 0.009260307025909425, | |
"p95": 0.009452257776260376, | |
"p99": 0.010432907714843748, | |
"values": [ | |
0.008937061309814453, | |
0.009503935813903809, | |
0.009422337532043457, | |
0.009443138122558594, | |
0.009294018745422364, | |
0.009245859146118165, | |
0.009201699256896973, | |
0.009595135688781738, | |
0.00887898063659668, | |
0.011543442726135254, | |
0.009109060287475585, | |
0.008822340965270997, | |
0.008885220527648926, | |
0.009024100303649902, | |
0.00888922119140625, | |
0.008889381408691405, | |
0.00891930103302002, | |
0.008885701179504395, | |
0.008865541458129882, | |
0.00888650131225586, | |
0.008870181083679199, | |
0.00890474033355713, | |
0.008857702255249024, | |
0.008662502288818359, | |
0.008887460708618164, | |
0.008701382637023925, | |
0.008694022178649903, | |
0.008780261993408204, | |
0.008679141998291015, | |
0.008634822845458984, | |
0.008662982940673828, | |
0.00872298240661621, | |
0.008660102844238281, | |
0.008198825836181641, | |
0.008334183692932129, | |
0.008527624130249023, | |
0.008495944023132324, | |
0.008719142913818359, | |
0.008644103050231933, | |
0.008653382301330566, | |
0.008542662620544433, | |
0.00846682357788086, | |
0.008595302581787109, | |
0.00888058090209961, | |
0.008376903533935547, | |
0.008828580856323242, | |
0.008589222908020019, | |
0.008577543258666992, | |
0.008623783111572265, | |
0.008592423439025878, | |
0.008523624420166015, | |
0.008626022338867188, | |
0.00860234260559082, | |
0.008451944351196288, | |
0.008708102226257324, | |
0.008605703353881836, | |
0.008902661323547363, | |
0.00866634178161621 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 226.25579952610968 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.268288, | |
"max_global_vram": 1107.525632, | |
"max_process_vram": 293675.020288, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5020649871826172, | |
"mean": 0.008656292882458916, | |
"stdev": 0.0003490834145000638, | |
"p50": 0.008572022914886474, | |
"p90": 0.00901080389022827, | |
"p95": 0.0090865243434906, | |
"p99": 0.009801784496307373, | |
"values": [ | |
0.008797862052917481, | |
0.009157380104064942, | |
0.009074020385742187, | |
0.009072420120239257, | |
0.008917699813842774, | |
0.009038020133972167, | |
0.010466810226440429, | |
0.008864900588989259, | |
0.00881434154510498, | |
0.009300098419189454, | |
0.008845701217651367, | |
0.008782821655273438, | |
0.00881786060333252, | |
0.00887130069732666, | |
0.00897706127166748, | |
0.008949860572814942, | |
0.0089991397857666, | |
0.008729701995849609, | |
0.008661541938781738, | |
0.00866330337524414, | |
0.008731621742248535, | |
0.0087092227935791, | |
0.00841002368927002, | |
0.008741541862487793, | |
0.008353705406188966, | |
0.008425864219665527, | |
0.00854874324798584, | |
0.008562023162841798, | |
0.008582022666931153, | |
0.008526983261108399, | |
0.008505382537841798, | |
0.008512264251708984, | |
0.008498344421386719, | |
0.008311144828796387, | |
0.008422823905944824, | |
0.008285064697265625, | |
0.008521063804626465, | |
0.008340423583984374, | |
0.008224584579467774, | |
0.00845210361480713, | |
0.008320104598999024, | |
0.008243305206298828, | |
0.00831866455078125, | |
0.008268264770507813, | |
0.008472264289855957, | |
0.008394984245300293, | |
0.008587782859802245, | |
0.00876778221130371, | |
0.00860714340209961, | |
0.008362025260925292, | |
0.008437864303588867, | |
0.008861701965332031, | |
0.008422663688659668, | |
0.008420424461364746, | |
0.008551941871643067, | |
0.008645222663879395, | |
0.008487943649291993, | |
0.008428104400634765 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 115.52289341161234 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.46116125440597516, | |
"mean": 0.00795105611044785, | |
"stdev": 0.00030571959937122553, | |
"p50": 0.007900107860565185, | |
"p90": 0.008248232746124268, | |
"p95": 0.008379680061340333, | |
"p99": 0.009003159275054932, | |
"values": [ | |
0.008122506141662598, | |
0.008448904037475585, | |
0.008367464065551758, | |
0.008346823692321778, | |
0.008245064735412597, | |
0.008255624771118164, | |
0.009558015823364258, | |
0.00803434658050537, | |
0.007980106830596924, | |
0.008584583282470703, | |
0.007988906860351563, | |
0.007959307193756104, | |
0.008035785675048828, | |
0.00802826690673828, | |
0.008073066711425781, | |
0.008061387062072755, | |
0.008123785972595214, | |
0.008040586471557616, | |
0.0079977068901062, | |
0.008003626823425293, | |
0.008042985916137696, | |
0.008017066955566407, | |
0.007730187892913819, | |
0.008050666809082032, | |
0.0076489090919494625, | |
0.007772267818450928, | |
0.007878987789154053, | |
0.007924427032470703, | |
0.007937548160552978, | |
0.007871148109436035, | |
0.00783930778503418, | |
0.007806987762451172, | |
0.007800908088684082, | |
0.0076324291229248045, | |
0.007706348896026611, | |
0.007614189147949218, | |
0.007820588111877441, | |
0.007685389041900635, | |
0.0075661888122558595, | |
0.007829069137573242, | |
0.007682509899139404, | |
0.007633869171142578, | |
0.007636748790740967, | |
0.007611309051513672, | |
0.007791307926177979, | |
0.007764908790588379, | |
0.007890667915344238, | |
0.008102665901184082, | |
0.007909547805786133, | |
0.007736268997192383, | |
0.007766828060150146, | |
0.00824362564086914, | |
0.007761709213256836, | |
0.007761868000030517, | |
0.007869067192077637, | |
0.007974347114562989, | |
0.007828107833862305, | |
0.007764429092407227 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 125.76945579417803 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |