IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
aaf1af4 verified
raw
history blame
13.9 kB
{
"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",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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,
"latency": true,
"memory": 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",
"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.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1052.778496,
"max_global_vram": 1118.404608,
"max_process_vram": 293054.574592,
"max_reserved": 725.614592,
"max_allocated": 512.832512
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5021723852157592,
"mean": 0.008232334183864905,
"stdev": 0.0005346202064585218,
"p50": 0.008077877998352051,
"p90": 0.008484915733337402,
"p95": 0.008586833953857422,
"p99": 0.010325065422058102,
"values": [
0.01202569580078125,
0.008134357452392578,
0.008083956718444824,
0.008094197273254394,
0.00806939697265625,
0.008062197685241699,
0.008082677841186523,
0.008074197769165039,
0.008093877792358399,
0.008096597671508788,
0.008098997116088868,
0.00811147689819336,
0.008107156753540038,
0.008217876434326171,
0.008059797286987304,
0.008046036720275878,
0.008058358192443847,
0.008040597915649414,
0.008058197021484375,
0.008036437034606934,
0.008029397964477538,
0.00805627727508545,
0.0080503568649292,
0.008060916900634766,
0.008062357902526856,
0.0082545166015625,
0.008324915885925294,
0.00837147617340088,
0.008293875694274902,
0.008099957466125489,
0.008077877998352051,
0.008073718070983886,
0.008057876586914063,
0.008057876586914063,
0.00805179786682129,
0.008062197685241699,
0.008068277359008788,
0.008114517211914063,
0.008092276573181153,
0.008052597045898438,
0.008061077117919922,
0.008085877418518066,
0.008055477142333985,
0.008071637153625489,
0.008046036720275878,
0.008117076873779296,
0.008044757843017579,
0.008863153457641602,
0.008484915733337402,
0.008506514549255372,
0.008215956687927246,
0.009191311836242676,
0.008478195190429687,
0.008478835105895996,
0.008068758010864258,
0.008062996864318848,
0.008053558349609375,
0.00810539722442627,
0.008073078155517579,
0.008586833953857422,
0.008555793762207031
]
},
"throughput": {
"unit": "tokens/s",
"value": 242.94446208463353
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1052.778496,
"max_global_vram": 1118.408704,
"max_process_vram": 298935.271424,
"max_reserved": 725.614592,
"max_allocated": 513.056256
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5061653232574462,
"mean": 0.0082977921845483,
"stdev": 0.00026640755868805613,
"p50": 0.008166996955871583,
"p90": 0.008602354049682617,
"p95": 0.008709394454956054,
"p99": 0.00930974292755127,
"values": [
0.008709394454956054,
0.008124917030334473,
0.00817259693145752,
0.008158516883850098,
0.008166996955871583,
0.008166356086730957,
0.008158037185668945,
0.008192915916442872,
0.008137877464294434,
0.00817003631591797,
0.0082194766998291,
0.00816651725769043,
0.008332595825195313,
0.008192597389221191,
0.008187156677246094,
0.00817531681060791,
0.008151796340942383,
0.008148117065429688,
0.008136116981506347,
0.008141237258911133,
0.00817083740234375,
0.008394355773925782,
0.008118837356567384,
0.008151956558227539,
0.00857115364074707,
0.008371315002441405,
0.009506349563598632,
0.008376275062561035,
0.008134837150573731,
0.008123637199401856,
0.008134037017822266,
0.00815131664276123,
0.008149396896362305,
0.008127636909484863,
0.008160757064819337,
0.008144597053527831,
0.008176116943359376,
0.008158197402954101,
0.0081332368850708,
0.008140276908874512,
0.008242197036743164,
0.008148756980895996,
0.008129397392272949,
0.008420915603637695,
0.008448275566101074,
0.008143157005310058,
0.008118037223815919,
0.009178671836853027,
0.00857163429260254,
0.008537714958190917,
0.008551633834838868,
0.008616594314575196,
0.008508114814758301,
0.008326835632324218,
0.008239476203918458,
0.00813115692138672,
0.008158995628356933,
0.008134838104248046,
0.008889232635498047,
0.008602354049682617,
0.00866363525390625
]
},
"throughput": {
"unit": "tokens/s",
"value": 120.51398465511656
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.989397336959839,
"mean": 0.016489955615997316,
"stdev": 0.0004276576323493627,
"p50": 0.016286714553833008,
"p90": 0.017090789222717284,
"p95": 0.0172965160369873,
"p99": 0.017932871894836427,
"values": [
0.016311433792114256,
0.01628903388977051,
0.016283273696899414,
0.016258634567260743,
0.016254634857177735,
0.016290634155273438,
0.01629159355163574,
0.01626151466369629,
0.016294313430786134,
0.016336393356323243,
0.016324073791503906,
0.016471113204956055,
0.01643639373779297,
0.016267114639282227,
0.0162634334564209,
0.016235754013061522,
0.016221355438232422,
0.016209354400634767,
0.016214153289794923,
0.016221994400024413,
0.016490793228149413,
0.01619623374938965,
0.016243114471435546,
0.01661591339111328,
0.01670311164855957,
0.017812705993652343,
0.016786792755126952,
0.016503433227539062,
0.016257194519042967,
0.016239274978637697,
0.016240713119506835,
0.016251434326171876,
0.016215114593505858,
0.016242315292358398,
0.016236873626708986,
0.016274314880371094,
0.0162850341796875,
0.01626263427734375,
0.016229673385620116,
0.01634279441833496,
0.01624839401245117,
0.01622407341003418,
0.016517513275146483,
0.016522792816162108,
0.016288394927978515,
0.01618551445007324,
0.01803718376159668,
0.01711958885192871,
0.017087589263916014,
0.016732391357421876,
0.01786038398742676,
0.017060869216918944,
0.016831432342529297,
0.01633031463623047,
0.016217674255371094,
0.016259593963623045,
0.016268075942993163,
0.016945350646972657,
0.01726934814453125,
0.017225187301635744
]
},
"throughput": {
"unit": "tokens/s",
"value": 60.64297705142852
},
"energy": null,
"efficiency": null
}
}
}