
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
333172a
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_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": {}, | |
"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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.3.1", | |
"optimum_benchmark_commit": null, | |
"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 | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1043.034112, | |
"max_global_vram": 1353.187328, | |
"max_process_vram": 0.0, | |
"max_reserved": 713.03168, | |
"max_allocated": 509.62176 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4856169290542601, | |
"mean": 0.006744679570198059, | |
"stdev": 0.00032005002035491426, | |
"p50": 0.006638000011444092, | |
"p90": 0.007173583793640136, | |
"p95": 0.007279503846168519, | |
"p99": 0.007392292194366456, | |
"values": [ | |
0.007535359859466553, | |
0.0072663998603820805, | |
0.007173855781555175, | |
0.007071807861328125, | |
0.006950272083282471, | |
0.006947455883026123, | |
0.007295519828796387, | |
0.007142144203186035, | |
0.00692793607711792, | |
0.006971168041229248, | |
0.007058688163757324, | |
0.006886079788208008, | |
0.007073952198028565, | |
0.006938752174377442, | |
0.007001696109771728, | |
0.0068401918411254885, | |
0.007149312019348144, | |
0.007182528018951416, | |
0.007333856105804443, | |
0.007297535896301269, | |
0.00718617582321167, | |
0.0070087041854858395, | |
0.006817920207977295, | |
0.007170591831207275, | |
0.006738239765167236, | |
0.006715712070465088, | |
0.006994815826416015, | |
0.007171135902404785, | |
0.007118080139160156, | |
0.006962592124938965, | |
0.006740992069244385, | |
0.006624063968658447, | |
0.006415808200836181, | |
0.006338143825531006, | |
0.006340608119964599, | |
0.00635145616531372, | |
0.006320864200592041, | |
0.006918911933898926, | |
0.007005663871765136, | |
0.006675968170166016, | |
0.006596352100372314, | |
0.006643167972564697, | |
0.006632832050323487, | |
0.006632415771484375, | |
0.006686624050140381, | |
0.006601535797119141, | |
0.006589183807373047, | |
0.006333792209625244, | |
0.006296160221099853, | |
0.0063344001770019535, | |
0.006324096202850342, | |
0.006338880062103271, | |
0.006443295955657959, | |
0.006587935924530029, | |
0.006576352119445801, | |
0.0065790400505065915, | |
0.006627488136291504, | |
0.006511072158813477, | |
0.006545760154724121, | |
0.006526815891265869, | |
0.006594592094421386, | |
0.006576576232910156, | |
0.006520703792572021, | |
0.00656876802444458, | |
0.006348544120788574, | |
0.006320767879486084, | |
0.006361760139465332, | |
0.006559455871582031, | |
0.006531519889831543, | |
0.006569600105285645, | |
0.006313151836395263, | |
0.006283328056335449 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 296.5300247675472 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.959732192533988e-08, | |
"ram": 4.3361527761681546e-08, | |
"gpu": 1.481575259333276e-07, | |
"total": 2.71116375620349e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7376905.933563561 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1043.034112, | |
"max_global_vram": 1353.187328, | |
"max_process_vram": 0.0, | |
"max_reserved": 713.03168, | |
"max_allocated": 509.845504 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5154139842987059, | |
"mean": 0.007158527559704251, | |
"stdev": 0.0003778907818828282, | |
"p50": 0.007012351989746094, | |
"p90": 0.007602044677734375, | |
"p95": 0.0076916991949081415, | |
"p99": 0.0080276951122284, | |
"values": [ | |
0.007623360157012939, | |
0.007554624080657959, | |
0.007728831768035889, | |
0.007468639850616455, | |
0.007415167808532715, | |
0.007405504226684571, | |
0.007599135875701904, | |
0.007440032005310059, | |
0.007371168136596679, | |
0.007490560054779053, | |
0.007454336166381836, | |
0.00745468807220459, | |
0.00746617603302002, | |
0.007341824054718018, | |
0.007378464221954346, | |
0.007283967971801758, | |
0.007628064155578613, | |
0.008743647575378419, | |
0.00773526382446289, | |
0.007602367877960205, | |
0.007564352035522461, | |
0.007361792087554932, | |
0.007520607948303223, | |
0.007262527942657471, | |
0.007532192230224609, | |
0.007089951992034912, | |
0.007544703960418701, | |
0.00756828784942627, | |
0.007316736221313477, | |
0.007082176208496094, | |
0.006991136074066162, | |
0.006920447826385498, | |
0.0067125439643859865, | |
0.0067112002372741696, | |
0.006637087821960449, | |
0.006678207874298096, | |
0.007682943820953369, | |
0.007702400207519531, | |
0.007029823780059815, | |
0.007009024143218994, | |
0.0069853439331054685, | |
0.006927328109741211, | |
0.007010464191436768, | |
0.007107264041900635, | |
0.006964608192443848, | |
0.006927296161651612, | |
0.006926623821258545, | |
0.006681695938110351, | |
0.006747551918029785, | |
0.006679232120513916, | |
0.006796319961547851, | |
0.006723392009735108, | |
0.006988448143005371, | |
0.00701423978805542, | |
0.006959360122680664, | |
0.006914015769958496, | |
0.006907167911529541, | |
0.0069138240814208985, | |
0.006934336185455322, | |
0.00698089599609375, | |
0.006898655891418457, | |
0.006945312023162842, | |
0.006951456069946289, | |
0.0070375361442565915, | |
0.0067140798568725586, | |
0.006694655895233154, | |
0.0067259521484375, | |
0.006995776176452637, | |
0.006916255950927735, | |
0.006910912036895752, | |
0.0067420477867126466, | |
0.006687967777252197 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.69353217679225 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.568157434520839e-08, | |
"ram": 4.154277582196009e-08, | |
"gpu": 1.7473595027448528e-07, | |
"total": 2.9196030044165373e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3425123.2050634334 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.48235212898254376, | |
"mean": 0.006699335124757556, | |
"stdev": 0.00032755737922476907, | |
"p50": 0.006603775978088379, | |
"p90": 0.007076864004135132, | |
"p95": 0.007178956627845764, | |
"p99": 0.007511675834655768, | |
"values": [ | |
0.007077888011932373, | |
0.006968319892883301, | |
0.0071823358535766605, | |
0.006952960014343262, | |
0.0068392958641052244, | |
0.006884352207183838, | |
0.007067647933959961, | |
0.006840320110321045, | |
0.00684441614151001, | |
0.006971392154693603, | |
0.006941696166992187, | |
0.006913023948669434, | |
0.00694271993637085, | |
0.006806528091430664, | |
0.006845439910888672, | |
0.006732800006866455, | |
0.007106560230255127, | |
0.008200160026550293, | |
0.007176191806793213, | |
0.0069847040176391605, | |
0.007028768062591553, | |
0.006863872051239014, | |
0.006959104061126709, | |
0.006830048084259033, | |
0.00710041618347168, | |
0.0066375679969787596, | |
0.007031807899475098, | |
0.007041024208068848, | |
0.006846464157104492, | |
0.006632448196411133, | |
0.00658841609954834, | |
0.006516736030578613, | |
0.006322239875793457, | |
0.0063201279640197755, | |
0.006246399879455566, | |
0.006261760234832763, | |
0.0072120318412780765, | |
0.007230463981628418, | |
0.006619135856628418, | |
0.006601727962493896, | |
0.0065812478065490725, | |
0.006523903846740723, | |
0.006605823993682861, | |
0.006696896076202392, | |
0.006557695865631104, | |
0.006515711784362793, | |
0.006493184089660644, | |
0.006293504238128662, | |
0.006347775936126709, | |
0.0062791681289672855, | |
0.006366208076477051, | |
0.006323200225830078, | |
0.006583327770233154, | |
0.0065812478065490725, | |
0.006546432018280029, | |
0.006496255874633789, | |
0.006495232105255127, | |
0.006502399921417237, | |
0.006501376152038574, | |
0.0065812478065490725, | |
0.006493184089660644, | |
0.00653004789352417, | |
0.006540287971496582, | |
0.006626304149627686, | |
0.006312960147857666, | |
0.006294528007507324, | |
0.006323200225830078, | |
0.006584320068359375, | |
0.006502399921417237, | |
0.006496255874633789, | |
0.006306816101074219, | |
0.006300672054290772 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 149.2685440237906 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |