IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4b5393c
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"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": {}, | |
"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": 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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "f8ef06bf0d6374aaf9ec320316fa57371b562761", | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1112.477696, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.799687033999987, | |
"mean": 4.799687033999987, | |
"stdev": 0.0, | |
"p50": 4.799687033999987, | |
"p90": 4.799687033999987, | |
"p95": 4.799687033999987, | |
"p99": 4.799687033999987, | |
"values": [ | |
4.799687033999987 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.71188591888883e-05, | |
"ram": 2.80529020605764e-06, | |
"gpu": 0, | |
"total": 6.992414939494595e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.9392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6444554730001073, | |
"mean": 0.04296369820000715, | |
"stdev": 0.0016639883916527763, | |
"p50": 0.042570687000022644, | |
"p90": 0.0453227813999888, | |
"p95": 0.04677160119998689, | |
"p99": 0.04711504583998931, | |
"values": [ | |
0.042876467000041885, | |
0.042240452999976696, | |
0.04220666000003348, | |
0.042072570000016185, | |
0.042590225000026294, | |
0.042570687000022644, | |
0.04243960300004801, | |
0.04185637799997721, | |
0.046587612999985595, | |
0.04720090699998991, | |
0.042895306999980676, | |
0.0431605410000202, | |
0.043425533999993604, | |
0.04103355299997702, | |
0.04129897500001789 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.55092749905936 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.64239069004633e-06, | |
"ram": 6.863793923774453e-08, | |
"gpu": 0.0, | |
"total": 1.7110286292840745e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1168887.5134934688 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 966.725632, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39275049599996237, | |
"mean": 0.02618336639999749, | |
"stdev": 0.0010770062730332348, | |
"p50": 0.025851988999988862, | |
"p90": 0.027505198199980894, | |
"p95": 0.02847147349999659, | |
"p99": 0.0290229475000001, | |
"values": [ | |
0.026498933999960173, | |
0.02639552100004039, | |
0.025851988999988862, | |
0.025831580999977177, | |
0.025991057999988243, | |
0.02558782699998119, | |
0.025842511999996987, | |
0.025704974999996466, | |
0.029160816000000978, | |
0.02607979700002261, | |
0.026280841000016153, | |
0.02817604099999471, | |
0.025139444999979332, | |
0.025031193000017993, | |
0.025177966000001106 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.19218601318186 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.579785343981127e-07, | |
"ram": 4.003556794528041e-08, | |
"gpu": 0.0, | |
"total": 9.98014102343393e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1001989.8492936563 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3869884049997836, | |
"mean": 0.02579922699998557, | |
"stdev": 0.0010200393967830935, | |
"p50": 0.02550335999995923, | |
"p90": 0.027029371999969954, | |
"p95": 0.027928745899981774, | |
"p99": 0.028494700379993673, | |
"values": [ | |
0.026135095999961777, | |
0.02604572000001326, | |
0.02550335999995923, | |
0.025455329999999776, | |
0.025642849000007573, | |
0.025225472999977683, | |
0.02550066499998138, | |
0.025330859000007422, | |
0.028636188999996648, | |
0.0256929060000175, | |
0.02587284099996623, | |
0.027625555999975404, | |
0.02476956599997493, | |
0.024702079999997295, | |
0.024849914999947487 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.76085124568109 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |