
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c5994a4
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.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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 720.683008, | |
"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.16822021484375, | |
"mean": 7.16822021484375, | |
"stdev": 0.0, | |
"p50": 7.16822021484375, | |
"p90": 7.16822021484375, | |
"p95": 7.16822021484375, | |
"p99": 7.16822021484375, | |
"values": [ | |
7.16822021484375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0196682479646471e-06, | |
"ram": 5.195546492524272e-07, | |
"gpu": 1.8000014400001811e-06, | |
"total": 3.3392243372172553e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1032.708096, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4909608316421508, | |
"mean": 0.006818900439474317, | |
"stdev": 0.0003944946684721693, | |
"p50": 0.006804591894149781, | |
"p90": 0.007280316829681396, | |
"p95": 0.007411233735084534, | |
"p99": 0.007604856934547425, | |
"values": [ | |
0.007568831920623779, | |
0.007445888042449951, | |
0.007348512172698975, | |
0.007359072208404541, | |
0.007224512100219726, | |
0.006804351806640625, | |
0.007462751865386963, | |
0.007693056106567383, | |
0.007046783924102783, | |
0.0071933441162109375, | |
0.007285696029663086, | |
0.007202208042144775, | |
0.007188255786895752, | |
0.007173471927642823, | |
0.007026432037353515, | |
0.007072735786437989, | |
0.006757599830627441, | |
0.007124159812927246, | |
0.007214272022247314, | |
0.006997504234313965, | |
0.007033279895782471, | |
0.007189951896667481, | |
0.0072147841453552245, | |
0.006993247985839844, | |
0.006997312068939209, | |
0.0072035517692565915, | |
0.007074624061584473, | |
0.007020319938659668, | |
0.006715712070465088, | |
0.007209375858306884, | |
0.007231904029846191, | |
0.00710591983795166, | |
0.007108736038208008, | |
0.007150688171386719, | |
0.007382880210876465, | |
0.007112544059753418, | |
0.006691199779510498, | |
0.006601471900939942, | |
0.0068048319816589355, | |
0.006854144096374512, | |
0.006984992027282715, | |
0.006718912124633789, | |
0.006477119922637939, | |
0.00643071985244751, | |
0.006524447917938232, | |
0.0064553279876708985, | |
0.006445759773254394, | |
0.006437248229980469, | |
0.006429183959960938, | |
0.006463488101959228, | |
0.006454048156738282, | |
0.006453951835632324, | |
0.006439231872558594, | |
0.006448768138885498, | |
0.006443903923034668, | |
0.006418240070343017, | |
0.0064759359359741215, | |
0.006449855804443359, | |
0.00641542387008667, | |
0.006478752136230469, | |
0.006086016178131103, | |
0.006420896053314209, | |
0.006505119800567627, | |
0.006471680164337158, | |
0.006117472171783447, | |
0.0064563841819763185, | |
0.0064609918594360355, | |
0.00645366382598877, | |
0.006451871871948242, | |
0.006479199886322022, | |
0.006097760200500488, | |
0.006228544235229492 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 293.3024199066007 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.599153770850255e-08, | |
"ram": 4.148692837118967e-08, | |
"gpu": 1.5145311261538496e-07, | |
"total": 2.689315786950772e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7436835.829040593 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.080384, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5196409268379214, | |
"mean": 0.007217235094971127, | |
"stdev": 0.0003858415944739237, | |
"p50": 0.0072432801723480225, | |
"p90": 0.007660083055496216, | |
"p95": 0.007746329641342163, | |
"p99": 0.0077944289445877075, | |
"values": [ | |
0.007789696216583252, | |
0.007759071826934814, | |
0.007697279930114746, | |
0.007693408012390136, | |
0.007572864055633545, | |
0.007642111778259277, | |
0.007806015968322754, | |
0.007787263870239257, | |
0.0077359042167663575, | |
0.007641215801239013, | |
0.007660607814788819, | |
0.007498112201690674, | |
0.007548096179962158, | |
0.007446112155914307, | |
0.007411104202270508, | |
0.0074427838325500486, | |
0.007185599803924561, | |
0.007630815982818603, | |
0.0076201920509338375, | |
0.007574272155761719, | |
0.007626336097717285, | |
0.007655360221862793, | |
0.007578783988952636, | |
0.0074932479858398435, | |
0.007653183937072754, | |
0.007461408138275147, | |
0.007519839763641357, | |
0.0075344319343566895, | |
0.007194752216339111, | |
0.0076540160179138185, | |
0.007636864185333252, | |
0.00759500789642334, | |
0.007593952178955078, | |
0.007430496215820312, | |
0.007392767906188965, | |
0.007410463809967041, | |
0.0069202561378479, | |
0.007135647773742676, | |
0.0072468481063842774, | |
0.007239712238311768, | |
0.0073554239273071285, | |
0.006832223892211914, | |
0.0068824000358581544, | |
0.006869120121002197, | |
0.0068269758224487305, | |
0.006811967849731445, | |
0.00683955192565918, | |
0.0069110398292541505, | |
0.006857376098632812, | |
0.006805600166320801, | |
0.006793791770935058, | |
0.006890336036682129, | |
0.006808735847473144, | |
0.006837855815887451, | |
0.0068616318702697755, | |
0.006830751895904541, | |
0.0068055357933044435, | |
0.00683628797531128, | |
0.006832511901855469, | |
0.0068254399299621585, | |
0.006557983875274658, | |
0.006870368003845215, | |
0.006804192066192627, | |
0.00681935977935791, | |
0.00680185604095459, | |
0.0068599038124084475, | |
0.006808159828186035, | |
0.006807136058807373, | |
0.0068050241470336914, | |
0.0068074560165405276, | |
0.006437727928161621, | |
0.006831295967102051 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.55721572611463 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.130468280535277e-08, | |
"ram": 3.9042666607079346e-08, | |
"gpu": 1.4244972881671433e-07, | |
"total": 2.5279707822914626e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3955741.921564285 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4851362247467041, | |
"mean": 0.006738003121482001, | |
"stdev": 0.00032201604735827117, | |
"p50": 0.006761984109878541, | |
"p90": 0.007125606298446656, | |
"p95": 0.007185664010047913, | |
"p99": 0.007256719303131104, | |
"values": [ | |
0.0072334718704223635, | |
0.007211008071899414, | |
0.007146495819091797, | |
0.007164927959442138, | |
0.006960127830505371, | |
0.007060480117797851, | |
0.007251967906951904, | |
0.007268352031707764, | |
0.007127039909362793, | |
0.0070860800743103025, | |
0.007109632015228271, | |
0.006970367908477783, | |
0.007020544052124023, | |
0.00694271993637085, | |
0.0068986878395080565, | |
0.006938623905181885, | |
0.006666240215301514, | |
0.007039999961853028, | |
0.0070860800743103025, | |
0.007062528133392334, | |
0.007016448020935059, | |
0.007135231971740722, | |
0.007067647933959961, | |
0.006922175884246826, | |
0.007107583999633789, | |
0.00694374418258667, | |
0.006949888229370117, | |
0.007011328220367432, | |
0.006675456047058105, | |
0.007097343921661377, | |
0.007112703800201416, | |
0.007067647933959961, | |
0.0069816322326660156, | |
0.006936575889587402, | |
0.006907872200012207, | |
0.00687718391418457, | |
0.006511616230010986, | |
0.00658841609954834, | |
0.006776832103729248, | |
0.006747136116027832, | |
0.00687718391418457, | |
0.0064174079895019534, | |
0.006478847980499268, | |
0.006467584133148193, | |
0.006416384220123291, | |
0.0064102401733398436, | |
0.006437888145446777, | |
0.006501376152038574, | |
0.006458367824554443, | |
0.006409215927124024, | |
0.0063836159706115725, | |
0.006468607902526856, | |
0.0064102401733398436, | |
0.006426623821258545, | |
0.006462463855743408, | |
0.006419456005096436, | |
0.006388735771179199, | |
0.006428671836853027, | |
0.0064316802024841305, | |
0.006425600051879882, | |
0.006131711959838867, | |
0.006470655918121338, | |
0.006406144142150879, | |
0.006396927833557129, | |
0.006400000095367431, | |
0.006458432197570801, | |
0.006398975849151611, | |
0.006404096126556396, | |
0.006406144142150879, | |
0.006394879817962646, | |
0.0060364799499511715, | |
0.00643174409866333 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.41192293482544 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |