IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d5a92ef verified
raw
history blame
14.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.0",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1053.827072,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.4991265563964844,
"mean": 0.008605630282698005,
"stdev": 0.00039882273470147605,
"p50": 0.008631056308746339,
"p90": 0.009216473293304444,
"p95": 0.009356646156311035,
"p99": 0.009561951732635498,
"values": [
0.009474368095397949,
0.009335871696472167,
0.00929036808013916,
0.009185983657836913,
0.008739328384399414,
0.008612735748291016,
0.008707679748535157,
0.0089967679977417,
0.009663968086242676,
0.009287615776062012,
0.008998080253601074,
0.008637727737426758,
0.008713343620300292,
0.008609375953674316,
0.008684831619262695,
0.008717984199523925,
0.00881769561767578,
0.008802656173706055,
0.008634336471557617,
0.008776512145996094,
0.008720735549926757,
0.008646559715270997,
0.008831711769104003,
0.008716511726379394,
0.00862777614593506,
0.008812992095947266,
0.00901740837097168,
0.008878496170043946,
0.008746591567993164,
0.008837056159973145,
0.008539487838745117,
0.008598624229431152,
0.008375040054321289,
0.008586655616760254,
0.008687647819519043,
0.009484992027282715,
0.008326751708984375,
0.008191295623779297,
0.008195072174072266,
0.00822265625,
0.008154239654541016,
0.008176959991455079,
0.008138079643249512,
0.00812217617034912,
0.008235551834106446,
0.008111776351928711,
0.008221856117248535,
0.008171520233154296,
0.0082041597366333,
0.008209247589111329,
0.008181280136108398,
0.008283647537231445,
0.00832572841644287,
0.008115455627441407,
0.008104479789733887,
0.008142784118652343,
0.008134143829345703,
0.008362175941467286
]
},
"throughput": {
"unit": "tokens/s",
"value": 232.40598704560747
},
"energy": {
"unit": "kWh",
"cpu": 1.0061583388772164e-07,
"ram": 5.5012300886042116e-08,
"gpu": 1.8085466445763328e-07,
"total": 3.3648279923139706e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5943840.233641818
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1053.827072,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.5156737575531007,
"mean": 0.008890926854363804,
"stdev": 0.00038642459451632523,
"p50": 0.00897488021850586,
"p90": 0.009417795085906983,
"p95": 0.009624700975418092,
"p99": 0.00971799641609192,
"values": [
0.009621888160705567,
0.009640640258789062,
0.009649567604064942,
0.009377663612365722,
0.009076607704162598,
0.009049375534057618,
0.009074399948120117,
0.009542367935180663,
0.009808704376220704,
0.009394207954406738,
0.009358688354492188,
0.009178112030029297,
0.009113727569580078,
0.008954943656921387,
0.00901200008392334,
0.009047200202941894,
0.009189888000488282,
0.009071807861328125,
0.009094047546386718,
0.00907545566558838,
0.008986080169677734,
0.008973024368286132,
0.008976767539978028,
0.009014592170715333,
0.009038175582885742,
0.009472831726074219,
0.009201184272766113,
0.009077119827270507,
0.008983712196350097,
0.009007488250732422,
0.008916864395141602,
0.008688639640808106,
0.008921343803405762,
0.008976736068725587,
0.008877887725830078,
0.008733440399169921,
0.008503135681152343,
0.008486880302429198,
0.008549663543701172,
0.00861513614654541,
0.00841487979888916,
0.008380000114440917,
0.008418848037719726,
0.008449472427368165,
0.00843331241607666,
0.008434592247009277,
0.008488575935363769,
0.008439807891845704,
0.008459744453430175,
0.008478943824768066,
0.008568575859069824,
0.008608511924743652,
0.008369471549987793,
0.008466879844665527,
0.008359295845031738,
0.008367487907409668,
0.008527839660644531,
0.008675519943237304
]
},
"throughput": {
"unit": "tokens/s",
"value": 112.47421291169262
},
"energy": {
"unit": "kWh",
"cpu": 9.509041504708152e-08,
"ram": 5.199449542950311e-08,
"gpu": 1.7175946098494537e-07,
"total": 3.1884437146152987e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3136326.3381949174
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 57,
"total": 0.9975111732482908,
"mean": 0.017500196021899846,
"stdev": 0.0007495505766049658,
"p50": 0.01765478324890137,
"p90": 0.01842974739074707,
"p95": 0.01877872619628906,
"p99": 0.0192828214263916,
"values": [
0.01903411293029785,
0.018981887817382814,
0.01862553596496582,
0.01785958480834961,
0.017681407928466796,
0.01780735969543457,
0.01846784019470215,
0.019599359512329103,
0.018727935791015626,
0.018404352188110353,
0.01784524726867676,
0.017863679885864257,
0.0175861759185791,
0.017723392486572266,
0.017789951324462892,
0.01802649688720703,
0.017938432693481447,
0.017750015258789064,
0.01785036849975586,
0.017779712677001954,
0.01764454460144043,
0.01785241508483887,
0.017755136489868165,
0.01768448066711426,
0.018295808792114256,
0.01826918411254883,
0.01799884796142578,
0.017756160736083985,
0.017879039764404296,
0.017494016647338868,
0.017408000946044923,
0.0172410888671875,
0.01758720016479492,
0.01765478324890137,
0.018280448913574218,
0.016883712768554687,
0.016705535888671876,
0.0167587833404541,
0.016875520706176757,
0.0165980167388916,
0.016582656860351562,
0.01658060836791992,
0.01658880043029785,
0.016691200256347655,
0.016578559875488282,
0.016710655212402344,
0.016662527084350585,
0.016687103271484375,
0.016709632873535156,
0.01676697540283203,
0.016907264709472656,
0.016744447708129884,
0.01660825538635254,
0.016489471435546875,
0.016530431747436524,
0.016671743392944336,
0.017035263061523438
]
},
"throughput": {
"unit": "tokens/s",
"value": 57.142217078516964
},
"energy": null,
"efficiency": null
}
}
}