IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
695c427 verified
raw
history blame
17.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+cu121",
"_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.25696,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.220-209.869.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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 766.038016,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.42816064453125,
"mean": 7.42816064453125,
"stdev": 0.0,
"p50": 7.42816064453125,
"p90": 7.42816064453125,
"p95": 7.42816064453125,
"p99": 7.42816064453125,
"values": [
7.42816064453125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.0011175451389755e-06,
"ram": 5.325728522740407e-07,
"gpu": 1.766668080000009e-06,
"total": 3.300358477413025e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1081.868288,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.4880384974479676,
"mean": 0.006778312464555105,
"stdev": 0.0004026016016628371,
"p50": 0.006741168022155762,
"p90": 0.0073655649662017824,
"p95": 0.007505841684341431,
"p99": 0.007676672892570496,
"values": [
0.007699552059173584,
0.0075047039985656734,
0.007332159996032715,
0.007366432189941406,
0.006742368221282959,
0.0066796159744262696,
0.006742144107818603,
0.006923168182373047,
0.00685481595993042,
0.006727807998657227,
0.006911200046539306,
0.006916287899017334,
0.006792543888092041,
0.006866240024566651,
0.00697983980178833,
0.007198400020599365,
0.007667327880859375,
0.007380256175994873,
0.007534848213195801,
0.007507232189178467,
0.007357759952545166,
0.007258848190307617,
0.00739737606048584,
0.0073122239112854,
0.006818592071533203,
0.006769023895263672,
0.0067283520698547365,
0.006704351902008057,
0.006816351890563965,
0.006818304061889649,
0.006748159885406494,
0.006931871891021729,
0.00693839979171753,
0.006944511890411377,
0.006813792228698731,
0.006688000202178955,
0.006692031860351563,
0.006663839817047119,
0.0066360321044921875,
0.006534495830535889,
0.006320352077484131,
0.006433760166168213,
0.007227712154388428,
0.007277056217193604,
0.007123104095458984,
0.006954559803009033,
0.006703680038452149,
0.006759168148040772,
0.006716415882110595,
0.00674019193649292,
0.006728960037231445,
0.006707200050354004,
0.006739744186401367,
0.006687871932983399,
0.0067042880058288574,
0.006273344039916993,
0.006220096111297607,
0.00627180814743042,
0.006247744083404541,
0.006229152202606201,
0.006227935791015625,
0.006244832038879394,
0.0062576961517333985,
0.006247583866119385,
0.006245247840881348,
0.006259136199951172,
0.006293759822845459,
0.006273248195648193,
0.00628879976272583,
0.006258016109466553,
0.006230559825897217,
0.0062462081909179686
]
},
"throughput": {
"unit": "tokens/s",
"value": 295.05869056027205
},
"energy": {
"unit": "kWh",
"cpu": 7.874555458056868e-08,
"ram": 4.292522379148697e-08,
"gpu": 1.5461197063576218e-07,
"total": 2.7628274900781785e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7238960.836977219
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1097.781248,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.5133246717453005,
"mean": 0.007129509329795839,
"stdev": 0.000433992683383011,
"p50": 0.0071132960319519045,
"p90": 0.007755228805541992,
"p95": 0.007806143927574158,
"p99": 0.008081382875442505,
"values": [
0.007939072132110595,
0.007739200115203858,
0.007653920173645019,
0.007740223884582519,
0.007011744022369384,
0.007125792026519776,
0.007222784042358398,
0.007187903881072998,
0.007274400234222412,
0.0072259521484375,
0.007240447998046875,
0.007212704181671143,
0.007145472049713135,
0.007185472011566162,
0.007642079830169677,
0.007562143802642822,
0.007757855892181397,
0.007711775779724121,
0.008146112442016601,
0.007819519996643067,
0.007795199871063232,
0.007778975963592529,
0.007756896018981933,
0.00772544002532959,
0.007016416072845459,
0.007095263957977295,
0.007302432060241699,
0.007045824050903321,
0.00712224006652832,
0.007082496166229248,
0.007169631958007813,
0.007290048122406006,
0.0072624959945678715,
0.0071287999153137206,
0.007322015762329101,
0.007131552219390869,
0.0070462398529052735,
0.006753727912902832,
0.007104351997375489,
0.006606016159057617,
0.006585472106933594,
0.00752288007736206,
0.007597184181213379,
0.008054944038391113,
0.0072135357856750485,
0.007049215793609619,
0.0070703039169311525,
0.007169151782989502,
0.007058335781097412,
0.007019519805908203,
0.007055647850036621,
0.007045184135437012,
0.0070488319396972655,
0.007025311946868897,
0.007042751789093017,
0.006559711933135986,
0.006584544181823731,
0.00655350399017334,
0.0065509119033813476,
0.006579999923706055,
0.006642015933990478,
0.006527167797088623,
0.006531199932098389,
0.006533055782318115,
0.0066096000671386716,
0.006586080074310303,
0.006554048061370849,
0.006576032161712647,
0.006566944122314453,
0.006583263874053955,
0.006613120079040528,
0.006534560203552246
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.26210693361082
},
"energy": {
"unit": "kWh",
"cpu": 7.694463363190144e-08,
"ram": 4.182950651425422e-08,
"gpu": 1.447425257018993e-07,
"total": 2.6351666584805494e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3794826.398481397
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.47937846517562865,
"mean": 0.006658034238550398,
"stdev": 0.0003782126978666858,
"p50": 0.006641151905059815,
"p90": 0.0072156158924102775,
"p95": 0.007253006291389466,
"p99": 0.007477565288543702,
"values": [
0.007387135982513428,
0.007211008071899414,
0.007129119873046875,
0.007205855846405029,
0.006532095909118653,
0.006594560146331787,
0.006709248065948486,
0.006647808074951172,
0.00678604793548584,
0.0067041277885437015,
0.006725632190704346,
0.006688767910003662,
0.006643712043762207,
0.0066641921997070315,
0.007136256217956543,
0.007039999961853028,
0.007231488227844239,
0.007158783912658692,
0.00757862377166748,
0.007216127872467041,
0.007264287948608399,
0.007243775844573975,
0.007223296165466309,
0.007162879943847656,
0.00653926420211792,
0.0065668802261352535,
0.006792191982269287,
0.006526976108551025,
0.006636544227600098,
0.006554624080657959,
0.0066641921997070315,
0.0067348480224609375,
0.006738944053649902,
0.006622208118438721,
0.006820864200592041,
0.0066109437942504885,
0.0065669121742248536,
0.006308864116668702,
0.006608895778656006,
0.0062156801223754886,
0.006188032150268555,
0.007007232189178467,
0.007068672180175781,
0.007436287879943848,
0.00679423999786377,
0.0066406397819519045,
0.006660096168518067,
0.006718463897705078,
0.006651904106140137,
0.006604800224304199,
0.006646815776824951,
0.0066375679969787596,
0.0066416640281677245,
0.006616064071655273,
0.006618112087249756,
0.006171648025512695,
0.006199295997619629,
0.006170623779296875,
0.006147071838378906,
0.00618393611907959,
0.006253568172454834,
0.006142975807189942,
0.006147071838378906,
0.00612556791305542,
0.0062197761535644535,
0.006201344013214111,
0.006168575763702393,
0.006174719810485839,
0.00617574405670166,
0.0061972479820251464,
0.0062269439697265625,
0.006148096084594727
]
},
"throughput": {
"unit": "tokens/s",
"value": 150.19448145969915
},
"energy": null,
"efficiency": null
}
}
}