
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
35887f5
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.2.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1071.98464, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.4985576295852661, | |
"mean": 0.008595821199745968, | |
"stdev": 0.00028308832907280413, | |
"p50": 0.008467936038970947, | |
"p90": 0.008852569580078127, | |
"p95": 0.00929101734161377, | |
"p99": 0.009597920360565185, | |
"values": [ | |
0.009773152351379395, | |
0.009458080291748047, | |
0.009465727806091308, | |
0.00926153564453125, | |
0.008752703666687012, | |
0.00847110366821289, | |
0.008454527854919434, | |
0.008489567756652832, | |
0.008455103874206542, | |
0.008465184211730956, | |
0.00840995216369629, | |
0.008445183753967285, | |
0.00846895980834961, | |
0.009029215812683105, | |
0.00875539207458496, | |
0.008776864051818848, | |
0.008733440399169921, | |
0.008444479942321777, | |
0.008442496299743652, | |
0.008455840110778809, | |
0.008450431823730469, | |
0.008470751762390137, | |
0.008466912269592284, | |
0.008482015609741211, | |
0.008448320388793945, | |
0.008420831680297851, | |
0.008444543838500976, | |
0.008464320182800293, | |
0.008423456192016602, | |
0.008475296020507813, | |
0.00843996810913086, | |
0.008470720291137695, | |
0.008479007720947266, | |
0.008456704139709472, | |
0.00903228759765625, | |
0.008752191543579101, | |
0.008683039665222167, | |
0.008592767715454102, | |
0.008551775932312012, | |
0.008645215988159179, | |
0.008584959983825684, | |
0.00863856029510498, | |
0.008639616012573242, | |
0.008696479797363281, | |
0.008474752426147461, | |
0.008456192016601562, | |
0.008466655731201173, | |
0.008450400352478028, | |
0.008457440376281739, | |
0.008437376022338867, | |
0.00845142364501953, | |
0.00843881607055664, | |
0.008444607734680176, | |
0.008443807601928711, | |
0.008436320304870605, | |
0.00848038387298584, | |
0.00845753574371338, | |
0.008443231582641602 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 232.67119609922852 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0478216110780881e-07, | |
"ram": 5.728991145105307e-08, | |
"gpu": 1.8935364214159362e-07, | |
"total": 3.514257147004555e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5691103.172984192 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1071.98464, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5142000026702882, | |
"mean": 0.00886551728741876, | |
"stdev": 0.00030098725714465036, | |
"p50": 0.008728975772857667, | |
"p90": 0.009066627597808838, | |
"p95": 0.009651070642471313, | |
"p99": 0.00996387173652649, | |
"values": [ | |
0.009919936180114747, | |
0.009861951828002929, | |
0.009613856315612793, | |
0.010022111892700195, | |
0.008735456466674806, | |
0.008707584381103516, | |
0.008728096008300781, | |
0.00870969581604004, | |
0.00872047996520996, | |
0.008696928024291992, | |
0.008732095718383789, | |
0.008709888458251953, | |
0.008788960456848145, | |
0.009011775970458984, | |
0.009008095741271973, | |
0.00900592041015625, | |
0.008953503608703613, | |
0.008743583679199219, | |
0.00870364761352539, | |
0.008694047927856446, | |
0.008714367866516113, | |
0.00869375991821289, | |
0.008699392318725586, | |
0.00869331169128418, | |
0.00874112033843994, | |
0.008682144165039063, | |
0.008822400093078614, | |
0.008716704368591309, | |
0.008690048217773437, | |
0.008680352210998535, | |
0.008683168411254882, | |
0.008721376419067383, | |
0.008703359603881836, | |
0.009209312438964844, | |
0.009029984474182129, | |
0.008958080291748046, | |
0.008878368377685547, | |
0.008851391792297363, | |
0.009152128219604492, | |
0.008866527557373046, | |
0.008994976043701171, | |
0.008824511528015137, | |
0.008999263763427735, | |
0.00902563190460205, | |
0.008706944465637207, | |
0.008710911750793457, | |
0.008719039916992187, | |
0.008682592391967774, | |
0.008722944259643555, | |
0.008687968254089356, | |
0.008714943885803223, | |
0.008706784248352051, | |
0.008709407806396485, | |
0.00873036766052246, | |
0.008818719863891602, | |
0.00872985553741455, | |
0.00873356819152832, | |
0.008726655960083008 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 112.79657662154929 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0261313670633753e-07, | |
"ram": 5.6097429665269143e-08, | |
"gpu": 1.7690622941012437e-07, | |
"total": 3.356167957817311e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 2979588.6635255036 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.99484979057312, | |
"mean": 0.017453505097774036, | |
"stdev": 0.000499759513121382, | |
"p50": 0.01720524787902832, | |
"p90": 0.01779834899902344, | |
"p95": 0.018346803283691402, | |
"p99": 0.01936818176269531, | |
"values": [ | |
0.01943756866455078, | |
0.019132415771484376, | |
0.019313663482666017, | |
0.017670143127441407, | |
0.01720524787902832, | |
0.01718681526184082, | |
0.01724006462097168, | |
0.017201152801513672, | |
0.017188928604125978, | |
0.017180608749389648, | |
0.017192960739135742, | |
0.017282047271728516, | |
0.01805721664428711, | |
0.017786880493164063, | |
0.0178155517578125, | |
0.017719295501708983, | |
0.0171909122467041, | |
0.01719808006286621, | |
0.017175552368164062, | |
0.01718988800048828, | |
0.017188863754272463, | |
0.01719398307800293, | |
0.01720012855529785, | |
0.01720524787902832, | |
0.017140735626220704, | |
0.017291263580322267, | |
0.017184768676757813, | |
0.017159168243408202, | |
0.017185792922973633, | |
0.017146879196166993, | |
0.01721139144897461, | |
0.01721855926513672, | |
0.017622016906738282, | |
0.018150400161743165, | |
0.017743871688842772, | |
0.017584127426147463, | |
0.017475584030151366, | |
0.017667072296142578, | |
0.01760051155090332, | |
0.01760256004333496, | |
0.017487871170043946, | |
0.017661951065063478, | |
0.017709056854248048, | |
0.01725951957702637, | |
0.01719503974914551, | |
0.017192928314208985, | |
0.017176576614379883, | |
0.01720217514038086, | |
0.017157119750976564, | |
0.017179647445678712, | |
0.01718272018432617, | |
0.017175552368164062, | |
0.01718169593811035, | |
0.017293312072753905, | |
0.017238016128540038, | |
0.0172042236328125, | |
0.01721446418762207 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 57.29508166972929 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |