IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d3d9bd7 verified
raw
history blame
16.3 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_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": true,
"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 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.293824,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": 1038.712832,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.4895516123771667,
"mean": 0.006527354831695556,
"stdev": 0.00034082359202745183,
"p50": 0.006583104133605957,
"p90": 0.0068911231040954595,
"p95": 0.00702545280456543,
"p99": 0.0073330546760559095,
"values": [
0.0074951682090759275,
0.007276095867156982,
0.007151519775390625,
0.006970751762390137,
0.006971424102783203,
0.006779071807861328,
0.006655263900756836,
0.00726201581954956,
0.006863296031951904,
0.006771584033966064,
0.00688592004776001,
0.006894495964050293,
0.006727615833282471,
0.00684284782409668,
0.00658409595489502,
0.006750336170196533,
0.006737504005432129,
0.006875008106231689,
0.006894015789031983,
0.006859263896942139,
0.006852896213531494,
0.006834879875183105,
0.006638751983642578,
0.006759647846221924,
0.006602975845336914,
0.006724607944488525,
0.006698815822601318,
0.0068048639297485355,
0.006886784076690674,
0.006761504173278809,
0.006690303802490235,
0.006718815803527832,
0.006513408184051514,
0.006684319972991943,
0.006380608081817627,
0.006583104133605957,
0.006589151859283447,
0.006671584129333496,
0.006836959838867188,
0.0066094079017639164,
0.00654099178314209,
0.006541567802429199,
0.006466015815734864,
0.006372767925262451,
0.006314815998077393,
0.006281504154205322,
0.006192063808441162,
0.006187263965606689,
0.006173855781555175,
0.006144383907318115,
0.00614902400970459,
0.006208864212036133,
0.006168191909790039,
0.006187263965606689,
0.00615008020401001,
0.0061222720146179195,
0.006092864036560059,
0.006107872009277344,
0.006065951824188232,
0.006103424072265625,
0.006167007923126221,
0.00632755184173584,
0.0063743038177490234,
0.006168575763702393,
0.006180255889892578,
0.006188255786895752,
0.006179967880249024,
0.0061478719711303715,
0.006173344135284424,
0.0061693120002746585,
0.006150784015655518,
0.006148384094238281,
0.0061357121467590335,
0.006152991771697998,
0.006225567817687988
]
},
"throughput": {
"unit": "tokens/s",
"value": 306.4028310960501
},
"energy": {
"unit": "kWh",
"cpu": 7.767633119702856e-08,
"ram": 4.228170515425448e-08,
"gpu": 1.513908137532458e-07,
"total": 2.713488501045288e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7370585.868447798
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1038.712832,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.514395393371582,
"mean": 0.006858605244954427,
"stdev": 0.0003525939080835715,
"p50": 0.0069369921684265135,
"p90": 0.0072982208251953125,
"p95": 0.0073924129486083985,
"p99": 0.007470184288024903,
"values": [
0.007497439861297608,
0.007460608005523682,
0.007353888034820556,
0.007306528091430664,
0.007323840141296387,
0.006982463836669922,
0.007368480205535889,
0.007448256015777588,
0.007138495922088623,
0.007149439811706543,
0.007198048114776611,
0.007285759925842285,
0.007237696170806885,
0.007108128070831299,
0.006948416233062744,
0.0074544639587402345,
0.007095871925354004,
0.0072849922180175785,
0.007228096008300781,
0.0071421761512756345,
0.00716425609588623,
0.0070915517807006835,
0.007135168075561523,
0.0072037758827209475,
0.007163871765136718,
0.007013440132141113,
0.007051680088043213,
0.007191264152526856,
0.00723744010925293,
0.007144063949584961,
0.007117631912231445,
0.0069582400321960445,
0.006742815971374511,
0.0069369921684265135,
0.006515711784362793,
0.006943808078765869,
0.0069903039932250974,
0.007200255870819092,
0.00726038408279419,
0.006731200218200684,
0.006849503993988037,
0.00681712007522583,
0.006636159896850586,
0.006689919948577881,
0.006744895935058594,
0.006457632064819336,
0.006457568168640137,
0.0064687361717224124,
0.006498144149780273,
0.0065054078102111815,
0.006599936008453369,
0.006453472137451172,
0.0064626879692077635,
0.00648144006729126,
0.006492288112640381,
0.0064817600250244144,
0.006426432132720947,
0.00638915205001831,
0.006372223854064942,
0.006393184185028076,
0.006513792037963867,
0.007032544136047363,
0.006470560073852539,
0.0065391998291015625,
0.006466815948486328,
0.006559008121490478,
0.006495232105255127,
0.006494016170501709,
0.006462175846099854,
0.006470431804656982,
0.006485919952392578,
0.0064921917915344235,
0.006474080085754394,
0.006478943824768066,
0.006475872039794922
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.80223883502492
},
"energy": {
"unit": "kWh",
"cpu": 7.242559095152981e-08,
"ram": 3.9789927818955374e-08,
"gpu": 1.4185484981637756e-07,
"total": 2.540703685868628e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3935917.460827846
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.9913354282379153,
"mean": 0.01339642470591777,
"stdev": 0.0006669927563764709,
"p50": 0.013419008255004883,
"p90": 0.014175641536712646,
"p95": 0.014327859258651734,
"p99": 0.014807040195465087,
"values": [
0.014779392242431641,
0.014550016403198243,
0.014329855918884277,
0.014326784133911133,
0.013828096389770507,
0.013839360237121581,
0.014881792068481446,
0.014111743927001954,
0.013898752212524413,
0.014167039871215821,
0.014179327964782714,
0.014028800010681153,
0.013972479820251465,
0.013615103721618652,
0.014158847808837891,
0.013919232368469238,
0.014125056266784668,
0.014212096214294433,
0.01399500846862793,
0.014100480079650878,
0.013930496215820312,
0.013849599838256836,
0.013940735816955567,
0.013844511985778808,
0.013777888298034668,
0.01377791976928711,
0.014007295608520508,
0.014163968086242675,
0.013937664031982423,
0.013845503807067871,
0.013732864379882812,
0.013312000274658203,
0.013666303634643554,
0.012989439964294434,
0.01350656032562256,
0.013593600273132325,
0.013799424171447755,
0.014229503631591797,
0.013423616409301758,
0.013414400100708008,
0.013402112007141113,
0.01314406394958496,
0.013089792251586914,
0.013080575942993163,
0.012776448249816894,
0.01267302417755127,
0.01265766429901123,
0.012723199844360352,
0.01267404842376709,
0.01277337646484375,
0.012689408302307128,
0.01265561580657959,
0.012667903900146485,
0.012685312271118163,
0.012630016326904296,
0.01254911994934082,
0.012522496223449708,
0.012471327781677246,
0.01252143955230713,
0.01267404842376709,
0.013377535820007324,
0.012908543586730957,
0.012731391906738282,
0.012669952392578124,
0.012775424003601075,
0.012703743934631348,
0.012668928146362305,
0.012658687591552734,
0.012654591560363769,
0.012651519775390625,
0.012692480087280274,
0.012637184143066407,
0.01265664005279541,
0.012725248336791992
]
},
"throughput": {
"unit": "tokens/s",
"value": 74.64678240293901
},
"energy": null,
"efficiency": null
}
}
}