IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d323c73 verified
raw
history blame
13 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": "619f91dd928d405e72e9e7724b958f1538ca7d80",
"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.150592,
"max_global_vram": 2854.273024,
"max_process_vram": 249019.088896,
"max_reserved": 725.614592,
"max_allocated": 512.83456
},
"latency": {
"unit": "s",
"count": 53,
"total": 0.4836816320419312,
"mean": 0.009126068529093041,
"stdev": 0.00041895334953903147,
"p50": 0.009166913986206055,
"p90": 0.009348866271972657,
"p95": 0.009529827117919921,
"p99": 0.010588071517944334,
"values": [
0.011046920776367188,
0.009559395790100098,
0.009360994338989258,
0.008981152534484864,
0.008601632118225098,
0.008877633094787597,
0.008783872604370118,
0.008772671699523926,
0.00867955207824707,
0.009237633705139161,
0.009222594261169434,
0.009150433540344238,
0.010164518356323243,
0.009256513595581054,
0.009425475120544433,
0.009236674308776855,
0.009235553741455078,
0.009233954429626465,
0.009222753524780273,
0.009190753936767578,
0.009233633995056152,
0.00927523422241211,
0.009199394226074218,
0.009156673431396485,
0.009061473846435547,
0.009004993438720703,
0.008764191627502442,
0.008673473358154297,
0.00863219165802002,
0.008583392143249512,
0.009035553932189942,
0.009289154052734375,
0.009203233718872071,
0.009166913986206055,
0.009134593963623048,
0.009510114669799804,
0.009246113777160645,
0.009190753936767578,
0.009134273529052734,
0.009239395141601563,
0.009175555229187012,
0.009225954055786132,
0.009249954223632813,
0.009134593963623048,
0.009138914108276367,
0.00915235424041748,
0.00930035400390625,
0.009145474433898926,
0.009151074409484863,
0.009159713745117188,
0.00832499122619629,
0.008233470916748047,
0.008313791275024414
]
},
"throughput": {
"unit": "tokens/s",
"value": 219.15241964534778
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1047.150592,
"max_global_vram": 2854.309888,
"max_process_vram": 246112.251904,
"max_reserved": 725.614592,
"max_allocated": 513.058304
},
"latency": {
"unit": "s",
"count": 53,
"total": 0.5145820693969725,
"mean": 0.009709095648999484,
"stdev": 0.0002904580635922776,
"p50": 0.009805955886840821,
"p90": 0.009999973106384277,
"p95": 0.010034277534484864,
"p99": 0.010207596206665039,
"values": [
0.010273158073425293,
0.010147077560424805,
0.009756997108459472,
0.009015393257141114,
0.009717636108398438,
0.009170913696289062,
0.009517475128173828,
0.009372674942016601,
0.009802597045898438,
0.009570116043090821,
0.009386754989624024,
0.010042436599731445,
0.009840836524963379,
0.009933156967163086,
0.010004837036132813,
0.010028838157653808,
0.009876676559448242,
0.009965156555175781,
0.00998627758026123,
0.009980036735534667,
0.009815076828002929,
0.009977796554565429,
0.01000339698791504,
0.009522115707397461,
0.009626275062561035,
0.009564515113830566,
0.00922291374206543,
0.009463555335998535,
0.009217634201049804,
0.009559394836425782,
0.009093793869018554,
0.009904196739196777,
0.009832357406616211,
0.009686595916748047,
0.009923236846923828,
0.009816837310791016,
0.009835396766662598,
0.009646116256713867,
0.009805955886840821,
0.00988675594329834,
0.009747076034545898,
0.009693635940551757,
0.009953956604003906,
0.009838756561279296,
0.009828996658325196,
0.009788036346435547,
0.0099280366897583,
0.009896037101745605,
0.009919556617736816,
0.009423234939575195,
0.009229153633117675,
0.009152194023132325,
0.00939043426513672
]
},
"throughput": {
"unit": "tokens/s",
"value": 102.99620439963937
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 52,
"total": 0.9797927722930913,
"mean": 0.018842168697944053,
"stdev": 0.000540742123483717,
"p50": 0.019031750679016114,
"p90": 0.019270567893981936,
"p95": 0.019410695838928224,
"p99": 0.019983168888092043,
"values": [
0.019734952926635744,
0.019092872619628908,
0.018186948776245118,
0.018273668289184572,
0.018295907974243165,
0.018260868072509765,
0.018245988845825196,
0.01854006767272949,
0.018972551345825196,
0.018712228775024414,
0.01902503204345703,
0.02024151611328125,
0.01906502914428711,
0.019406951904296876,
0.019309511184692384,
0.01926999282836914,
0.019234792709350586,
0.019259271621704103,
0.01920039176940918,
0.01918775177001953,
0.01917399215698242,
0.01922439193725586,
0.018876390457153322,
0.018633668899536132,
0.018722307205200194,
0.01808694839477539,
0.018136228561401367,
0.017925985336303712,
0.018069507598876954,
0.018301027297973633,
0.019065351486206056,
0.019098472595214844,
0.0189802303314209,
0.01901478958129883,
0.019415271759033202,
0.019113672256469726,
0.01905223274230957,
0.019021352767944335,
0.01898134994506836,
0.0190779914855957,
0.019038469314575195,
0.018959911346435546,
0.019210792541503905,
0.019072551727294922,
0.019099109649658202,
0.019270631790161134,
0.019066310882568358,
0.019091272354125978,
0.018684869766235353,
0.017620384216308595,
0.01739798355102539,
0.017793025970458985
]
},
"throughput": {
"unit": "tokens/s",
"value": 53.07244702193512
},
"energy": null,
"efficiency": null
}
}
}