
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e49e8d5
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+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.225-213.878.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.5.0.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.13.2", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 805.425152, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0794808349609375 | |
], | |
"count": 1, | |
"total": 0.0794808349609375, | |
"mean": 0.0794808349609375, | |
"p50": 0.0794808349609375, | |
"p90": 0.0794808349609375, | |
"p95": 0.0794808349609375, | |
"p99": 0.0794808349609375, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1239.240704, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.410496 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007563104152679443, | |
0.007074528217315674, | |
0.007619584083557129, | |
0.007390336036682129, | |
0.007259488105773926, | |
0.007963391780853271, | |
0.007370272159576416, | |
0.007445407867431641, | |
0.007390592098236084, | |
0.007270336151123047, | |
0.007045343875885009, | |
0.007371903896331787, | |
0.0069781761169433595, | |
0.007046976089477539, | |
0.0073396477699279785, | |
0.0069671359062194824, | |
0.007115839958190918, | |
0.007059616088867187, | |
0.007294112205505371, | |
0.007380032062530518, | |
0.007222432136535645, | |
0.00726585578918457, | |
0.0071428799629211425, | |
0.007104479789733887, | |
0.0070548801422119145, | |
0.007033728122711182, | |
0.00671830415725708, | |
0.006924575805664063, | |
0.006634943962097168, | |
0.0069053759574890135, | |
0.0070965437889099125, | |
0.007190976142883301, | |
0.007565536022186279, | |
0.00704204797744751, | |
0.007143616199493408, | |
0.007018623828887939, | |
0.00704095983505249, | |
0.006777503967285156, | |
0.00683622407913208, | |
0.0069474239349365235, | |
0.006791264057159424, | |
0.006776319980621338, | |
0.006799136161804199, | |
0.0065170879364013674, | |
0.0064934720993041995, | |
0.006487584114074707, | |
0.006565951824188233, | |
0.006585087776184082, | |
0.0065131840705871585, | |
0.0064817600250244144, | |
0.006465727806091308, | |
0.006477952003479004, | |
0.006467328071594238, | |
0.006580512046813965, | |
0.006681151866912842, | |
0.006500895977020264, | |
0.006553599834442139, | |
0.00648902416229248, | |
0.00648748779296875, | |
0.006473472118377685, | |
0.00663212776184082, | |
0.006619328022003173, | |
0.006511775970458984, | |
0.006520864009857178, | |
0.006494463920593262, | |
0.00646284818649292, | |
0.0064757118225097655, | |
0.006559967994689941, | |
0.006517983913421631, | |
0.006467967987060547, | |
0.006519167900085449, | |
0.00646892786026001 | |
], | |
"count": 72, | |
"total": 0.4960518712997436, | |
"mean": 0.006889609323607551, | |
"p50": 0.006870800018310547, | |
"p90": 0.0073792192459106445, | |
"p95": 0.007498371195793152, | |
"p99": 0.007719288315773012, | |
"stdev": 0.0003690839122040811, | |
"stdev_": 5.357109450885679 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 290.29222210712464 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.070860883880687e-08, | |
"ram": 4.4093493089416336e-08, | |
"gpu": 1.508825848027191e-07, | |
"total": 2.756846867309423e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7254664.826385236 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1239.240704, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.458112 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007265600204467773, | |
0.007329472064971924, | |
0.007769855976104736, | |
0.007625343799591064, | |
0.007656000137329102, | |
0.007481919765472412, | |
0.007632512092590332, | |
0.008144800186157226, | |
0.007702432155609131, | |
0.007365695953369141, | |
0.007539167881011963, | |
0.007253888130187988, | |
0.007248991966247558, | |
0.007413023948669433, | |
0.007374112129211426, | |
0.00740940809249878, | |
0.0072758722305297854, | |
0.007467328071594238, | |
0.0074431681632995605, | |
0.007463295936584472, | |
0.007446784019470215, | |
0.007318016052246094, | |
0.007370336055755615, | |
0.0071125121116638185, | |
0.007389791965484619, | |
0.007171840190887451, | |
0.00690828800201416, | |
0.0069213762283325195, | |
0.0073155198097229, | |
0.007198495864868164, | |
0.00732528018951416, | |
0.007496992111206055, | |
0.007481503963470459, | |
0.007195007801055908, | |
0.007311423778533935, | |
0.007134719848632813, | |
0.0069491519927978515, | |
0.006940159797668457, | |
0.0070032958984375, | |
0.007012256145477295, | |
0.007016191959381104, | |
0.007090335845947266, | |
0.00698144006729126, | |
0.006718239784240723, | |
0.006662367820739746, | |
0.006722464084625244, | |
0.006757984161376953, | |
0.006653439998626709, | |
0.006811872005462647, | |
0.006717887878417969, | |
0.006662752151489258, | |
0.006661248207092285, | |
0.0067255678176879885, | |
0.0068206400871276855, | |
0.006856319904327393, | |
0.006690624237060547, | |
0.0066713919639587406, | |
0.00663644790649414, | |
0.006696127891540528, | |
0.00667523193359375, | |
0.0067881917953491215, | |
0.006772640228271484, | |
0.006717951774597168, | |
0.006643487930297852, | |
0.006691232204437256, | |
0.0066648640632629395, | |
0.006657760143280029, | |
0.007117504119873047, | |
0.006696640014648437, | |
0.00666707181930542, | |
0.006659359931945801, | |
0.006716512203216553 | |
], | |
"count": 72, | |
"total": 0.5098864326477051, | |
"mean": 0.007081756008995904, | |
"p50": 0.007053263902664185, | |
"p90": 0.00749548487663269, | |
"p95": 0.007643081712722779, | |
"p99": 0.00787858979701996, | |
"stdev": 0.0003597204918548112, | |
"stdev_": 5.079538060868813 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.20791491964806 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.467098578600935e-08, | |
"ram": 4.080429511734141e-08, | |
"gpu": 1.3773957971675356e-07, | |
"total": 2.532148606201042e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3949215.293095654 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.006738944053649902, | |
0.006834176063537598, | |
0.007260159969329834, | |
0.007098368167877197, | |
0.007032832145690918, | |
0.006959104061126709, | |
0.0071157760620117185, | |
0.007633855819702148, | |
0.007169023990631103, | |
0.006818816184997558, | |
0.007017471790313721, | |
0.0067717118263244626, | |
0.00673689603805542, | |
0.0068351998329162595, | |
0.006871039867401123, | |
0.0068986878395080565, | |
0.006765567779541016, | |
0.006910975933074951, | |
0.00692633581161499, | |
0.00694374418258667, | |
0.006916096210479736, | |
0.006818816184997558, | |
0.006856704235076904, | |
0.006605823993682861, | |
0.006906879901885986, | |
0.0067051520347595215, | |
0.006466559886932373, | |
0.0064849920272827145, | |
0.0068986878395080565, | |
0.0067358717918396, | |
0.006882304191589355, | |
0.006985727787017822, | |
0.007044095993041993, | |
0.006761472225189209, | |
0.0068577280044555666, | |
0.006708223819732666, | |
0.006550528049468994, | |
0.006542335987091064, | |
0.006592512130737305, | |
0.0066078720092773435, | |
0.006598656177520752, | |
0.006688767910003662, | |
0.006563839912414551, | |
0.0063170561790466305, | |
0.006269951820373535, | |
0.0063211522102355954, | |
0.006359039783477783, | |
0.006266880035400391, | |
0.0064143362045288085, | |
0.006322175979614258, | |
0.00626585578918457, | |
0.006254591941833496, | |
0.006333439826965332, | |
0.006416384220123291, | |
0.006429696083068847, | |
0.006304768085479737, | |
0.006273024082183838, | |
0.0062494721412658695, | |
0.006295487880706787, | |
0.00628326416015625, | |
0.006393856048583985, | |
0.006367199897766114, | |
0.006333439826965332, | |
0.006259712219238281, | |
0.006296576023101807, | |
0.006281216144561768, | |
0.006266880035400391, | |
0.006714367866516113, | |
0.006294528007507324, | |
0.006280191898345947, | |
0.006269951820373535, | |
0.0063272957801818845 | |
], | |
"count": 72, | |
"total": 0.4775801277160646, | |
"mean": 0.006633057329389785, | |
"p50": 0.006606848001480103, | |
"p90": 0.007014297389984131, | |
"p95": 0.007106201720237732, | |
"p99": 0.007368531765937807, | |
"stdev": 0.0003094969818185124, | |
"stdev_": 4.665977790470641 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.7600417637271 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |