IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e805516 verified
raw
history blame
8.27 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"model": "openai-community/gpt2",
"processor": "openai-community/gpt2",
"device": "cpu",
"device_ids": null,
"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": false,
"device_isolation_action": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.338112,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1022-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "d920fe9626db1e7915f6d3574b5b54b0159cd100",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": 948.219904,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6244059869999319,
"mean": 0.04803122976922553,
"stdev": 0.002659991941552128,
"p50": 0.04875405600000704,
"p90": 0.0509883479999985,
"p95": 0.0511371429999997,
"p99": 0.05124176619999503,
"values": [
0.050685386000026256,
0.05104995700000359,
0.05074191199997813,
0.050600597999988395,
0.049124685999998974,
0.05126792199999386,
0.04875405600000704,
0.04520847499998126,
0.046204921999986936,
0.04494297899998401,
0.047219673999990164,
0.043867823999988786,
0.04473759600000449
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.63957511830013
},
"energy": {
"unit": "kWh",
"cpu": 1.7411278065851922e-06,
"ram": 7.276344239316366e-08,
"gpu": 0.0,
"total": 1.8138912489783558e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1102601.9344469889
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 948.219904,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.389256606000032,
"mean": 0.029942815846156306,
"stdev": 0.0020771328080415974,
"p50": 0.02917561000001001,
"p90": 0.032512111200014716,
"p95": 0.03256633820001298,
"p99": 0.03259535564000089,
"values": [
0.03260260999999787,
0.03081702000000064,
0.03254215700002305,
0.03225978099999338,
0.03239192799998136,
0.031995488000006844,
0.028002361999995173,
0.02917561000001001,
0.028242559999995365,
0.027993085000019846,
0.027426657999995996,
0.02823492600001032,
0.027572421000002123
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.39699262547373
},
"energy": {
"unit": "kWh",
"cpu": 1.04916032385711e-06,
"ram": 4.3847111288990186e-08,
"gpu": 0.0,
"total": 1.0930074351461e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 914906.8595917942
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9307644740000001,
"mean": 0.07756370616666668,
"stdev": 0.0044240471243253265,
"p50": 0.07580525899999202,
"p90": 0.08325035319999471,
"p95": 0.08329273979999101,
"p99": 0.08329807435998844,
"values": [
0.08186743799998908,
0.0832994079999878,
0.0829179760000045,
0.08149807000000919,
0.08328728399999363,
0.07693897900000479,
0.07436066100001426,
0.07451188199999592,
0.07296351499999787,
0.07467153899997925,
0.07212025300000846,
0.0723274690000153
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.892627872258045
},
"energy": null,
"efficiency": null
}
}
}