
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a227837
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": {}, | |
"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.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.33.0", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 719.966208, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.16954638671875, | |
"mean": 7.16954638671875, | |
"stdev": 0.0, | |
"p50": 7.16954638671875, | |
"p90": 7.16954638671875, | |
"p95": 7.16954638671875, | |
"p99": 7.16954638671875, | |
"values": [ | |
7.16954638671875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.82990364233653e-07, | |
"ram": 5.218254813051242e-07, | |
"gpu": 1.7002791380001363e-06, | |
"total": 3.205094983538914e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1027.641344, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.4887719049453735, | |
"mean": 0.006695505547196897, | |
"stdev": 0.0003676306828363238, | |
"p50": 0.006725696086883545, | |
"p90": 0.007211078262329101, | |
"p95": 0.00725409927368164, | |
"p99": 0.007501672763824464, | |
"values": [ | |
0.007777023792266846, | |
0.007394591808319092, | |
0.006731200218200684, | |
0.007234848022460937, | |
0.00693452787399292, | |
0.006983232021331787, | |
0.007165152072906494, | |
0.007198944091796875, | |
0.006947711944580078, | |
0.0073006081581115725, | |
0.007217984199523925, | |
0.006785600185394287, | |
0.006829855918884277, | |
0.006725696086883545, | |
0.006948351860046387, | |
0.006647200107574463, | |
0.006608704090118408, | |
0.006638175964355468, | |
0.0068663997650146484, | |
0.006907008171081543, | |
0.006737599849700928, | |
0.006766335964202881, | |
0.006798399925231934, | |
0.007282976150512695, | |
0.006982463836669922, | |
0.007022208213806153, | |
0.006951776027679444, | |
0.007043424129486084, | |
0.006640768051147461, | |
0.006624224185943603, | |
0.0068000640869140625, | |
0.007229311943054199, | |
0.007074368000030517, | |
0.006735680103302002, | |
0.00671830415725708, | |
0.00670531177520752, | |
0.00676966381072998, | |
0.00685811185836792, | |
0.006788447856903076, | |
0.006767648220062256, | |
0.006955967903137207, | |
0.006973536014556885, | |
0.006827072143554687, | |
0.006441984176635742, | |
0.006458399772644043, | |
0.006493855953216552, | |
0.007214111804962158, | |
0.006459616184234619, | |
0.00641596794128418, | |
0.006314943790435791, | |
0.006455423831939697, | |
0.006477920055389405, | |
0.0063281598091125485, | |
0.006057216167449951, | |
0.006063072204589843, | |
0.006081600189208985, | |
0.006086431980133057, | |
0.006475520133972168, | |
0.006420544147491455, | |
0.006436831951141357, | |
0.006328512191772461, | |
0.006105120182037353, | |
0.005968063831329346, | |
0.006054848194122314, | |
0.006087296009063721, | |
0.006343008041381836, | |
0.006487199783325195, | |
0.006471327781677246, | |
0.006688416004180908, | |
0.0063719358444213866, | |
0.006402656078338623, | |
0.006461952209472656, | |
0.006423488140106202 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 298.70784004313293 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.58480357094513e-08, | |
"ram": 4.147030589818021e-08, | |
"gpu": 1.4828391197452276e-07, | |
"total": 2.656022535821543e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7530056.590357104 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1043.283968, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.5157769589424134, | |
"mean": 0.00706543779373169, | |
"stdev": 0.0003897420513009189, | |
"p50": 0.007009664058685303, | |
"p90": 0.007576172828674316, | |
"p95": 0.00762913293838501, | |
"p99": 0.007824724330902099, | |
"values": [ | |
0.0078037757873535155, | |
0.007509791851043701, | |
0.00743120002746582, | |
0.007585919857025146, | |
0.0073119039535522465, | |
0.00748528003692627, | |
0.007569439888000488, | |
0.0075615038871765135, | |
0.007611584186553955, | |
0.007558527946472168, | |
0.007587711811065673, | |
0.007096608161926269, | |
0.007143583774566651, | |
0.00705731201171875, | |
0.007409471988677979, | |
0.00699948787689209, | |
0.007009664058685303, | |
0.007114079952239991, | |
0.007153664112091064, | |
0.007195744037628174, | |
0.006930016040802002, | |
0.00734716796875, | |
0.007014976024627685, | |
0.007878592014312744, | |
0.007523488044738769, | |
0.007655456066131592, | |
0.007427040100097656, | |
0.007483168125152588, | |
0.007086239814758301, | |
0.007015135765075684, | |
0.007493343830108643, | |
0.007665503978729248, | |
0.007508831977844238, | |
0.00699180793762207, | |
0.007183680057525635, | |
0.007190656185150146, | |
0.007383200168609619, | |
0.006964128017425537, | |
0.0068923521041870115, | |
0.007307007789611817, | |
0.0073547840118408205, | |
0.007577856063842773, | |
0.006831999778747559, | |
0.006838016033172608, | |
0.006787968158721924, | |
0.006895872116088867, | |
0.006900063991546631, | |
0.006931359767913818, | |
0.006715712070465088, | |
0.006796351909637451, | |
0.006808383941650391, | |
0.006787424087524414, | |
0.00640553617477417, | |
0.00640828800201416, | |
0.006415743827819825, | |
0.006371520042419434, | |
0.0067407040596008305, | |
0.006935679912567138, | |
0.006762847900390625, | |
0.006731200218200684, | |
0.006768864154815674, | |
0.006370143890380859, | |
0.006423552036285401, | |
0.006382080078125, | |
0.006369696140289306, | |
0.006901887893676758, | |
0.006828671932220459, | |
0.00675491189956665, | |
0.006812255859375, | |
0.006746463775634766, | |
0.0066986560821533205, | |
0.006907072067260742, | |
0.006677343845367432 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.53404632437346 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.170258176170205e-08, | |
"ram": 3.9103379393108727e-08, | |
"gpu": 1.7309837530942695e-07, | |
"total": 2.8390433646423774e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3522313.2286532223 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.4817408633232118, | |
"mean": 0.006599189908537146, | |
"stdev": 0.00032978990580072916, | |
"p50": 0.006524928092956543, | |
"p90": 0.007025049495697022, | |
"p95": 0.007075020694732666, | |
"p99": 0.007259381694793701, | |
"values": [ | |
0.007214079856872559, | |
0.006976511955261231, | |
0.006918144226074219, | |
0.007073791980743408, | |
0.0067717118263244626, | |
0.006961152076721191, | |
0.0070225920677185055, | |
0.006999072074890137, | |
0.007066656112670899, | |
0.0070256638526916505, | |
0.007031807899475098, | |
0.006603775978088379, | |
0.006557695865631104, | |
0.006575104236602783, | |
0.006896639823913574, | |
0.006524928092956543, | |
0.00648089599609375, | |
0.006615104198455811, | |
0.006647808074951172, | |
0.0067010560035705566, | |
0.006458208084106445, | |
0.006843391895294189, | |
0.006512639999389648, | |
0.007375872135162354, | |
0.0069909758567810055, | |
0.007076863765716553, | |
0.006907904148101806, | |
0.006968287944793701, | |
0.006592512130737305, | |
0.006500351905822754, | |
0.006970367908477783, | |
0.007135231971740722, | |
0.0069283838272094726, | |
0.006516736030578613, | |
0.006663167953491211, | |
0.006748159885406494, | |
0.006818816184997558, | |
0.006556640148162842, | |
0.006476736068725586, | |
0.006808576107025147, | |
0.006820864200592041, | |
0.006974463939666748, | |
0.006434847831726074, | |
0.006449151992797852, | |
0.006391808032989502, | |
0.006494207859039307, | |
0.006511616230010986, | |
0.006490079879760742, | |
0.006299647808074951, | |
0.006401023864746094, | |
0.006409215927124024, | |
0.00638976001739502, | |
0.006031360149383545, | |
0.006032383918762207, | |
0.006041600227355957, | |
0.005997568130493164, | |
0.00632422399520874, | |
0.00653004789352417, | |
0.006362112045288086, | |
0.006310912132263183, | |
0.0063836159706115725, | |
0.0059985918998718265, | |
0.006049791812896729, | |
0.005996543884277344, | |
0.0059944639205932616, | |
0.006482944011688232, | |
0.006436863899230957, | |
0.006368256092071533, | |
0.006415487766265869, | |
0.006343711853027343, | |
0.006300672054290772, | |
0.006475872039794922, | |
0.006283135890960694 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 151.53375093908636 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |