IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9b0b3f0 verified
raw
history blame
12.7 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",
"library": "transformers",
"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": {},
"hub_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,
"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",
"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.2.1",
"optimum_benchmark_commit": "c551ed4717b9f9db50458281347948dd265d9e3b",
"transformers_version": "4.41.0",
"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": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1047.08096,
"max_global_vram": 3306.201088,
"max_process_vram": 254832.791552,
"max_reserved": 725.614592,
"max_allocated": 512.83456
},
"latency": {
"unit": "s",
"count": 51,
"total": 0.4894055814743042,
"mean": 0.00959618787204518,
"stdev": 0.00033487642544977584,
"p50": 0.00954860782623291,
"p90": 0.010019806861877442,
"p95": 0.010183086395263673,
"p99": 0.010720444679260255,
"values": [
0.011083483695983887,
0.009537089347839355,
0.009606847763061524,
0.009353569030761719,
0.009260129928588868,
0.009279008865356445,
0.009261569023132325,
0.009353890419006347,
0.009358049392700196,
0.009293728828430176,
0.009554688453674316,
0.00962972927093506,
0.010357405662536621,
0.009364768981933594,
0.00954860782623291,
0.009444449424743652,
0.009608928680419921,
0.009767168045043946,
0.009721247673034668,
0.009710847854614258,
0.009731966972351075,
0.009637087821960448,
0.009550047874450683,
0.009591008186340332,
0.009799647331237792,
0.00967244815826416,
0.010202845573425294,
0.010163327217102051,
0.00981116771697998,
0.010019806861877442,
0.009660287857055664,
0.009736126899719238,
0.009534527778625488,
0.009514207839965821,
0.009823967933654785,
0.009541248321533203,
0.009631487846374511,
0.010054046630859376,
0.009579808235168456,
0.009382369041442871,
0.009369089126586913,
0.009304609298706055,
0.009340929031372071,
0.009459648132324219,
0.009506209373474121,
0.009280609130859376,
0.009449728965759277,
0.009309569358825683,
0.009221570014953613,
0.009227970123291015,
0.009203008651733399
]
},
"throughput": {
"unit": "tokens/s",
"value": 208.41609466882514
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1047.08096,
"max_global_vram": 3306.201088,
"max_process_vram": 266460.106752,
"max_reserved": 725.614592,
"max_allocated": 513.058304
},
"latency": {
"unit": "s",
"count": 51,
"total": 0.5112599134445189,
"mean": 0.010024704185186646,
"stdev": 0.00021667992874746723,
"p50": 0.009988286972045898,
"p90": 0.010234685897827148,
"p95": 0.010381566047668458,
"p99": 0.010749003887176513,
"values": [
0.010739004135131836,
0.00990796661376953,
0.009754688262939452,
0.009735487937927246,
0.009748607635498048,
0.009711808204650878,
0.009831328392028809,
0.009854686737060548,
0.009787327766418457,
0.009887327194213867,
0.009964768409729003,
0.009994526863098145,
0.009891806602478027,
0.009863967895507813,
0.009865568161010743,
0.009909087181091309,
0.010153245925903321,
0.010195805549621581,
0.010029887199401856,
0.010136767387390137,
0.010147646903991699,
0.009980927467346192,
0.010116127014160156,
0.010083967208862305,
0.010054686546325683,
0.010354366302490235,
0.010759003639221191,
0.010317885398864746,
0.010206846237182618,
0.010234685897827148,
0.010059327125549316,
0.010169406890869141,
0.010043167114257812,
0.009987966537475586,
0.010192766189575195,
0.01002204704284668,
0.009940128326416015,
0.01040876579284668,
0.010148125648498535,
0.009988286972045898,
0.01001612663269043,
0.009999807357788087,
0.009855648040771485,
0.010026046752929688,
0.00976220703125,
0.009903807640075684,
0.009899967193603516,
0.009933567047119141,
0.009878366470336915,
0.009925566673278808,
0.009879008293151855
]
},
"throughput": {
"unit": "tokens/s",
"value": 99.75356694092629
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 50,
"total": 0.9811537265777589,
"mean": 0.01962307453155518,
"stdev": 0.00041651524470597803,
"p50": 0.019559455871582032,
"p90": 0.020145822143554686,
"p95": 0.020309132862091066,
"p99": 0.020750757846832273,
"values": [
0.01947881507873535,
0.01937481689453125,
0.019111936569213867,
0.019030176162719726,
0.019069696426391603,
0.019015615463256835,
0.019299615859985353,
0.019173696517944337,
0.019268096923828124,
0.019545536041259765,
0.019648096084594727,
0.020288091659545898,
0.019219776153564454,
0.019555776596069337,
0.019362655639648438,
0.019871936798095704,
0.019996572494506835,
0.01979961585998535,
0.019897693634033202,
0.01988137626647949,
0.019599136352539064,
0.019867454528808594,
0.01967081642150879,
0.019908895492553712,
0.02007497215270996,
0.020998971939086914,
0.02049241256713867,
0.020130014419555663,
0.020295932769775392,
0.019741853713989257,
0.01991497611999512,
0.019636255264282226,
0.019563135147094728,
0.019986173629760743,
0.019705055236816406,
0.01972601509094238,
0.02031993293762207,
0.019834653854370117,
0.019393535614013673,
0.01940425682067871,
0.019337696075439455,
0.019329376220703125,
0.019550655364990236,
0.019312896728515626,
0.019227296829223632,
0.01950809669494629,
0.019261375427246093,
0.01912057685852051,
0.019176416397094727,
0.019175296783447267
]
},
"throughput": {
"unit": "tokens/s",
"value": 50.960413893956066
},
"energy": null,
"efficiency": null
}
}
}