IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d170e2f verified
raw
history blame
13.5 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+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",
"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.12",
"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.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1071.214592,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.49100483512878423,
"mean": 0.009092682132014522,
"stdev": 0.00032725285397616907,
"p50": 0.009035984039306642,
"p90": 0.009451321697235107,
"p95": 0.009731431865692136,
"p99": 0.010070791501998902,
"values": [
0.009638527870178222,
0.00945740795135498,
0.00943712043762207,
0.009990943908691406,
0.009406944274902344,
0.009312800407409668,
0.009022560119628906,
0.009144191741943359,
0.009096832275390624,
0.009161215782165527,
0.009094271659851074,
0.008968000411987304,
0.009064864158630372,
0.00893388843536377,
0.00901574420928955,
0.009038304328918457,
0.009241472244262696,
0.009215840339660645,
0.008975168228149415,
0.009106559753417969,
0.009033663749694824,
0.008998496055603027,
0.009116640090942383,
0.00890713596343994,
0.008963520050048829,
0.009022944450378418,
0.00990396785736084,
0.010160832405090333,
0.009460800170898438,
0.009384320259094239,
0.00922719955444336,
0.00934438419342041,
0.008944064140319825,
0.00919491195678711,
0.009250944137573242,
0.009165247917175294,
0.009136480331420898,
0.009160575866699218,
0.008872384071350098,
0.008539615631103515,
0.008531423568725586,
0.008501279830932617,
0.008823519706726074,
0.008951583862304687,
0.008854784011840821,
0.008796735763549805,
0.008792032241821289,
0.008776288032531738,
0.008816672325134276,
0.008797504425048829,
0.008825823783874512,
0.008813632011413575,
0.008764960289001466,
0.008847807884216309
]
},
"throughput": {
"unit": "tokens/s",
"value": 219.95710077207897
},
"energy": {
"unit": "kWh",
"cpu": 1.0462764498086004e-07,
"ram": 5.7198372106588634e-08,
"gpu": 1.854655479824561e-07,
"total": 3.472915650699048e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5758849.91504884
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1071.214592,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.5112353887557983,
"mean": 0.009467322013996268,
"stdev": 0.000668344347474503,
"p50": 0.009374959945678711,
"p90": 0.009725078296661378,
"p95": 0.009892014265060424,
"p99": 0.012022918033599849,
"values": [
0.009655391693115235,
0.009865056037902832,
0.009709919929504394,
0.009721920013427735,
0.009726431846618653,
0.009649151802062989,
0.009418368339538574,
0.009453696250915527,
0.009339360237121582,
0.009450016021728515,
0.009461983680725098,
0.009378848075866699,
0.009498975753784179,
0.009306591987609863,
0.009339488029479981,
0.009374400138854981,
0.009519359588623048,
0.009454431533813477,
0.009416128158569336,
0.009375519752502441,
0.00926803207397461,
0.00934614372253418,
0.009485343933105468,
0.009299424171447754,
0.009329279899597169,
0.010370623588562012,
0.013886143684387207,
0.009942079544067383,
0.00965881633758545,
0.009615455627441406,
0.009551584243774414,
0.009462047576904296,
0.009433952331542969,
0.009514592170715331,
0.009853376388549804,
0.00925984001159668,
0.00933852767944336,
0.009195199966430664,
0.009143360137939453,
0.008791328430175781,
0.00894108772277832,
0.008839391708374023,
0.009218239784240722,
0.009153247833251953,
0.009138879776000976,
0.009114975929260255,
0.009124256134033204,
0.009178367614746094,
0.009133664131164551,
0.009107007980346679,
0.009101663589477539,
0.009101408004760742,
0.00909500789642334,
0.009128000259399414
]
},
"throughput": {
"unit": "tokens/s",
"value": 105.6264906297286
},
"energy": {
"unit": "kWh",
"cpu": 1.0030744257389619e-07,
"ram": 5.485893523245896e-08,
"gpu": 2.2004243925892832e-07,
"total": 3.7520881706528356e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2665182.57172514
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 53,
"total": 0.984847354888916,
"mean": 0.018582025563941815,
"stdev": 0.0008996584676601505,
"p50": 0.01846681594848633,
"p90": 0.01918443489074707,
"p95": 0.019545293045043943,
"p99": 0.02195738655090331,
"values": [
0.019363840103149413,
0.019141632080078123,
0.019817472457885742,
0.019171327590942384,
0.018980863571166993,
0.01846681594848633,
0.01862041664123535,
0.018523136138916017,
0.0186060791015625,
0.01862348747253418,
0.018395135879516602,
0.0186060791015625,
0.01826304054260254,
0.018365440368652345,
0.01846784019470215,
0.01879347229003906,
0.018684928894042968,
0.018440191268920898,
0.018522111892700196,
0.01835212707519531,
0.01836851119995117,
0.018651136398315428,
0.018241535186767577,
0.018325504302978517,
0.019324928283691405,
0.023641088485717773,
0.020403200149536133,
0.019187711715698243,
0.01903718376159668,
0.018803712844848632,
0.01892767906188965,
0.018379711151123048,
0.018735103607177735,
0.0191016960144043,
0.018546688079833985,
0.018490367889404297,
0.01840025520324707,
0.018067520141601564,
0.017385408401489257,
0.017497087478637697,
0.017348608016967772,
0.01807155227661133,
0.018130943298339842,
0.01802649688720703,
0.017934335708618163,
0.017938432693481447,
0.0179814395904541,
0.017987583160400392,
0.017932287216186525,
0.017937408447265626,
0.01794867134094238,
0.017881088256835938,
0.01800704002380371
]
},
"throughput": {
"unit": "tokens/s",
"value": 53.815446360190535
},
"energy": null,
"efficiency": null
}
}
}