IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1d192d3 verified
raw
history blame
13.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_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": {},
"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.3.1",
"optimum_benchmark_commit": "bc46022225a5818a4648ee2abeffdd38c4a9b291",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1053.417472,
"max_global_vram": 1107.501056,
"max_process_vram": 281071.538176,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.503824429512024,
"mean": 0.008686628095034895,
"stdev": 0.0005814900224220666,
"p50": 0.008809139251708984,
"p90": 0.009271010875701905,
"p95": 0.009389083671569824,
"p99": 0.010349842901229858,
"values": [
0.010702423095703125,
0.008741618156433106,
0.009180659294128419,
0.009038100242614746,
0.00864417839050293,
0.00847217845916748,
0.008471537590026855,
0.008895058631896973,
0.008913139343261718,
0.008531377792358399,
0.008225776672363282,
0.008151218414306641,
0.00856049919128418,
0.0093987398147583,
0.010083861351013183,
0.008652978897094727,
0.008637778282165528,
0.0088006591796875,
0.008870578765869141,
0.008881778717041015,
0.008833298683166504,
0.008817619323730468,
0.008800018310546874,
0.008849939346313477,
0.008607857704162598,
0.008044816970825196,
0.008220816612243652,
0.00783953619003296,
0.007839856147766113,
0.007861456871032714,
0.008026737213134766,
0.008003697395324708,
0.007780496120452881,
0.008248658180236816,
0.009387379646301269,
0.009304340362548829,
0.009298898696899415,
0.009101618766784668,
0.009044499397277831,
0.009051539421081544,
0.00896273899078369,
0.008975539207458496,
0.008951699256896973,
0.008937938690185547,
0.008962418556213379,
0.009077618598937989,
0.0091083402633667,
0.009022259712219238,
0.008943219184875489,
0.009130258560180664,
0.009259058952331542,
0.00843185806274414,
0.007796175956726074,
0.007962737083435058,
0.008023696899414063,
0.007818416118621826,
0.007783536911010742,
0.007859696865081787
]
},
"throughput": {
"unit": "tokens/s",
"value": 230.23893484551968
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1053.417472,
"max_global_vram": 1107.505152,
"max_process_vram": 258779.631616,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.5039282732009887,
"mean": 0.008688418503465323,
"stdev": 0.0006131414964979407,
"p50": 0.008703058719635011,
"p90": 0.00913730001449585,
"p95": 0.009943709325790405,
"p99": 0.010704713935852051,
"values": [
0.009623539924621583,
0.008821779251098633,
0.00884657859802246,
0.008906099319458008,
0.00870193862915039,
0.008498098373413086,
0.008151376724243164,
0.008790899276733398,
0.008843539237976074,
0.008315378189086915,
0.008314897537231445,
0.00839329719543457,
0.008903698921203613,
0.009928661346435547,
0.008955859184265136,
0.008855698585510254,
0.00843345832824707,
0.008894739151000976,
0.008943058967590333,
0.008919858932495117,
0.00899665927886963,
0.008399697303771972,
0.008880819320678711,
0.008879538536071777,
0.00820817756652832,
0.00868881893157959,
0.008313298225402832,
0.008081137657165527,
0.00799873685836792,
0.008569618225097657,
0.008310417175292968,
0.008208498001098633,
0.007936656951904297,
0.011044342994689942,
0.008879698753356934,
0.00912578010559082,
0.009164179801940918,
0.008940818786621094,
0.010028981208801269,
0.008775379180908203,
0.00870417881011963,
0.008629137992858887,
0.008689779281616211,
0.008735218048095704,
0.008684977531433106,
0.008755059242248535,
0.008783537864685059,
0.008655057907104493,
0.008828498840332032,
0.01044850254058838,
0.008365777969360352,
0.008184977531433105,
0.00789713716506958,
0.007772817134857178,
0.007856815814971925,
0.007803377151489258,
0.0077947359085083,
0.007864975929260254
]
},
"throughput": {
"unit": "tokens/s",
"value": 115.0957449392149
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 58,
"total": 0.45572545242309576,
"mean": 0.007857335386605097,
"stdev": 0.0006037762399881053,
"p50": 0.00797737693786621,
"p90": 0.008274049282073974,
"p95": 0.008823554944992065,
"p99": 0.009943627672195435,
"values": [
0.00873297882080078,
0.008055377006530761,
0.008038738250732421,
0.008033296585083009,
0.007808016777038574,
0.0075353760719299315,
0.007372974872589111,
0.007874897003173828,
0.00782241678237915,
0.007571216106414795,
0.007388336181640625,
0.0075091361999511715,
0.00798401689529419,
0.008255376815795898,
0.008063377380371094,
0.007978897094726562,
0.007590896129608155,
0.007997137069702148,
0.008010256767272949,
0.008021456718444824,
0.008066737174987793,
0.007537456035614014,
0.008016337394714355,
0.00800081729888916,
0.007281295776367188,
0.007830097198486327,
0.007403696060180664,
0.00718065595626831,
0.007186575889587403,
0.0076612958908081055,
0.007460014820098877,
0.007331376075744629,
0.007167856216430664,
0.010333782196044921,
0.008165778160095215,
0.008381937980651856,
0.008317618370056153,
0.008095538139343262,
0.009336819648742676,
0.008092018127441406,
0.008042097091674805,
0.007975856781005859,
0.007993776798248291,
0.008051536560058593,
0.007989137172698975,
0.008074097633361817,
0.00806977653503418,
0.007956175804138184,
0.008061777114868164,
0.009649300575256347,
0.00753601598739624,
0.007457776069641113,
0.007041454792022705,
0.007044654846191406,
0.0070920147895812986,
0.007048494815826416,
0.007033453941345215,
0.007116175174713134
]
},
"throughput": {
"unit": "tokens/s",
"value": 127.26960869008647
},
"energy": null,
"efficiency": null
}
}
}