IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fa938ae
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": "5", | |
"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": 2, | |
"sequence_length": 16, | |
"num_choices": 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.490624, | |
"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.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.11", | |
"timm_commit": null, | |
"peft_version": "0.13.2", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1111.277568, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 4870.5536, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.10175957489013672 | |
], | |
"count": 1, | |
"total": 0.10175957489013672, | |
"mean": 0.10175957489013672, | |
"p50": 0.10175957489013672, | |
"p90": 0.10175957489013672, | |
"p95": 0.10175957489013672, | |
"p99": 0.10175957489013672, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1287.634944, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 288668.012544, | |
"max_reserved": 731.906048, | |
"max_allocated": 529.219072 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.008664951324462891, | |
0.008822710037231445, | |
0.008859991073608398, | |
0.008824790954589844, | |
0.008853111267089844, | |
0.008865429878234863, | |
0.00883359146118164, | |
0.008847190856933593, | |
0.00881135082244873, | |
0.00886238956451416, | |
0.008849591255187987, | |
0.008832950592041016, | |
0.008897910118103028, | |
0.009000470161437988, | |
0.008868310928344727, | |
0.008851990699768067, | |
0.008852311134338379, | |
0.008850391387939454, | |
0.010069910049438477, | |
0.009812629699707032, | |
0.009966230392456055, | |
0.00934766960144043, | |
0.009203029632568359, | |
0.009213910102844239, | |
0.00936991024017334, | |
0.009181909561157227, | |
0.009334389686584472, | |
0.008816149711608887, | |
0.008811190605163574, | |
0.00887839126586914, | |
0.0088663911819458, | |
0.00883390998840332, | |
0.008851030349731445, | |
0.00881455135345459, | |
0.008835190773010254, | |
0.008854870796203613, | |
0.008797109603881836, | |
0.008875031471252442, | |
0.008819670677185058, | |
0.00880703067779541, | |
0.008785590171813965, | |
0.008830071449279785, | |
0.008819351196289063, | |
0.00877535057067871, | |
0.008844149589538575, | |
0.00895327091217041, | |
0.008874071121215821, | |
0.008796630859375, | |
0.00886223030090332, | |
0.008823830604553223, | |
0.00882335090637207, | |
0.008789751052856445, | |
0.008816950798034668, | |
0.008834550857543946, | |
0.00881631088256836, | |
0.008813111305236817, | |
0.008876629829406738, | |
0.008813911437988282, | |
0.008799350738525391 | |
], | |
"count": 59, | |
"total": 0.5273580055236815, | |
"mean": 0.008938271280062401, | |
"p50": 0.008847190856933593, | |
"p90": 0.009238006019592286, | |
"p95": 0.009414182186126706, | |
"p99": 0.010009775848388672, | |
"stdev": 0.0002741654662338081, | |
"stdev_": 3.0673209353732442 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 223.75691421015333 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1287.634944, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 290662.887424, | |
"max_reserved": 731.906048, | |
"max_allocated": 529.219584 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007864952087402344, | |
0.007965591907501221, | |
0.007992950916290284, | |
0.008289590835571289, | |
0.008021271705627442, | |
0.008043671607971191, | |
0.008045110702514648, | |
0.008041431427001953, | |
0.008019991874694824, | |
0.00802415180206299, | |
0.007994871139526367, | |
0.007982391834259034, | |
0.008049431800842286, | |
0.008035351753234863, | |
0.008027670860290527, | |
0.008147510528564453, | |
0.008088472366333008, | |
0.008592310905456544, | |
0.009084150314331055, | |
0.008877909660339356, | |
0.008832310676574707, | |
0.00825455093383789, | |
0.008308631896972656, | |
0.008335671424865722, | |
0.008306072235107423, | |
0.008532151222229004, | |
0.008324472427368165, | |
0.008069592475891113, | |
0.008135190963745117, | |
0.008025430679321289, | |
0.008023192405700683, | |
0.008102231979370118, | |
0.008065112113952637, | |
0.008118230819702149, | |
0.00803775119781494, | |
0.008028311729431152, | |
0.008062871932983398, | |
0.008071830749511719, | |
0.00804991054534912, | |
0.008055352210998535, | |
0.008011192321777343, | |
0.008175511360168457, | |
0.008075350761413575, | |
0.008029432296752929, | |
0.008043671607971191, | |
0.008031830787658692, | |
0.008102231025695801, | |
0.008058712005615235, | |
0.008006391525268554, | |
0.008032470703125, | |
0.00805647087097168, | |
0.007996471881866455, | |
0.008082071304321288, | |
0.008061430931091308, | |
0.008191511154174805, | |
0.008013431549072265, | |
0.008086711883544921, | |
0.008095511436462402, | |
0.008030550003051758 | |
], | |
"count": 59, | |
"total": 0.4801086120605467, | |
"mean": 0.008137434102721133, | |
"p50": 0.00805647087097168, | |
"p90": 0.008326712226867676, | |
"p95": 0.008616310882568359, | |
"p99": 0.00896453073501587, | |
"stdev": 0.00022430162093936955, | |
"stdev_": 2.7564170487643493 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 245.77771994874973 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007375351905822754, | |
0.007409913063049316, | |
0.007393911838531494, | |
0.0076980719566345215, | |
0.00745247220993042, | |
0.007409913063049316, | |
0.007417431831359863, | |
0.007392632007598877, | |
0.007410391807556153, | |
0.007403673171997071, | |
0.007429912090301514, | |
0.007390071868896484, | |
0.007450391769409179, | |
0.007419672966003418, | |
0.007424952030181885, | |
0.007509751796722412, | |
0.007483672142028808, | |
0.007992631912231445, | |
0.008443190574645995, | |
0.00836703109741211, | |
0.008333431243896485, | |
0.007746871948242188, | |
0.007819511890411378, | |
0.007782392024993897, | |
0.007796951770782471, | |
0.007869751930236816, | |
0.007820151805877685, | |
0.007434873104095459, | |
0.007529911994934082, | |
0.007411511898040771, | |
0.007429431915283203, | |
0.007480472087860107, | |
0.007433913230895996, | |
0.00746719217300415, | |
0.007469272136688233, | |
0.007442552089691162, | |
0.007440793037414551, | |
0.007422071933746338, | |
0.007419191837310791, | |
0.007409912109375, | |
0.0074217529296875, | |
0.007515511989593506, | |
0.007424632072448731, | |
0.007423192024230957, | |
0.007424633026123047, | |
0.007422552108764648, | |
0.007444952011108398, | |
0.007426871776580811, | |
0.0074097528457641604, | |
0.007420792102813721, | |
0.007409111976623535, | |
0.007381752014160157, | |
0.00746287202835083, | |
0.007406712055206299, | |
0.0075244722366333006, | |
0.007403992176055908, | |
0.0074641528129577635, | |
0.007442071914672852, | |
0.007428791999816895 | |
], | |
"count": 59, | |
"total": 0.44449377536773677, | |
"mean": 0.007533792802842996, | |
"p50": 0.007429912090301514, | |
"p90": 0.00781963987350464, | |
"p95": 0.008026711845397947, | |
"p99": 0.008399018077850342, | |
"stdev": 0.00023970408344508326, | |
"stdev_": 3.1817185542271234 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |