IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6aec1b1 verified
raw
history blame
15.9 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_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": {},
"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": 1031.913472,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.48560947370529167,
"mean": 0.006839570052187207,
"stdev": 0.0003943410402428521,
"p50": 0.006683231830596924,
"p90": 0.007367904186248779,
"p95": 0.007407279968261718,
"p99": 0.007632710361480712,
"values": [
0.008074751853942871,
0.0072676482200622556,
0.0074115519523620605,
0.00744326400756836,
0.007387807846069336,
0.007298240184783936,
0.007435935974121094,
0.0073125758171081546,
0.007367904186248779,
0.007403007984161377,
0.007262720108032227,
0.007272352218627929,
0.007369184017181397,
0.00729091215133667,
0.007353439807891846,
0.007355967998504639,
0.007351359844207764,
0.007245183944702149,
0.007001279830932617,
0.007234591960906983,
0.007105408191680908,
0.007071712017059326,
0.006981728076934815,
0.006934368133544922,
0.006721792221069336,
0.006683231830596924,
0.006884960174560547,
0.0071981439590454105,
0.00730182409286499,
0.007122432231903076,
0.007005695819854736,
0.00676688003540039,
0.006695168018341064,
0.0066312642097473146,
0.006599999904632568,
0.006677760124206543,
0.00661897611618042,
0.00665388822555542,
0.006446688175201416,
0.006404064178466797,
0.0066052799224853515,
0.006420576095581055,
0.006435264110565186,
0.006644768238067627,
0.006400352001190186,
0.006428512096405029,
0.006695839881896972,
0.006657824039459228,
0.006848320007324219,
0.0067396159172058104,
0.006667551994323731,
0.00664358377456665,
0.006671679973602295,
0.0064319357872009274,
0.006424032211303711,
0.0066211199760437016,
0.006423520088195801,
0.006391583919525146,
0.006455488204956054,
0.006472799777984619,
0.006412799835205078,
0.006508639812469482,
0.006417695999145508,
0.0064225921630859375,
0.006515423774719239,
0.006420224189758301,
0.006438528060913086,
0.006510560035705566,
0.006404160022735595,
0.006381279945373535,
0.0064522562026977535
]
},
"throughput": {
"unit": "tokens/s",
"value": 292.4160414674641
},
"energy": {
"unit": "kWh",
"cpu": 7.982622612598314e-08,
"ram": 4.3642491391231934e-08,
"gpu": 1.5881258044295296e-07,
"total": 2.8228129796016807e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7085131.088926106
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1031.913472,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5137071042060852,
"mean": 0.007235311326846271,
"stdev": 0.00038121356068509285,
"p50": 0.0071214079856872555,
"p90": 0.007792992115020752,
"p95": 0.007818351984024047,
"p99": 0.007912927865982055,
"values": [
0.007975647926330567,
0.00778275203704834,
0.007633984088897705,
0.0078072319030761715,
0.0077543997764587405,
0.007814271926879883,
0.007740255832672119,
0.007639135837554932,
0.007736608028411866,
0.007792992115020752,
0.007658400058746338,
0.007886047840118409,
0.007876543998718262,
0.007822432041168214,
0.007765215873718262,
0.007692287921905518,
0.007763199806213379,
0.007417727947235107,
0.0075404481887817384,
0.007562975883483886,
0.007399775981903076,
0.007329152107238769,
0.007125696182250976,
0.007387904167175293,
0.007423168182373047,
0.007226592063903809,
0.007401823997497559,
0.007676095962524414,
0.007798655986785889,
0.007375743865966797,
0.0071214079856872555,
0.007120800018310547,
0.007004576206207275,
0.007084703922271728,
0.007052671909332275,
0.0070371518135070804,
0.0070663681030273436,
0.0071506562232971195,
0.006797344207763672,
0.006829567909240723,
0.007071392059326172,
0.006773248195648194,
0.006788928031921387,
0.007060480117797851,
0.006821248054504394,
0.0067636480331420895,
0.007082399845123291,
0.007151840209960937,
0.007179391860961914,
0.0070537919998168944,
0.007160064220428467,
0.007072959899902344,
0.007047423839569092,
0.006788095951080322,
0.006799967765808106,
0.007035295963287353,
0.006778304100036621,
0.006783103942871094,
0.007245376110076905,
0.0068178877830505375,
0.006748447895050049,
0.007051968097686768,
0.006762688159942627,
0.006857279777526855,
0.007047776222229004,
0.006776607990264892,
0.006764575958251953,
0.007039616107940674,
0.006780896186828613,
0.006765984058380127,
0.006763999938964844
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.21105337783442
},
"energy": {
"unit": "kWh",
"cpu": 7.671000383093375e-08,
"ram": 4.194359188864135e-08,
"gpu": 1.5651661918862399e-07,
"total": 2.7517021490819913e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3634114.253003781
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.480750687599182,
"mean": 0.0067711364450589034,
"stdev": 0.00032342959895823606,
"p50": 0.0066713600158691405,
"p90": 0.007235583782196045,
"p95": 0.007269888162612915,
"p99": 0.007371571254730224,
"values": [
0.007426047801971435,
0.007228415966033935,
0.0070891518592834475,
0.0072202239036560055,
0.007222271919250488,
0.007259136199951172,
0.007206912040710449,
0.007085055828094483,
0.007187424182891845,
0.0072540159225463864,
0.007128064155578613,
0.00734822416305542,
0.0072540159225463864,
0.007280640125274658,
0.007219200134277344,
0.007160831928253173,
0.007235583782196045,
0.006889472007751465,
0.006977536201477051,
0.007014400005340577,
0.006887423992156983,
0.0068351998329162595,
0.006636544227600098,
0.006884352207183838,
0.007008255958557129,
0.006778880119323731,
0.006924287796020508,
0.007087103843688965,
0.007286784172058106,
0.006922239780426025,
0.0067051520347595215,
0.006696959972381592,
0.0065812478065490725,
0.006662144184112549,
0.006645760059356689,
0.006616064071655273,
0.006656000137329102,
0.006719488143920899,
0.006395904064178467,
0.006430751800537109,
0.0066416640281677245,
0.006375423908233643,
0.0063907837867736815,
0.0066406397819519045,
0.006423552036285401,
0.006343679904937744,
0.0066713600158691405,
0.006639616012573242,
0.006738944053649902,
0.006646783828735352,
0.006730783939361573,
0.006666240215301514,
0.006618112087249756,
0.0063907837867736815,
0.006378496170043945,
0.006605823993682861,
0.006378496170043945,
0.006379519939422608,
0.006783999919891357,
0.006407167911529541,
0.0063498239517211915,
0.00662937593460083,
0.006366208076477051,
0.006458367824554443,
0.006626304149627686,
0.006377471923828125,
0.006358016014099121,
0.006605823993682861,
0.006370304107666015,
0.00636627197265625,
0.006343679904937744
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.6856962068353
},
"energy": null,
"efficiency": null
}
}
}