IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ed7f409
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": 1082014.482432, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-122-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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.1", | |
"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.13.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1106.550784, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 4640.19456, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.08488976287841797 | |
], | |
"count": 1, | |
"total": 0.08488976287841797, | |
"mean": 0.08488976287841797, | |
"p50": 0.08488976287841797, | |
"p90": 0.08488976287841797, | |
"p95": 0.08488976287841797, | |
"p99": 0.08488976287841797, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1272.868864, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 289960.062976, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.235456 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.008218894958496094, | |
0.008459376335144044, | |
0.008380656242370605, | |
0.008457136154174805, | |
0.008693776130676269, | |
0.008967217445373534, | |
0.008409774780273438, | |
0.009128336906433105, | |
0.008639856338500977, | |
0.00901777744293213, | |
0.008856817245483399, | |
0.0087203369140625, | |
0.008397295951843261, | |
0.008394415855407716, | |
0.008213135719299316, | |
0.008283535003662109, | |
0.00849953556060791, | |
0.008248655319213868, | |
0.00834881591796875, | |
0.00836673641204834, | |
0.0083864164352417, | |
0.008851376533508301, | |
0.008671055793762207, | |
0.009016496658325195, | |
0.009019697189331054, | |
0.009014416694641113, | |
0.009059857368469239, | |
0.009296498298645019, | |
0.0090128173828125, | |
0.009071857452392577, | |
0.00903249740600586, | |
0.008923856735229493, | |
0.008746256828308105, | |
0.008388655662536621, | |
0.008711695671081543, | |
0.008418416023254395, | |
0.008557616233825683, | |
0.008418416023254395, | |
0.008436816215515137, | |
0.008265616416931153, | |
0.007880815029144287, | |
0.007845133781433105, | |
0.008394255638122558, | |
0.008447216033935548, | |
0.00822481632232666, | |
0.008052334785461426, | |
0.00787137508392334, | |
0.007876655101776124, | |
0.007906254768371581, | |
0.007891534805297851, | |
0.007862575054168701, | |
0.007866895198822022, | |
0.00785137414932251, | |
0.007837775230407715, | |
0.008056015014648437, | |
0.007862575054168701, | |
0.007859855175018311, | |
0.007848334789276124, | |
0.007858094215393066, | |
0.007873294830322265, | |
0.007868175029754638, | |
0.007859694957733154 | |
], | |
"count": 62, | |
"total": 0.5208974657058715, | |
"mean": 0.008401572027514058, | |
"p50": 0.008394335746765137, | |
"p90": 0.009017649364471437, | |
"p95": 0.00905848937034607, | |
"p99": 0.009193919849395752, | |
"stdev": 0.00042808115153554347, | |
"stdev_": 5.0952506284970625 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 238.05068782964182 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1272.868864, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 306721.882112, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.257984 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007754574775695801, | |
0.007416813850402832, | |
0.007275534152984619, | |
0.00745073413848877, | |
0.008106255531311035, | |
0.007949775218963622, | |
0.008294575691223145, | |
0.008022095680236816, | |
0.008005294799804687, | |
0.007860334873199462, | |
0.007694893836975097, | |
0.0077761740684509275, | |
0.007361134052276611, | |
0.007499214172363281, | |
0.007781134128570556, | |
0.007366734027862549, | |
0.007586894035339356, | |
0.0074041738510131835, | |
0.007481133937835694, | |
0.007595213890075683, | |
0.0073894538879394536, | |
0.007981295108795167, | |
0.008118415832519531, | |
0.008097615242004395, | |
0.008191534996032715, | |
0.008206094741821289, | |
0.021189960479736328, | |
0.00814433479309082, | |
0.008112336158752441, | |
0.008261614799499512, | |
0.008136655807495117, | |
0.00811249542236328, | |
0.007482893943786621, | |
0.008096975326538086, | |
0.007571215152740478, | |
0.0077352142333984375, | |
0.0075684947967529295, | |
0.007467373847961426, | |
0.00756097412109375, | |
0.007197772979736328, | |
0.007096013069152832, | |
0.007101774215698242, | |
0.007550734043121338, | |
0.007481614112854004, | |
0.007085933208465576, | |
0.007215693950653076, | |
0.007056013107299804, | |
0.007123212814331054, | |
0.0070624141693115235, | |
0.0071164932250976564, | |
0.007064493179321289, | |
0.00709761381149292, | |
0.007062094211578369, | |
0.007097612857818603, | |
0.007051693916320801, | |
0.007203533172607422, | |
0.00707105302810669, | |
0.007090253829956055, | |
0.007054574012756347, | |
0.007091372966766357, | |
0.007099213123321534, | |
0.007090892791748047 | |
], | |
"count": 62, | |
"total": 0.48126970720291146, | |
"mean": 0.007762414632305021, | |
"p50": 0.007482254028320312, | |
"p90": 0.008134831809997559, | |
"p95": 0.008205366754531861, | |
"p99": 0.013323775758743293, | |
"stdev": 0.0017657512124800712, | |
"stdev_": 22.74744774817237 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 128.82589340670836 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.00730337381362915, | |
0.007034732818603516, | |
0.006864973068237305, | |
0.007054253101348877, | |
0.007686574935913086, | |
0.007529294013977051, | |
0.007858574867248535, | |
0.007537294864654541, | |
0.007575853824615479, | |
0.007445613861083985, | |
0.007276173114776611, | |
0.007410573959350586, | |
0.006995052814483643, | |
0.007108812808990479, | |
0.007388974189758301, | |
0.007017612934112549, | |
0.007221293926239014, | |
0.007038413047790527, | |
0.007063852787017822, | |
0.0072240128517150875, | |
0.006952332973480225, | |
0.007555213928222657, | |
0.007689935207366943, | |
0.007656653881072998, | |
0.007752494812011719, | |
0.007779054164886475, | |
0.020653160095214843, | |
0.007691534042358399, | |
0.007681934833526611, | |
0.007834894180297852, | |
0.007712494850158691, | |
0.007674893856048584, | |
0.007098412990570068, | |
0.007672493934631348, | |
0.007182094097137451, | |
0.007308332920074463, | |
0.007149774074554444, | |
0.007073613166809082, | |
0.0071737728118896485, | |
0.006828172206878662, | |
0.0067273731231689456, | |
0.0067256131172180175, | |
0.007168492794036865, | |
0.0070740928649902345, | |
0.0067140917778015135, | |
0.006836493015289307, | |
0.006687692165374756, | |
0.006736173152923584, | |
0.006693293094635009, | |
0.006745451927185058, | |
0.006683372974395752, | |
0.006718573093414307, | |
0.006690412998199463, | |
0.006723371982574463, | |
0.006676652908325195, | |
0.006823051929473877, | |
0.006701132774353027, | |
0.006712653160095215, | |
0.006685933113098144, | |
0.0067208118438720705, | |
0.006725772857666016, | |
0.006707372188568116 | |
], | |
"count": 62, | |
"total": 0.4564344534873961, | |
"mean": 0.007361846023990261, | |
"p50": 0.007086252927780151, | |
"p90": 0.007691374158859253, | |
"p95": 0.0077777261972427365, | |
"p99": 0.012848463106155401, | |
"stdev": 0.0017437122254228572, | |
"stdev_": 23.685801356624026 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 135.83549516537985 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |