IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4d2a24f 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",
"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": "674d8c572ada4aac26b730928ac88a3effc914de",
"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.446144,
"max_global_vram": 1107.533824,
"max_process_vram": 285924.84352,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.5158319792747498,
"mean": 0.008597199654579165,
"stdev": 0.0008288619372979363,
"p50": 0.008294937133789062,
"p90": 0.009462550354003906,
"p95": 0.009801724338531494,
"p99": 0.0114282241153717,
"values": [
0.011070049285888672,
0.008864774703979492,
0.009354052543640136,
0.009801252365112305,
0.008977574348449707,
0.00929533290863037,
0.009129894256591798,
0.00899117374420166,
0.009012293815612794,
0.00903597354888916,
0.009092293739318847,
0.00925101375579834,
0.009528933525085449,
0.009659333229064941,
0.009455174446105956,
0.009123814582824708,
0.00919485378265381,
0.0090729341506958,
0.008992294311523437,
0.009810691833496093,
0.009233094215393067,
0.009220293998718262,
0.008607495307922363,
0.008106857299804688,
0.0079892578125,
0.011943646430969238,
0.008158217430114746,
0.007804616928100586,
0.007920938014984131,
0.007935338020324707,
0.007908297061920167,
0.008047178268432617,
0.007826537132263183,
0.007836297988891601,
0.00783869695663452,
0.007831657886505127,
0.00782109785079956,
0.007857896804809571,
0.008209896087646485,
0.007839017868041993,
0.007841417789459229,
0.007839178085327149,
0.007830698013305664,
0.007890058040618897,
0.007824458122253419,
0.007931656837463379,
0.00783933687210083,
0.008859655380249024,
0.008245416641235351,
0.00887197494506836,
0.008857894897460937,
0.008285576820373536,
0.008290857315063476,
0.008262696266174317,
0.008328617095947266,
0.008318696975708008,
0.008299016952514648,
0.007857738018035888,
0.007851178169250489,
0.007855817794799805
]
},
"throughput": {
"unit": "tokens/s",
"value": 232.63389014523247
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1053.446144,
"max_global_vram": 1107.53792,
"max_process_vram": 283017.142272,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.4872499833106994,
"mean": 0.008120833055178325,
"stdev": 0.00040757964200754634,
"p50": 0.00815813684463501,
"p90": 0.008655783081054687,
"p95": 0.008704032039642333,
"p99": 0.008968768129348752,
"values": [
0.008699654579162597,
0.009153413772583007,
0.00866269588470459,
0.008840455055236816,
0.007950377941131593,
0.008449416160583496,
0.0082698974609375,
0.008277417182922363,
0.008272457122802734,
0.008373577117919922,
0.008383336067199708,
0.008547816276550293,
0.008529254913330078,
0.008655014991760255,
0.008492775917053223,
0.00842141628265381,
0.008408935546875,
0.008251176834106446,
0.008765894889831543,
0.00870077610015869,
0.008456616401672364,
0.008381417274475098,
0.007375819206237793,
0.007343500137329101,
0.007468139171600342,
0.008210376739501953,
0.008057098388671875,
0.007718379020690918,
0.00804445743560791,
0.007756298065185547,
0.007786057949066162,
0.007722218036651612,
0.007781417846679688,
0.00758237886428833,
0.007677099227905273,
0.007682057857513427,
0.00771245813369751,
0.007659018993377686,
0.007896297931671143,
0.007654377937316895,
0.007713418006896972,
0.007695337772369385,
0.007709417819976807,
0.007707337856292725,
0.007650698184967041,
0.007688778877258301,
0.008016457557678222,
0.008601255416870117,
0.008306856155395509,
0.008610695838928222,
0.008272775650024414,
0.00820893669128418,
0.00810733699798584,
0.008461735725402831,
0.008294856071472168,
0.008226856231689453,
0.008043336868286132,
0.007942536830902099,
0.007866218090057372,
0.008053895950317382
]
},
"throughput": {
"unit": "tokens/s",
"value": 123.14007604950586
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.4514966387748718,
"mean": 0.007524943979581198,
"stdev": 0.00041316491030075116,
"p50": 0.007473658800125122,
"p90": 0.008039544773101806,
"p95": 0.008161952590942384,
"p99": 0.008281651315689087,
"values": [
0.007949097156524658,
0.008287976264953614,
0.008075977325439453,
0.008277256011962891,
0.007419019222259521,
0.00796461820602417,
0.007797897815704346,
0.007806218147277832,
0.007811337947845459,
0.007902857780456542,
0.007915657043457031,
0.008035496711730957,
0.008030377388000488,
0.008131816864013671,
0.007999977111816407,
0.007948777198791505,
0.00793757677078247,
0.007807338237762451,
0.008161096572875977,
0.008178216934204102,
0.00794685697555542,
0.007899978160858155,
0.0069718208312988285,
0.00693294095993042,
0.007076300144195556,
0.007583498001098633,
0.00746013879776001,
0.007137100219726563,
0.007389898777008057,
0.007141739845275879,
0.007140779972076416,
0.007115018844604492,
0.007135819911956787,
0.00704941987991333,
0.007066539764404297,
0.007063499927520752,
0.007076300144195556,
0.007070539951324463,
0.007221739768981933,
0.0070644598007202145,
0.0070731000900268555,
0.007060619831085205,
0.007100460052490235,
0.0070804600715637205,
0.007058539867401123,
0.007057899951934814,
0.007383500099182129,
0.007937097072601318,
0.00760493803024292,
0.007947338104248048,
0.007635818004608154,
0.007558698177337646,
0.0074966192245483395,
0.0078111782073974605,
0.007487178802490235,
0.007395819187164306,
0.007331978797912597,
0.007140140056610108,
0.007063179969787598,
0.007289097785949707
]
},
"throughput": {
"unit": "tokens/s",
"value": 132.89135476801982
},
"energy": null,
"efficiency": null
}
}
}