IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
203f6d5 verified
raw
history blame
8.39 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cpu",
"device_ids": null,
"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": false,
"device_isolation_action": "error",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.346304,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "99006bdc98988288ce9079002c8f7a21bf6aa26d",
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 948.547584,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6211502870000061,
"mean": 0.04436787764285758,
"stdev": 0.000391442354453681,
"p50": 0.044403164500010917,
"p90": 0.04483030130000713,
"p95": 0.04499417425000587,
"p99": 0.045197034049999446,
"values": [
0.044397940000010294,
0.04453810100000055,
0.04446992300000829,
0.044857634000010194,
0.04383398199999533,
0.04403125899997917,
0.044766525,
0.04392052299999705,
0.04407735399999524,
0.04396065800000315,
0.04412389099999814,
0.04524774899999784,
0.044516358999999284,
0.04440838900001154
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.077657671596185
},
"energy": {
"unit": "kWh",
"cpu": 1.7364398868763507e-06,
"ram": 7.256484574970662e-08,
"gpu": 0.0,
"total": 1.8090047326260573e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1105580.302764981
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 948.547584,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3848824359999412,
"mean": 0.027491602571424373,
"stdev": 0.0010379555521635704,
"p50": 0.027129065500005822,
"p90": 0.02907766609998248,
"p95": 0.02930875804998436,
"p99": 0.029569841209992093,
"values": [
0.027383858999996846,
0.028948485999990226,
0.02754536999998436,
0.027251874000000953,
0.026474750000005542,
0.02700625700001069,
0.026788312000007863,
0.02691250299997705,
0.026829549000012776,
0.028209802999981548,
0.026584753000008732,
0.029635111999994024,
0.02913302899997916,
0.026178778999991437
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.37474379319855
},
"energy": {
"unit": "kWh",
"cpu": 1.044959204208447e-06,
"ram": 4.3673400253702705e-08,
"gpu": 0.0,
"total": 1.0886326044621504e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 918583.547747093
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9344986109999809,
"mean": 0.07188450853846007,
"stdev": 0.0013101302501385952,
"p50": 0.07158214800000451,
"p90": 0.07349100299999237,
"p95": 0.07406847779998883,
"p99": 0.07476033875998496,
"values": [
0.07349192699999207,
0.07201431000001435,
0.07215583400000014,
0.07033835599997929,
0.07103427000001261,
0.07158214800000451,
0.07086787000000072,
0.07093770999998128,
0.0721527080000044,
0.07073125600001617,
0.07493330399998399,
0.0734873069999935,
0.07077161099999785
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.911203127513547
},
"energy": null,
"efficiency": null
}
}
}