IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ba21390 verified
raw
history blame
17.1 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.225-213.878.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.45.1",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"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": 806.07232,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.20819967651367188
],
"count": 1,
"total": 0.20819967651367188,
"mean": 0.20819967651367188,
"p50": 0.20819967651367188,
"p90": 0.20819967651367188,
"p95": 0.20819967651367188,
"p99": 0.20819967651367188,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1229.176832,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"values": [
0.007185823917388916,
0.007099904060363769,
0.007070335865020752,
0.007103519916534424,
0.00707919979095459,
0.007308288097381592,
0.0073714561462402345,
0.007109312057495118,
0.007005983829498291,
0.007560704231262207,
0.007196703910827637,
0.007442048072814941,
0.0072206401824951175,
0.007036159992218018,
0.007297311782836914,
0.007006591796875,
0.007069151878356933,
0.006960927963256836,
0.0069762239456176755,
0.007230175971984863,
0.0071142401695251465,
0.007243264198303223,
0.007070975780487061,
0.007008096218109131,
0.007102911949157715,
0.006835264205932617,
0.00671292781829834,
0.007250207901000977,
0.006913343906402588,
0.006972479820251465,
0.007186048030853272,
0.0072482237815856936,
0.007264256000518799,
0.006996096134185791,
0.006927264213562012,
0.007008255958557129,
0.006837376117706299,
0.006780416011810303,
0.0067114877700805665,
0.006506144046783447,
0.006496128082275391,
0.006456895828247071,
0.006459775924682617,
0.006426784038543701,
0.00640934419631958,
0.006427648067474365,
0.006435135841369629,
0.006459807872772217,
0.006542784214019775,
0.006588768005371093,
0.006420959949493408,
0.0065755839347839354,
0.006730271816253662,
0.006458847999572754,
0.006399903774261475,
0.006426047801971435,
0.006443999767303467,
0.006436639785766601,
0.006381824016571045,
0.0066728959083557126,
0.006448671817779541,
0.006409023761749268,
0.006420415878295898,
0.006449056148529053,
0.006449952125549317,
0.006393184185028076,
0.00643884801864624,
0.00644159984588623,
0.006458144187927246,
0.006421984195709229,
0.00656713581085205,
0.006432320117950439,
0.006407072067260742
],
"count": 73,
"total": 0.49640719842910763,
"mean": 0.006800098608617914,
"p50": 0.006780416011810303,
"p90": 0.007247231864929199,
"p95": 0.007301702308654785,
"p99": 0.0074752717971801755,
"stdev": 0.000342886619510132,
"stdev_": 5.04237716605439
},
"throughput": {
"unit": "tokens/s",
"value": 294.1133820420422
},
"energy": {
"unit": "kWh",
"cpu": 8.072050691137904e-08,
"ram": 4.4103936233611834e-08,
"gpu": 1.568708737959195e-07,
"total": 2.8169531694091034e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7099869.538901595
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1229.176832,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"values": [
0.007183743953704834,
0.007467423915863037,
0.00721504020690918,
0.007256192207336426,
0.007379744052886963,
0.007376287937164307,
0.007394336223602295,
0.0071963839530944824,
0.008525152206420899,
0.007766623973846435,
0.0075801281929016116,
0.007437952041625976,
0.007710976123809814,
0.0073935680389404295,
0.007167871952056885,
0.007345056056976319,
0.00723414421081543,
0.007187039852142334,
0.0073051519393920895,
0.007366367816925049,
0.007366847991943359,
0.00725977611541748,
0.007270847797393799,
0.007046304225921631,
0.0070830078125,
0.007034719944000244,
0.007196608066558838,
0.007179711818695068,
0.007083615779876709,
0.00734115219116211,
0.00789798402786255,
0.007524608135223388,
0.007178368091583252,
0.007114943981170655,
0.007089695930480957,
0.007105696201324463,
0.006898848056793213,
0.006957215785980225,
0.006921440124511719,
0.006712831974029541,
0.006646304130554199,
0.006751743793487549,
0.006614431858062744,
0.006623968124389649,
0.006606656074523926,
0.00659827184677124,
0.006589759826660156,
0.006608799934387207,
0.006654496192932129,
0.006572383880615235,
0.006576320171356201,
0.006922463893890381,
0.006962463855743408,
0.006647007942199707,
0.006609216213226319,
0.0066274237632751466,
0.0066211199760437016,
0.00661033582687378,
0.006592319965362549,
0.00693555212020874,
0.006608191967010498,
0.006602528095245361,
0.006580351829528808,
0.0066044158935546875,
0.0066070399284362796,
0.0069333438873291015,
0.0065641279220581055,
0.006583648204803467,
0.006604576110839843,
0.006601408004760743,
0.006590752124786377,
0.006600416183471679,
0.006647871971130371
],
"count": 73,
"total": 0.5112531204223631,
"mean": 0.007003467403046072,
"p50": 0.006962463855743408,
"p90": 0.00742922887802124,
"p95": 0.007632467365264892,
"p99": 0.008073591117858887,
"stdev": 0.00039784499243469395,
"stdev_": 5.680686002217361
},
"throughput": {
"unit": "tokens/s",
"value": 142.78641456445735
},
"energy": {
"unit": "kWh",
"cpu": 7.786063181084009e-08,
"ram": 4.235752111549208e-08,
"gpu": 1.509515946840788e-07,
"total": 2.7116974761041095e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3687727.000567549
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006694911956787109,
0.006918144226074219,
0.006709248065948486,
0.006755328178405762,
0.006845439910888672,
0.0068577280044555666,
0.006883327960968018,
0.006692863941192627,
0.007970816135406494,
0.007245759963989257,
0.007044095993041993,
0.006894591808319092,
0.007180287837982178,
0.0068689918518066405,
0.006636544227600098,
0.006830080032348633,
0.006731776237487793,
0.006674496173858643,
0.006782976150512696,
0.006843391895294189,
0.0068351998329162595,
0.006748159885406494,
0.006747136116027832,
0.006565887928009034,
0.006604800224304199,
0.006573056221008301,
0.006699007987976074,
0.006760447978973389,
0.006619135856628418,
0.006856704235076904,
0.007346176147460938,
0.006964223861694336,
0.006746111869812011,
0.006680575847625733,
0.006651904106140137,
0.006686719894409179,
0.006500351905822754,
0.006558720111846924,
0.00652185583114624,
0.0063201279640197755,
0.006259712219238281,
0.006362112045288086,
0.006207551956176758,
0.006205440044403076,
0.006211584091186524,
0.006203392028808594,
0.0061931519508361815,
0.006220799922943115,
0.0062679038047790524,
0.006177792072296143,
0.006182911872863769,
0.006524928092956543,
0.006552576065063476,
0.006238207817077636,
0.006223872184753418,
0.006230016231536865,
0.00622489595413208,
0.00621670389175415,
0.006209536075592041,
0.006516736030578613,
0.006190080165863037,
0.006217728137969971,
0.006195199966430664,
0.006217728137969971,
0.0062197761535644535,
0.0065382399559021,
0.006170559883117676,
0.006198239803314209,
0.006220799922943115,
0.006217728137969971,
0.00619212818145752,
0.0061931519508361815,
0.006260735988616943
],
"count": 73,
"total": 0.47850902509689314,
"mean": 0.006554918152012238,
"p50": 0.006558720111846924,
"p90": 0.006892339038848877,
"p95": 0.007098572731018066,
"p99": 0.007521075344085694,
"stdev": 0.00034483159169620644,
"stdev_": 5.260654423127306
},
"throughput": {
"unit": "tokens/s",
"value": 152.55720617854223
},
"energy": null,
"efficiency": null
}
}
}