IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6489a28
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+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": "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": 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": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "593b48b93d71bee250bc8db76a7279c4b590c2bb", | |
"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": 901.77536, | |
"max_global_vram": 1844.998144, | |
"max_process_vram": 45735.723008, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.37287744140625, | |
"mean": 7.37287744140625, | |
"stdev": 0.0, | |
"p50": 7.37287744140625, | |
"p90": 7.37287744140625, | |
"p95": 7.37287744140625, | |
"p99": 7.37287744140625, | |
"values": [ | |
7.37287744140625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.100352, | |
"max_global_vram": 1939.386368, | |
"max_process_vram": 280974.168064, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5081945972442624, | |
"mean": 0.008761975814556252, | |
"stdev": 0.00051374082626822, | |
"p50": 0.008794099807739257, | |
"p90": 0.009380117893218996, | |
"p95": 0.009653333616256714, | |
"p99": 0.00987766399383545, | |
"values": [ | |
0.009234901428222655, | |
0.008848979949951171, | |
0.008343379020690917, | |
0.008226259231567383, | |
0.008509458541870117, | |
0.008356658935546876, | |
0.008334579467773438, | |
0.008860179901123047, | |
0.009056981086730958, | |
0.009093140602111817, | |
0.009208661079406738, | |
0.009064499855041503, | |
0.00915026092529297, | |
0.009652181625366211, | |
0.009727541923522948, | |
0.00965986156463623, | |
0.00955442237854004, | |
0.009322901725769044, | |
0.009274101257324219, | |
0.009257620811462402, | |
0.009098581314086914, | |
0.00912898063659668, | |
0.009082901000976562, | |
0.00906290054321289, | |
0.009262261390686035, | |
0.009513622283935546, | |
0.009237300872802735, | |
0.01007666301727295, | |
0.008690579414367676, | |
0.008888339996337891, | |
0.008884659767150879, | |
0.008896981239318848, | |
0.008703860282897949, | |
0.00862738037109375, | |
0.008556979179382324, | |
0.008231538772583008, | |
0.00892609977722168, | |
0.008695219993591309, | |
0.00839185905456543, | |
0.008392019271850586, | |
0.008954100608825684, | |
0.008357619285583496, | |
0.008058097839355469, | |
0.007912497997283935, | |
0.008052658081054688, | |
0.008226099014282227, | |
0.008091217994689941, | |
0.008262899398803711, | |
0.00810801887512207, | |
0.007871857166290283, | |
0.008081458091735839, | |
0.008299859046936035, | |
0.008739219665527344, | |
0.008306578636169433, | |
0.008284337997436523, | |
0.008330259323120117, | |
0.008878580093383789, | |
0.008293938636779786 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 228.2590185512044 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.100352, | |
"max_global_vram": 1940.76672, | |
"max_process_vram": 281076.256768, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.49852577686309824, | |
"mean": 0.008595272014881004, | |
"stdev": 0.0003836229626648565, | |
"p50": 0.008614339351654052, | |
"p90": 0.009103028202056884, | |
"p95": 0.0092215811252594, | |
"p99": 0.00932893988609314, | |
"values": [ | |
0.008788819313049317, | |
0.008328019142150879, | |
0.008202737808227539, | |
0.008212979316711427, | |
0.00814241886138916, | |
0.008231378555297852, | |
0.008253938674926757, | |
0.008798419952392578, | |
0.00885665988922119, | |
0.00913953971862793, | |
0.00885890007019043, | |
0.008785619735717773, | |
0.008889780044555665, | |
0.009367061614990234, | |
0.00930018138885498, | |
0.009196181297302247, | |
0.009022419929504394, | |
0.008890259742736816, | |
0.008844820022583008, | |
0.008816980361938476, | |
0.008793140411376953, | |
0.008780500411987305, | |
0.008925620079040528, | |
0.008794580459594727, | |
0.009238580703735351, | |
0.009087380409240722, | |
0.008902100563049317, | |
0.009218581199645996, | |
0.008188658714294434, | |
0.008917941093444823, | |
0.008892820358276368, | |
0.00893906021118164, | |
0.008473938941955566, | |
0.008478578567504882, | |
0.008601940155029297, | |
0.008528658866882324, | |
0.00901634120941162, | |
0.008621459007263183, | |
0.008607219696044922, | |
0.008430579185485839, | |
0.008720499992370605, | |
0.008013618469238282, | |
0.008082098960876465, | |
0.008229939460754395, | |
0.008138578414916992, | |
0.008160179138183593, | |
0.008259379386901855, | |
0.008088177680969238, | |
0.008155858039855957, | |
0.008064019203186034, | |
0.008122259140014649, | |
0.007885618209838867, | |
0.00838417911529541, | |
0.008349139213562012, | |
0.008323219299316406, | |
0.008223058700561524, | |
0.00870322036743164, | |
0.008257938385009765 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 116.34303117675611 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.4541479105949401, | |
"mean": 0.007830136389567933, | |
"stdev": 0.0004054517861707945, | |
"p50": 0.0077977776527404785, | |
"p90": 0.008327954483032227, | |
"p95": 0.008476386976242065, | |
"p99": 0.008576438484191894, | |
"values": [ | |
0.008107057571411133, | |
0.0076569771766662595, | |
0.007428337097167969, | |
0.007404016971588135, | |
0.007525776863098145, | |
0.007534097194671631, | |
0.007509137153625488, | |
0.008076018333435058, | |
0.008128658294677734, | |
0.008425938606262206, | |
0.008118099212646484, | |
0.008116338729858398, | |
0.00819649887084961, | |
0.008625140190124512, | |
0.008539698600769042, | |
0.00846769905090332, | |
0.008364019393920898, | |
0.008208818435668945, | |
0.00821057891845703, | |
0.008148818969726563, | |
0.008082578659057617, | |
0.008101138114929199, | |
0.008245298385620117, | |
0.008099377632141113, | |
0.008525618553161621, | |
0.008312498092651367, | |
0.008202259063720702, | |
0.00828385829925537, | |
0.0075433778762817386, | |
0.008087059020996094, | |
0.008095058441162109, | |
0.008080178260803223, | |
0.007663696765899658, | |
0.007646417140960694, | |
0.00784945821762085, | |
0.007718417167663574, | |
0.008113458633422851, | |
0.007746097087860108, | |
0.007669777870178223, | |
0.007628817081451416, | |
0.007882098197937011, | |
0.0072252960205078124, | |
0.007201616764068604, | |
0.007349777221679688, | |
0.007340977191925049, | |
0.007295697212219238, | |
0.00748673677444458, | |
0.00725489616394043, | |
0.007307217121124267, | |
0.007174736976623535, | |
0.00743537712097168, | |
0.00711249589920044, | |
0.007596177101135254, | |
0.007564657211303711, | |
0.0074793767929077146, | |
0.007439376831054688, | |
0.00795313787460327, | |
0.007562096118927002 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 127.7116962269389 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |