
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a107cf3
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.01952, | |
"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.429248046875, | |
"mean": 7.429248046875, | |
"stdev": 0.0, | |
"p50": 7.429248046875, | |
"p90": 7.429248046875, | |
"p95": 7.429248046875, | |
"p99": 7.429248046875, | |
"values": [ | |
7.429248046875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.915146583330406e-07, | |
"ram": 5.223145639286418e-07, | |
"gpu": 1.6222235199999865e-06, | |
"total": 3.136052742261669e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1214.128128, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.48669782209396356, | |
"mean": 0.007157320913146523, | |
"stdev": 0.00031840915898254026, | |
"p50": 0.007097136020660401, | |
"p90": 0.007569644737243653, | |
"p95": 0.0076212927818298335, | |
"p99": 0.007867484803199768, | |
"values": [ | |
0.007915296077728272, | |
0.007608799934387207, | |
0.007576992034912109, | |
0.007644095897674561, | |
0.007396255970001221, | |
0.006914559841156006, | |
0.007000639915466309, | |
0.007097792148590088, | |
0.00702400016784668, | |
0.006985824108123779, | |
0.007069759845733643, | |
0.007053760051727295, | |
0.007459136009216308, | |
0.007455039978027344, | |
0.007457183837890625, | |
0.007390207767486572, | |
0.007440800189971924, | |
0.0074170241355896, | |
0.007620543956756592, | |
0.00762169599533081, | |
0.007451615810394287, | |
0.007437312126159668, | |
0.007507872104644775, | |
0.007489344120025635, | |
0.007330111980438233, | |
0.007377024173736572, | |
0.007486688137054443, | |
0.0073684477806091305, | |
0.007032063961029053, | |
0.0074364480972290035, | |
0.007217567920684814, | |
0.007095327854156494, | |
0.007114016056060791, | |
0.007028031826019287, | |
0.0073619518280029295, | |
0.006899424076080322, | |
0.0068854718208312985, | |
0.007096479892730713, | |
0.006981215953826904, | |
0.007124767780303955, | |
0.007225984096527099, | |
0.007198463916778564, | |
0.007425248146057129, | |
0.007113920211791992, | |
0.00707151985168457, | |
0.007166816234588623, | |
0.006928415775299073, | |
0.006834208011627197, | |
0.006868383884429932, | |
0.006869919776916504, | |
0.006837855815887451, | |
0.006844736099243164, | |
0.006833216190338135, | |
0.0069036478996276854, | |
0.006879199981689453, | |
0.007032479763031006, | |
0.006787615776062012, | |
0.00685862398147583, | |
0.006857120037078858, | |
0.0068800320625305176, | |
0.006706655979156494, | |
0.0075664958953857425, | |
0.007843935966491699, | |
0.006978591918945312, | |
0.006889855861663819, | |
0.00657097578048706, | |
0.006455423831939697, | |
0.00639788818359375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 279.43416597772114 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.120780019976952e-08, | |
"ram": 4.4396884298539283e-08, | |
"gpu": 1.5276267928767235e-07, | |
"total": 2.7836736378598113e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7184750.298306062 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1232.805888, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.5138506236076357, | |
"mean": 0.007556626817759347, | |
"stdev": 0.00032924482950198914, | |
"p50": 0.007533184051513672, | |
"p90": 0.007973446321487426, | |
"p95": 0.008092949056625366, | |
"p99": 0.00813868151664734, | |
"values": [ | |
0.008118880271911622, | |
0.008098560333251953, | |
0.007886752128601075, | |
0.007930848121643066, | |
0.007705728054046631, | |
0.007353312015533448, | |
0.007461952209472656, | |
0.007486783981323243, | |
0.007482656002044678, | |
0.007656320095062256, | |
0.007448959827423096, | |
0.007688735961914063, | |
0.008127519607543945, | |
0.007955359935760497, | |
0.007747712135314941, | |
0.00787500810623169, | |
0.007860095977783203, | |
0.007862048149108887, | |
0.008015647888183593, | |
0.007932064056396484, | |
0.007759071826934814, | |
0.008062911987304687, | |
0.007903456211090088, | |
0.007781983852386475, | |
0.0078087677955627445, | |
0.007920000076293945, | |
0.00779315185546875, | |
0.00782867193222046, | |
0.007325600147247315, | |
0.008161343574523926, | |
0.0075616960525512695, | |
0.00748195219039917, | |
0.00739081621170044, | |
0.007776351928710937, | |
0.008082528114318848, | |
0.007264736175537109, | |
0.007070975780487061, | |
0.007282976150512695, | |
0.007364192008972168, | |
0.007528416156768799, | |
0.007537951946258545, | |
0.007810368061065674, | |
0.007558623790740967, | |
0.007643807888031006, | |
0.007346687793731689, | |
0.007343071937561035, | |
0.007269408226013184, | |
0.007353888034820556, | |
0.007251039981842041, | |
0.0072399358749389645, | |
0.00721727991104126, | |
0.007215680122375489, | |
0.007232927799224854, | |
0.007194623947143554, | |
0.0071857919692993166, | |
0.007180928230285644, | |
0.00718179178237915, | |
0.00721062421798706, | |
0.007264895915985108, | |
0.007272607803344726, | |
0.00781932783126831, | |
0.007538911819458008, | |
0.007720895767211914, | |
0.0072297282218933105, | |
0.007274240016937256, | |
0.006746272087097168, | |
0.006777823925018311, | |
0.007386943817138672 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.33417821425712 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.539235429584578e-08, | |
"ram": 4.1102874503024565e-08, | |
"gpu": 1.430708907123249e-07, | |
"total": 2.595661195111953e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3852582.925241402 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.4803144946098328, | |
"mean": 0.0070634484501445995, | |
"stdev": 0.00028570858116687626, | |
"p50": 0.007036416053771973, | |
"p90": 0.007416012620925903, | |
"p95": 0.007554355025291443, | |
"p99": 0.0075942819356918335, | |
"values": [ | |
0.007566336154937744, | |
0.007553023815155029, | |
0.007354368209838867, | |
0.007373856067657471, | |
0.007193600177764893, | |
0.006848512172698974, | |
0.006931456089019775, | |
0.006974463939666748, | |
0.006980607986450196, | |
0.007109632015228271, | |
0.00692633581161499, | |
0.007146495819091797, | |
0.00758787202835083, | |
0.007396351814270019, | |
0.007231488227844239, | |
0.007341055870056152, | |
0.007296000003814697, | |
0.007315455913543701, | |
0.007461887836456299, | |
0.007395328044891358, | |
0.007226367950439453, | |
0.007520256042480469, | |
0.007364607810974121, | |
0.007265279769897461, | |
0.007279615879058838, | |
0.007361536026000977, | |
0.007256063938140869, | |
0.007290880203247071, | |
0.006797311782836914, | |
0.007607295989990235, | |
0.007031807899475098, | |
0.006957056045532227, | |
0.006881279945373535, | |
0.007241727828979493, | |
0.007555071830749512, | |
0.006746111869812011, | |
0.00657919979095459, | |
0.00683628797531128, | |
0.0068689918518066405, | |
0.007045119762420654, | |
0.007041024208068848, | |
0.007271423816680909, | |
0.007094272136688232, | |
0.007181312084197998, | |
0.00690176010131836, | |
0.006897664070129395, | |
0.006853631973266602, | |
0.006940671920776367, | |
0.006838272094726563, | |
0.006816768169403077, | |
0.006797311782836914, | |
0.006795263767242431, | |
0.006823935985565186, | |
0.006783967971801758, | |
0.006776832103729248, | |
0.006759424209594727, | |
0.006761472225189209, | |
0.00678604793548584, | |
0.006855679988861084, | |
0.006821887969970703, | |
0.007160831928253173, | |
0.007079936027526855, | |
0.00728988790512085, | |
0.006807551860809326, | |
0.0068618240356445315, | |
0.006359039783477783, | |
0.00637440013885498, | |
0.00688640022277832 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.57390785226562 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |