IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b52ed61 verified
raw
history blame
8.52 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.342208,
"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": "d7339efdbbcababd22ca2f563771622060764f8f",
"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": 957.7472,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6495224139999607,
"mean": 0.04330149426666405,
"stdev": 0.0011315971338525784,
"p50": 0.04311687599999914,
"p90": 0.04458205979998411,
"p95": 0.045031404299987796,
"p99": 0.0457870632599986,
"values": [
0.044515268999987256,
0.04307617100002403,
0.04334875800000759,
0.043221029999983784,
0.042728984999996555,
0.04270609200000308,
0.04311687599999914,
0.045975978000001305,
0.04462658699998201,
0.04329140199999415,
0.042861270999992485,
0.04242945799998665,
0.04442864800000734,
0.04170012000000156,
0.04149576899999374
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.187782520468666
},
"energy": {
"unit": "kWh",
"cpu": 1.688671719144892e-06,
"ram": 7.057252887804566e-08,
"gpu": 0.0,
"total": 1.7592442480229379e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1136851.8056816878
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 957.7472,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4010198910000611,
"mean": 0.026734659400004072,
"stdev": 0.0008285951985799797,
"p50": 0.026552226999996265,
"p90": 0.027581553200008102,
"p95": 0.02824474420000058,
"p99": 0.02893224163998809,
"values": [
0.026632567000007157,
0.026574689000000262,
0.026927196000002596,
0.02646976400001222,
0.026087232000008953,
0.027139220000009345,
0.027876442000007273,
0.02649163300000623,
0.026485814000011487,
0.0270053300000086,
0.026552226999996265,
0.02617345200002319,
0.02910411599998497,
0.026044461999987334,
0.0254557469999952
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.40462839036011
},
"energy": {
"unit": "kWh",
"cpu": 1.0297779794092536e-06,
"ram": 4.3036892500168716e-08,
"gpu": 0.0,
"total": 1.0728148719094218e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 932127.2720802014
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.9796396160000143,
"mean": 0.06997425828571531,
"stdev": 0.0016961246556955753,
"p50": 0.06977705949999802,
"p90": 0.07224189719998719,
"p95": 0.07301124244999216,
"p99": 0.07346308449000645,
"values": [
0.06968002400000728,
0.07028198500000826,
0.06971998800000279,
0.06882983200000581,
0.06983413099999325,
0.07079384700000446,
0.07270711799998253,
0.07115638199999808,
0.07027797800000712,
0.06945445400000949,
0.06859875199998555,
0.07357604500001003,
0.06776091300000076,
0.06696816699999886
]
},
"throughput": {
"unit": "tokens/s",
"value": 14.29096962938644
},
"energy": null,
"efficiency": null
}
}
}