IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d63ef7f verified
raw
history blame
17.5 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+cu124",
"_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": {},
"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,
"memory": true,
"latency": 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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.224-212.876.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.5.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": "1.22.0",
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 805.23264,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.339328
},
"latency": {
"unit": "s",
"values": [
7.98474462890625
],
"count": 1,
"total": 7.98474462890625,
"mean": 7.98474462890625,
"p50": 7.98474462890625,
"p90": 7.98474462890625,
"p95": 7.98474462890625,
"p99": 7.98474462890625,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.433092813196708e-07,
"ram": 4.981216173137392e-07,
"gpu": 1.7438902841782067e-06,
"total": 3.1853211828116166e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1254.219776,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"values": [
0.007154880046844482,
0.006968095779418946,
0.0069424638748168946,
0.006900447845458985,
0.007164576053619385,
0.007031519889831543,
0.006903840065002441,
0.006908480167388916,
0.007333407878875733,
0.007115039825439453,
0.007159391880035401,
0.0068206720352172855,
0.006855487823486328,
0.0070356159210205075,
0.006894239902496338,
0.006914527893066407,
0.0072035517692565915,
0.006980671882629395,
0.007320159912109375,
0.00709388780593872,
0.007047552108764649,
0.006930719852447509,
0.006756351947784424,
0.006750688076019287,
0.006850880146026611,
0.006635583877563476,
0.006651455879211426,
0.006586080074310303,
0.00678607988357544,
0.006946815967559815,
0.007014783859252929,
0.006851967811584473,
0.00664521598815918,
0.006683839797973633,
0.006792160034179687,
0.0065725440979003905,
0.0064908480644226075,
0.006546144008636475,
0.006568575859069824,
0.006389791965484619,
0.006594111919403076,
0.0063290238380432125,
0.00628272008895874,
0.0064921917915344235,
0.006257631778717041,
0.006226240158081054,
0.007010560035705566,
0.006562528133392334,
0.00628707218170166,
0.006311135768890381,
0.006302944183349609,
0.00630953598022461,
0.006239488124847412,
0.006259200096130371,
0.00647215986251831,
0.0065289921760559085,
0.00627558422088623,
0.006242335796356201,
0.0062787518501281735,
0.0063025918006896975,
0.006273375988006592,
0.006276927947998047,
0.006286240100860595,
0.00654150390625,
0.007721471786499024,
0.007278304100036621,
0.006482111930847168,
0.006228223800659179,
0.006181759834289551,
0.006212063789367676,
0.006222943782806397,
0.00626643180847168,
0.006190432071685791,
0.006227200031280518
],
"count": 74,
"total": 0.49315282821655265,
"mean": 0.006664227408331794,
"p50": 0.006614847898483276,
"p90": 0.007142927980422973,
"p95": 0.007229715085029602,
"p99": 0.00743818513393402,
"stdev": 0.000359496051229758,
"stdev_": 5.394414524034797
},
"throughput": {
"unit": "tokens/s",
"value": 300.1098068021429
},
"energy": {
"unit": "kWh",
"cpu": 7.838080270473699e-08,
"ram": 4.283150145886661e-08,
"gpu": 1.5028703543482507e-07,
"total": 2.7149933959842867e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7366500.423014565
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1254.219776,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"values": [
0.0071619200706481935,
0.007487872123718262,
0.007210303783416748,
0.007452447891235351,
0.007465919971466064,
0.007286335945129395,
0.007218656063079834,
0.007640768051147461,
0.007558752059936524,
0.007559616088867188,
0.007347551822662354,
0.007246208190917969,
0.007318880081176758,
0.007262432098388672,
0.007393184185028076,
0.007360703945159912,
0.007339456081390381,
0.007425375938415527,
0.007681471824645996,
0.0074134721755981445,
0.007326240062713623,
0.007386975765228272,
0.007195295810699463,
0.007105504035949707,
0.006910975933074951,
0.00722819185256958,
0.0068683199882507324,
0.007026303768157959,
0.007200160026550293,
0.007079296112060547,
0.0075450558662414555,
0.0069194560050964355,
0.0068596482276916506,
0.006984223842620849,
0.006865888118743896,
0.006985919952392578,
0.006881728172302246,
0.006716639995574951,
0.006788671970367432,
0.006793024063110352,
0.0072928318977355956,
0.0067248959541320805,
0.006681568145751953,
0.006513599872589111,
0.006546815872192383,
0.006586048126220703,
0.007119296073913574,
0.0068774080276489255,
0.006630335807800293,
0.006584544181823731,
0.006623936176300049,
0.006793983936309814,
0.006544223785400391,
0.006661632061004639,
0.0067699837684631345,
0.006680895805358886,
0.00663651180267334,
0.006596640110015869,
0.006570240020751953,
0.006614272117614746,
0.006626688003540039,
0.006641215801239013,
0.0067290239334106446,
0.007011263847351074,
0.007916096210479737,
0.006817759990692139,
0.006850656032562256,
0.006547359943389892,
0.006539135932922363,
0.006604288101196289,
0.00650707197189331,
0.00664137601852417,
0.006530943870544433,
0.006539072036743164
],
"count": 74,
"total": 0.5170504631996155,
"mean": 0.006987168421616427,
"p50": 0.006896352052688599,
"p90": 0.007461878347396851,
"p95": 0.007559054470062256,
"p99": 0.007744820408821105,
"stdev": 0.00035874141339079126,
"stdev_": 5.134288909953014
},
"throughput": {
"unit": "tokens/s",
"value": 143.11949271270862
},
"energy": {
"unit": "kWh",
"cpu": 7.466147874326675e-08,
"ram": 4.080505534170335e-08,
"gpu": 1.4266547812895206e-07,
"total": 2.581320122139222e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3873986.769108158
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.0066713600158691405,
0.006974431991577148,
0.006660096168518067,
0.006923264026641846,
0.006938623905181885,
0.006779776096343994,
0.006725632190704346,
0.007050240039825439,
0.00704204797744751,
0.007033728122711182,
0.006806528091430664,
0.006748159885406494,
0.0067758078575134275,
0.006752255916595459,
0.006872064113616944,
0.006762495994567871,
0.006833151817321777,
0.006887423992156983,
0.007146495819091797,
0.006890495777130127,
0.006795263767242431,
0.00688640022277832,
0.00667955207824707,
0.006632448196411133,
0.006490111827850342,
0.006731776237487793,
0.0064143362045288085,
0.006616064071655273,
0.006719488143920899,
0.006616064071655273,
0.006999040126800537,
0.006497280120849609,
0.006435711860656738,
0.006566751956939698,
0.006456319808959961,
0.0065996160507202145,
0.006486015796661377,
0.006331391811370849,
0.006401023864746094,
0.006403071880340576,
0.006876160144805908,
0.006337535858154297,
0.006294528007507324,
0.006132736206054688,
0.006147168159484863,
0.006200191974639893,
0.00672051191329956,
0.0064542717933654785,
0.0062341117858886715,
0.006198272228240966,
0.006224864006042481,
0.006378496170043945,
0.006157311916351318,
0.006266880035400391,
0.0063836159706115725,
0.006285312175750732,
0.006240255832672119,
0.0062156801223754886,
0.006172671794891358,
0.006195199966430664,
0.006231040000915527,
0.006239232063293457,
0.006205535888671875,
0.006603775978088379,
0.00723967981338501,
0.006428575992584228,
0.006425600051879882,
0.006158336162567139,
0.006157311916351318,
0.0062228479385375976,
0.006111199855804443,
0.00622489595413208,
0.006149055957794189,
0.006158336162567139
],
"count": 74,
"total": 0.48370300769805913,
"mean": 0.006536527131054853,
"p50": 0.0064880638122558594,
"p90": 0.006934015941619873,
"p95": 0.0070366400718688965,
"p99": 0.007171655497550964,
"stdev": 0.0002998381822920256,
"stdev_": 4.58711753627554
},
"throughput": {
"unit": "tokens/s",
"value": 152.98643759145872
},
"energy": null,
"efficiency": null
}
}
}