
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2d0b0d7
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": 1083.232256, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.49716588306427, | |
"mean": 0.00887796219757625, | |
"stdev": 0.0003569224702278693, | |
"p50": 0.008936463832855224, | |
"p90": 0.009174736022949218, | |
"p95": 0.00937513566017151, | |
"p99": 0.009884148597717284, | |
"values": [ | |
0.009942527770996093, | |
0.009836383819580078, | |
0.009390399932861329, | |
0.009161952018737794, | |
0.00900227165222168, | |
0.008884223937988281, | |
0.009013759613037109, | |
0.009126784324645996, | |
0.008980480194091797, | |
0.009118111610412597, | |
0.009094655990600586, | |
0.008986335754394531, | |
0.009053471565246583, | |
0.008870911598205567, | |
0.008930239677429199, | |
0.008962271690368652, | |
0.009152095794677734, | |
0.009111295700073243, | |
0.008949119567871094, | |
0.009052160263061524, | |
0.008942111968994141, | |
0.009006431579589844, | |
0.009090559959411621, | |
0.008968192100524902, | |
0.008930815696716308, | |
0.008917471885681153, | |
0.009150239944458008, | |
0.009140959739685059, | |
0.009044832229614257, | |
0.00915817642211914, | |
0.008800543785095215, | |
0.008894432067871093, | |
0.008625120162963866, | |
0.009187520027160645, | |
0.009221952438354492, | |
0.009370047569274903, | |
0.008813183784484863, | |
0.008823840141296387, | |
0.00886303997039795, | |
0.008809632301330566, | |
0.008781439781188964, | |
0.008442463874816895, | |
0.008416864395141601, | |
0.00840880012512207, | |
0.008438400268554688, | |
0.008404895782470704, | |
0.00842848014831543, | |
0.008387935638427735, | |
0.008411775588989258, | |
0.008405823707580567, | |
0.008395071983337402, | |
0.008383808135986328, | |
0.008391327857971191, | |
0.008417759895324707, | |
0.008335359573364258, | |
0.008337120056152343 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 225.2769222813333 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0435225235091316e-07, | |
"ram": 5.6873488076809344e-08, | |
"gpu": 1.878047311403553e-07, | |
"total": 3.490304715680778e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5730158.719422592 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1083.232256, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5132784614562989, | |
"mean": 0.009165686811719623, | |
"stdev": 0.0003543773515219473, | |
"p50": 0.00924623966217041, | |
"p90": 0.009543647766113281, | |
"p95": 0.009686823606491089, | |
"p99": 0.010053987169265748, | |
"values": [ | |
0.009997280120849609, | |
0.010123295783996582, | |
0.009646623611450196, | |
0.009312128067016602, | |
0.009336288452148438, | |
0.009214847564697266, | |
0.009328927993774414, | |
0.009289536476135254, | |
0.009288864135742187, | |
0.009455327987670898, | |
0.009374496459960937, | |
0.009322431564331055, | |
0.009503871917724609, | |
0.009247039794921875, | |
0.009303423881530761, | |
0.009346303939819335, | |
0.009444704055786133, | |
0.009339648246765137, | |
0.00938041591644287, | |
0.009333408355712891, | |
0.009211359977722168, | |
0.009260479927062987, | |
0.009228608131408692, | |
0.009259424209594726, | |
0.009297760009765624, | |
0.009334976196289063, | |
0.009604800224304199, | |
0.00934620761871338, | |
0.009245439529418946, | |
0.009288864135742187, | |
0.009160544395446777, | |
0.009036992073059082, | |
0.009224800109863282, | |
0.009583423614501953, | |
0.00980742359161377, | |
0.00909727954864502, | |
0.00910358428955078, | |
0.009095104217529296, | |
0.009114336013793946, | |
0.009052415847778321, | |
0.00918131160736084, | |
0.008668383598327637, | |
0.0086430082321167, | |
0.008669695854187011, | |
0.008668607711791992, | |
0.008662336349487305, | |
0.00871951961517334, | |
0.008699263572692871, | |
0.008704256057739258, | |
0.008672575950622558, | |
0.008658687591552734, | |
0.008630559921264649, | |
0.008687647819519043, | |
0.0086593599319458, | |
0.00883033561706543, | |
0.00858022403717041 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 109.10257142120098 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.715176992497204e-08, | |
"ram": 5.329583845788962e-08, | |
"gpu": 1.7571250882573867e-07, | |
"total": 3.2616011720860024e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3065978.7853842233 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.9923717117309572, | |
"mean": 0.01804312203147195, | |
"stdev": 0.0006602746167743235, | |
"p50": 0.018239488601684572, | |
"p90": 0.018619801712036133, | |
"p95": 0.018848972511291504, | |
"p99": 0.019480391693115235, | |
"values": [ | |
0.019987455368041994, | |
0.01904844856262207, | |
0.01860095977783203, | |
0.0183767032623291, | |
0.018121728897094725, | |
0.018359296798706053, | |
0.01843609619140625, | |
0.018334720611572267, | |
0.0186060791015625, | |
0.018512895584106445, | |
0.018326528549194337, | |
0.01855699157714844, | |
0.01820460891723633, | |
0.018239488601684572, | |
0.018344959259033202, | |
0.018611200332641603, | |
0.01846681594848633, | |
0.018379776000976563, | |
0.01843302345275879, | |
0.018199552536010744, | |
0.018281471252441405, | |
0.018379776000976563, | |
0.018251775741577148, | |
0.01820569610595703, | |
0.018313215255737304, | |
0.018774015426635742, | |
0.0185446720123291, | |
0.018370527267456055, | |
0.01848422431945801, | |
0.017971200942993162, | |
0.01806438446044922, | |
0.01783296012878418, | |
0.018770944595336913, | |
0.01902387237548828, | |
0.01862553596496582, | |
0.017945600509643556, | |
0.01794867134094238, | |
0.01799884796142578, | |
0.01789030456542969, | |
0.017983488082885742, | |
0.017157119750976564, | |
0.01708755111694336, | |
0.01707923126220703, | |
0.017149984359741213, | |
0.01709257507324219, | |
0.017168384552001953, | |
0.017117183685302736, | |
0.017139711380004884, | |
0.017110015869140623, | |
0.017069055557250978, | |
0.01705062484741211, | |
0.017098751068115235, | |
0.017114112854003907, | |
0.017160192489624023, | |
0.01696870422363281 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 55.42278094975676 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |