IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
83757d2 verified
raw
history blame
13.7 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1077.538816,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.4949972820281982,
"mean": 0.008999950582330876,
"stdev": 0.00028059731841235047,
"p50": 0.009031968116760254,
"p90": 0.009299039840698242,
"p95": 0.009370185661315917,
"p99": 0.00960388900756836,
"values": [
0.009718144416809082,
0.00950656032562256,
0.009447487831115722,
0.009261631965637207,
0.009274271965026856,
0.009089152336120605,
0.008983488082885743,
0.009267616271972656,
0.009099264144897461,
0.009094112396240235,
0.009156991958618164,
0.009183232307434081,
0.00917574405670166,
0.00908505630493164,
0.009115679740905762,
0.009184000015258788,
0.009155455589294434,
0.0093155517578125,
0.009188703536987305,
0.00918876838684082,
0.009197407722473145,
0.009022496223449706,
0.008999360084533692,
0.00903104019165039,
0.009141375541687011,
0.009031968116760254,
0.009138239860534667,
0.009194944381713867,
0.009155391693115234,
0.008956159591674805,
0.00899135971069336,
0.008894911766052246,
0.008779840469360351,
0.008864895820617676,
0.009337056159973144,
0.00931948757171631,
0.009202048301696778,
0.008949824333190918,
0.008878911972045898,
0.008771360397338867,
0.008852895736694335,
0.008606143951416016,
0.008598272323608398,
0.008612000465393066,
0.008752032279968262,
0.008908032417297363,
0.008498399734497071,
0.008504735946655273,
0.008561183929443359,
0.008856096267700196,
0.008797951698303223,
0.008633055686950684,
0.008481056213378906,
0.008466848373413086,
0.008519583702087403
]
},
"throughput": {
"unit": "tokens/s",
"value": 222.22344241828324
},
"energy": {
"unit": "kWh",
"cpu": 1.0502183097419252e-07,
"ram": 5.7422145487059654e-08,
"gpu": 1.9083594421238908e-07,
"total": 3.5327992067364125e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5661233.155245166
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1077.538816,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.5140615358352663,
"mean": 0.00934657337882302,
"stdev": 0.0003070097382128943,
"p50": 0.009385760307312013,
"p90": 0.009686342430114746,
"p95": 0.0097246018409729,
"p99": 0.00988637306213379,
"values": [
0.009766176223754882,
0.00984006404876709,
0.009706048011779786,
0.009408896446228027,
0.009508383750915528,
0.009287615776062012,
0.009461024284362792,
0.009612031936645508,
0.009369728088378906,
0.00970678424835205,
0.00941487979888916,
0.009496128082275391,
0.009658271789550782,
0.009449983596801758,
0.009329471588134765,
0.009679583549499512,
0.009599424362182618,
0.009582624435424805,
0.009354207992553711,
0.009552895545959473,
0.009675104141235352,
0.009418880462646485,
0.009662367820739747,
0.009434240341186523,
0.009490655899047852,
0.009385760307312013,
0.009690848350524903,
0.00961740779876709,
0.009604607582092285,
0.009367168426513672,
0.00926540756225586,
0.009347231864929199,
0.00883779239654541,
0.009319552421569824,
0.009601759910583495,
0.009672512054443359,
0.009940735816955567,
0.009225472450256348,
0.00910758399963379,
0.009042816162109375,
0.009358624458312988,
0.008876832008361816,
0.008896639823913574,
0.009118399620056152,
0.009049375534057618,
0.008944959640502929,
0.008891488075256348,
0.008763487815856934,
0.009194432258605957,
0.009105440139770507,
0.008977343559265136,
0.008738271713256836,
0.008964639663696289,
0.00876147174835205,
0.008928000450134277
]
},
"throughput": {
"unit": "tokens/s",
"value": 106.99108212917345
},
"energy": {
"unit": "kWh",
"cpu": 1.0008364079668965e-07,
"ram": 5.4717535906746866e-08,
"gpu": 1.7960496516692365e-07,
"total": 3.344061418703601e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2990375.698265949
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.9914060821533203,
"mean": 0.018359371891728152,
"stdev": 0.0005502694517795107,
"p50": 0.018476031303405763,
"p90": 0.018942016410827635,
"p95": 0.019051110649108888,
"p99": 0.019280465087890625,
"values": [
0.019380224227905272,
0.019191999435424805,
0.01873695945739746,
0.018817024230957033,
0.01840127944946289,
0.01846272087097168,
0.018923519134521484,
0.018512895584106445,
0.01882521629333496,
0.018608192443847656,
0.018704320907592772,
0.01887539291381836,
0.0185743350982666,
0.018487295150756835,
0.018882560729980468,
0.018767871856689454,
0.018946048736572265,
0.01857551956176758,
0.01872879981994629,
0.018970624923706055,
0.018464767456054687,
0.0186562557220459,
0.018537471771240235,
0.01867366409301758,
0.018443424224853514,
0.018835296630859377,
0.01884774398803711,
0.018762752532958983,
0.01841459274291992,
0.018316287994384766,
0.01824665641784668,
0.017733631134033204,
0.018177152633666992,
0.018932607650756834,
0.01902387237548828,
0.0191016960144043,
0.01837775993347168,
0.01802134323120117,
0.017845407485961914,
0.018238304138183593,
0.017523712158203125,
0.017511423110961915,
0.017757183074951173,
0.017822719573974608,
0.01789132881164551,
0.01742233657836914,
0.017285184860229494,
0.01775404739379883,
0.01801523208618164,
0.017804319381713868,
0.017408992767333983,
0.01743155288696289,
0.017292287826538084,
0.01746227264404297
]
},
"throughput": {
"unit": "tokens/s",
"value": 54.468094327919346
},
"energy": null,
"efficiency": null
}
}
}