IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
213ed0e verified
raw
history blame
8.38 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": "ebd20fcf042acf5db8d8956e7057fa93c82e14ab",
"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.99296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6701768840000284,
"mean": 0.04786977742857346,
"stdev": 0.00282128202830088,
"p50": 0.04752193899999213,
"p90": 0.05184874690001778,
"p95": 0.05323856760001462,
"p99": 0.054025533520003534,
"values": [
0.054222275000000764,
0.05270887900002208,
0.04782188300001167,
0.04759439899999052,
0.04666528300001005,
0.0447089589999905,
0.047449478999993744,
0.046018246000016916,
0.04387489600000549,
0.046282636999990245,
0.04874061300000676,
0.04984177200000772,
0.04508650799999714,
0.0491610549999848
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.78001460282956
},
"energy": {
"unit": "kWh",
"cpu": 1.7351390083054991e-06,
"ram": 7.25103301635254e-08,
"gpu": 0.0,
"total": 1.8076493384690245e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1106409.2783027738
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 957.99296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3997737689999781,
"mean": 0.028555269214284147,
"stdev": 0.0017813621548918865,
"p50": 0.027907034500003647,
"p90": 0.030869467199988777,
"p95": 0.03154734449999523,
"p99": 0.032352039299998976,
"values": [
0.032553212999999914,
0.03055153699997959,
0.02670569899999009,
0.028415061000004016,
0.026916048999993336,
0.027153041000019584,
0.02772089800001254,
0.0276386349999882,
0.028093170999994754,
0.027548748000015166,
0.03039093799998227,
0.031005722999992713,
0.028581250000002,
0.0264998060000039
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.01980641456436
},
"energy": {
"unit": "kWh",
"cpu": 1.0264284253696313e-06,
"ram": 4.28985770924131e-08,
"gpu": 0.0,
"total": 1.0693270024620442e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 935167.631320986
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9835919289999993,
"mean": 0.07566091761538456,
"stdev": 0.003314717863819272,
"p50": 0.07467763100001434,
"p90": 0.08051302559999271,
"p95": 0.08186419059999252,
"p99": 0.08306809251999539,
"values": [
0.0833690679999961,
0.07467763100001434,
0.07595200200000818,
0.07364602299998069,
0.07186012700000788,
0.07518511399999284,
0.073666750000001,
0.07197369700000422,
0.07387429499999598,
0.07912137200000302,
0.08086093899999014,
0.07369755300001657,
0.07570735799998829
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.21686323027973
},
"energy": null,
"efficiency": null
}
}
}