IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d93975e
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+rocm5.7", | |
"_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": "6", | |
"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": false, | |
"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": "warn", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"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.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1044.103168, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 41041.747968, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.353427734375, | |
"mean": 8.353427734375, | |
"stdev": 0.0, | |
"p50": 8.353427734375, | |
"p90": 8.353427734375, | |
"p95": 8.353427734375, | |
"p99": 8.353427734375, | |
"values": [ | |
8.353427734375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1213.382656, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 286839.734272, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5159016423225404, | |
"mean": 0.008320994231008716, | |
"stdev": 0.00036602939980996923, | |
"p50": 0.008252819061279296, | |
"p90": 0.008755044174194336, | |
"p95": 0.008762692070007324, | |
"p99": 0.008768546628952026, | |
"values": [ | |
0.007835378170013427, | |
0.007906737804412842, | |
0.0078731369972229, | |
0.007888018131256103, | |
0.00786801815032959, | |
0.007787857055664062, | |
0.007808018207550049, | |
0.008069297790527345, | |
0.008098738670349121, | |
0.007794577121734619, | |
0.007865777969360352, | |
0.007854736804962159, | |
0.007883537769317626, | |
0.008057297706604004, | |
0.007856177806854247, | |
0.007911858081817626, | |
0.00848721981048584, | |
0.008295059204101562, | |
0.008767860412597656, | |
0.00875665855407715, | |
0.008456019401550293, | |
0.008494098663330079, | |
0.008410099029541016, | |
0.008055377960205078, | |
0.008127378463745118, | |
0.008131858825683593, | |
0.008167219161987305, | |
0.008148338317871094, | |
0.008501938819885254, | |
0.008730738639831544, | |
0.00876274013519287, | |
0.008022098541259766, | |
0.008741459846496581, | |
0.008752820014953613, | |
0.008709299087524413, | |
0.008740180015563965, | |
0.00873953914642334, | |
0.00873394012451172, | |
0.008723699569702148, | |
0.008769619941711425, | |
0.008718899726867676, | |
0.008597140312194823, | |
0.00821057891845703, | |
0.008137778282165527, | |
0.00813729763031006, | |
0.008521618843078614, | |
0.008022418022155762, | |
0.007732977867126465, | |
0.007962257862091064, | |
0.008699058532714844, | |
0.008656179428100586, | |
0.008512659072875977, | |
0.008748338699340821, | |
0.008729140281677246, | |
0.008754899978637695, | |
0.008747699737548829, | |
0.008761778831481933, | |
0.008755060195922851, | |
0.008762900352478026, | |
0.008090417861938476, | |
0.0081108980178833, | |
0.00794721794128418 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 240.3558931151367 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1213.382656, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 266284.8512, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.48780477380752557, | |
"mean": 0.007867818932379445, | |
"stdev": 0.00032239226243164837, | |
"p50": 0.00782169771194458, | |
"p90": 0.008258802604675292, | |
"p95": 0.0082916823387146, | |
"p99": 0.008421520042419434, | |
"values": [ | |
0.007765297889709473, | |
0.007505775928497315, | |
0.007457296848297119, | |
0.007517776966094971, | |
0.007528656959533691, | |
0.007458096981048584, | |
0.007514737129211426, | |
0.007727376937866211, | |
0.007431056022644043, | |
0.0075553770065307614, | |
0.0073846569061279295, | |
0.007431696891784668, | |
0.007313136100769043, | |
0.007320335865020752, | |
0.007444336891174317, | |
0.007871057033538818, | |
0.007888017177581787, | |
0.008326418876647949, | |
0.008279217720031738, | |
0.007894258022308349, | |
0.007959057807922363, | |
0.007873457908630371, | |
0.007676177978515625, | |
0.007609776973724365, | |
0.0075712170600891115, | |
0.007737456798553467, | |
0.007691856861114502, | |
0.007838578224182128, | |
0.008173138618469238, | |
0.008179219245910644, | |
0.007804817199707032, | |
0.007859696865081787, | |
0.008163537979125977, | |
0.008239858627319336, | |
0.008204018592834473, | |
0.00835649871826172, | |
0.008223058700561524, | |
0.008232977867126465, | |
0.008165298461914062, | |
0.008266578674316407, | |
0.008292338371276856, | |
0.007701937198638916, | |
0.007737456798553467, | |
0.007765297889709473, | |
0.007909138202667237, | |
0.007656978130340576, | |
0.007674736976623535, | |
0.007388175964355469, | |
0.00852322006225586, | |
0.008142099380493165, | |
0.007777937889099121, | |
0.00820545768737793, | |
0.008246418952941894, | |
0.008210257530212402, | |
0.00819601821899414, | |
0.008187378883361816, | |
0.008260178565979003, | |
0.008194257736206054, | |
0.008235539436340332, | |
0.0077715377807617185, | |
0.007757456779479981, | |
0.007530096054077148 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 127.10002716058598 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.45575382757186894, | |
"mean": 0.007350868186643047, | |
"stdev": 0.0003233499905717863, | |
"p50": 0.007333696126937866, | |
"p90": 0.007723057985305786, | |
"p95": 0.007742280840873719, | |
"p99": 0.007907670307159425, | |
"values": [ | |
0.00715169620513916, | |
0.006911214828491211, | |
0.006934256076812744, | |
0.006927375793457031, | |
0.006919855117797851, | |
0.006879695892333984, | |
0.006915054798126221, | |
0.007225456237792968, | |
0.006905934810638428, | |
0.007073455810546875, | |
0.006937615871429444, | |
0.006963215827941895, | |
0.006840974807739258, | |
0.006862734794616699, | |
0.006958735942840576, | |
0.00738049602508545, | |
0.007412015914916992, | |
0.007702417850494385, | |
0.007694897174835205, | |
0.007366257190704346, | |
0.007420496940612793, | |
0.007361136913299561, | |
0.007232017040252685, | |
0.007153615951538086, | |
0.007133935928344727, | |
0.007270736217498779, | |
0.007238096237182618, | |
0.007394896984100342, | |
0.007683698177337646, | |
0.007681938171386718, | |
0.007325456142425537, | |
0.007341936111450196, | |
0.007679536819458008, | |
0.00774417781829834, | |
0.007705138206481933, | |
0.007845457077026368, | |
0.0077216181755065914, | |
0.007724496841430664, | |
0.007673777103424072, | |
0.007727538108825684, | |
0.007743056774139404, | |
0.007171216011047363, | |
0.007192975997924804, | |
0.007199697017669678, | |
0.007359696865081787, | |
0.007114896774291992, | |
0.007096496105194092, | |
0.006813294887542724, | |
0.00800497817993164, | |
0.007641457080841065, | |
0.007310417175292969, | |
0.007694256782531738, | |
0.0077216181755065914, | |
0.007700817108154297, | |
0.0076875371932983395, | |
0.0076859378814697265, | |
0.007723217964172364, | |
0.0076977767944335935, | |
0.007695377826690674, | |
0.007239376068115234, | |
0.0072324957847595215, | |
0.007004175186157226 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.0383528325345 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |