IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
dfb40f7 verified
raw
history blame
16.2 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.3.1",
"optimum_benchmark_commit": null,
"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": 1052.73344,
"max_global_vram": 1353.187328,
"max_process_vram": 0.0,
"max_reserved": 713.03168,
"max_allocated": 509.62176
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.48530892944335935,
"mean": 0.006558228776261613,
"stdev": 0.00039501536103898617,
"p50": 0.006498863935470581,
"p90": 0.006667167901992798,
"p95": 0.006954140710830686,
"p99": 0.00823712020874023,
"values": [
0.007939040184020996,
0.007188640117645264,
0.007789472103118897,
0.006418848037719726,
0.006293536186218262,
0.006300960063934326,
0.0062984957695007325,
0.006507455825805664,
0.006827871799468994,
0.006520480155944824,
0.009043040275573731,
0.006708032131195069,
0.006754879951477051,
0.006634560108184815,
0.006657983779907227,
0.00658735990524292,
0.0065166401863098146,
0.00653926420211792,
0.006330976009368897,
0.0065326719284057614,
0.006498847961425781,
0.006584415912628174,
0.006548960208892823,
0.006620319843292236,
0.0063192319869995114,
0.0062804799079895016,
0.006268608093261719,
0.006330848217010498,
0.0064967360496521,
0.0064988799095153805,
0.0063079681396484375,
0.006521471977233887,
0.006559872150421143,
0.006553376197814941,
0.0065378880500793456,
0.006410367965698242,
0.006469791889190674,
0.006508895874023438,
0.0065959677696228024,
0.006513472080230713,
0.006539423942565918,
0.006352416038513184,
0.006671103954315185,
0.006610688209533692,
0.006653791904449463,
0.006518752098083496,
0.006518239974975586,
0.006487584114074707,
0.0065316162109375,
0.006298208236694336,
0.006270304203033448,
0.006463679790496826,
0.0064989118576049805,
0.0065155520439147945,
0.006476287841796875,
0.006529151916503906,
0.00648140811920166,
0.006470719814300537,
0.006498496055603028,
0.00647980785369873,
0.006485919952392578,
0.0065272641181945805,
0.006439104080200196,
0.006491072177886963,
0.006272928237915039,
0.00649571180343628,
0.006489568233489991,
0.006424287796020508,
0.006338496208190918,
0.0064783039093017575,
0.006280288219451904,
0.006294655799865723,
0.006295167922973633,
0.0063134078979492185
]
},
"throughput": {
"unit": "tokens/s",
"value": 304.96038918911574
},
"energy": {
"unit": "kWh",
"cpu": 7.792465192706962e-08,
"ram": 4.260517916632654e-08,
"gpu": 1.5400597115797806e-07,
"total": 2.745358022513742e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7285024.33416219
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1052.73344,
"max_global_vram": 1353.187328,
"max_process_vram": 0.0,
"max_reserved": 713.03168,
"max_allocated": 509.845504
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.5128893122673034,
"mean": 0.006930936652260858,
"stdev": 0.00025371031846764823,
"p50": 0.006895663976669311,
"p90": 0.007093855905532837,
"p95": 0.007456403303146361,
"p99": 0.007920516605377197,
"values": [
0.008005663871765137,
0.007889023780822754,
0.006927487850189209,
0.006660863876342773,
0.006660799980163574,
0.006614336013793945,
0.006725632190704346,
0.00763478422164917,
0.006979680061340332,
0.007360352039337158,
0.007066304206848144,
0.0077573761940002445,
0.007027455806732178,
0.006948863983154297,
0.006966495990753174,
0.006980959892272949,
0.006921152114868164,
0.0069064321517944335,
0.006798943996429443,
0.006922592163085937,
0.006889472007751465,
0.006976704120635987,
0.006897600173950196,
0.006913504123687744,
0.006796224117279053,
0.006623712062835694,
0.006603392124176025,
0.006922016143798828,
0.006891744136810303,
0.006906367778778076,
0.006838687896728516,
0.007141024112701416,
0.006945919990539551,
0.006930719852447509,
0.006856768131256103,
0.006796512126922607,
0.006883679866790771,
0.007029183864593506,
0.0068906240463256834,
0.006905439853668213,
0.006885312080383301,
0.006660287857055664,
0.0071402559280395505,
0.007026559829711914,
0.006938784122467041,
0.006957727909088135,
0.006874911785125733,
0.0069506878852844236,
0.006868800163269043,
0.00659065580368042,
0.006902719974517822,
0.006914112091064453,
0.0069307518005371094,
0.006891744136810303,
0.006872159957885742,
0.006893727779388428,
0.006953184127807617,
0.006884511947631836,
0.006876992225646973,
0.006890111923217773,
0.006947679996490479,
0.006879199981689453,
0.006887551784515381,
0.007105663776397705,
0.0067866559028625486,
0.006918816089630127,
0.006856480121612549,
0.006847328186035157,
0.0067415680885314945,
0.006874783992767334,
0.006624608039855957,
0.006620319843292236,
0.006611328125,
0.006888832092285156
]
},
"throughput": {
"unit": "tokens/s",
"value": 144.28064346451674
},
"energy": {
"unit": "kWh",
"cpu": 7.419248087386678e-08,
"ram": 4.035060047446274e-08,
"gpu": 1.4856193471402474e-07,
"total": 2.631050160623543e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3800763.721521015
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.48240847873687753,
"mean": 0.006519033496444291,
"stdev": 0.00022660205551182738,
"p50": 0.006495743989944458,
"p90": 0.0066807807922363285,
"p95": 0.006917478418350218,
"p99": 0.007362156085968017,
"values": [
0.0074414401054382325,
0.007331840038299561,
0.006498303890228272,
0.0062740478515625,
0.006275072097778321,
0.00621779203414917,
0.006300672054290772,
0.007131135940551757,
0.006553599834442139,
0.006802432060241699,
0.006647808074951172,
0.007332831859588623,
0.006616064071655273,
0.0065064959526062015,
0.006554624080657959,
0.006575104236602783,
0.006524928092956543,
0.006512639999389648,
0.006401023864746094,
0.006523903846740723,
0.006494207859039307,
0.006582272052764892,
0.006500351905822754,
0.006500351905822754,
0.006388735771179199,
0.006238207817077636,
0.006218751907348633,
0.00652185583114624,
0.006497280120849609,
0.006503424167633057,
0.006441984176635742,
0.00673689603805542,
0.006551551818847656,
0.00653004789352417,
0.006463488101959228,
0.006405119895935059,
0.006467584133148193,
0.006636544227600098,
0.0064839677810668945,
0.006502399921417237,
0.0064767999649047855,
0.006251520156860352,
0.006694911956787109,
0.006612991809844971,
0.006502399921417237,
0.006551551818847656,
0.006459392070770263,
0.006545375823974609,
0.0064737281799316405,
0.006196256160736084,
0.006478847980499268,
0.0065075201988220215,
0.006511583805084229,
0.006490111827850342,
0.0064737281799316405,
0.006490111827850342,
0.0065474557876586915,
0.006490111827850342,
0.006471680164337158,
0.006479872226715088,
0.006542335987091064,
0.006469632148742676,
0.006486015796661377,
0.006694911956787109,
0.0063907837867736815,
0.006524928092956543,
0.0064542717933654785,
0.006455296039581298,
0.006344704151153564,
0.00648089599609375,
0.006239232063293457,
0.006211584091186524,
0.0062269439697265625,
0.006494207859039307
]
},
"throughput": {
"unit": "tokens/s",
"value": 153.39697219617526
},
"energy": null,
"efficiency": null
}
}
}