IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b297afd verified
raw
history blame
8.53 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.342208,
"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": "3b8c49a169ebd79001b2a83fbf2b332612417102",
"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": 956.985344,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6619469620000586,
"mean": 0.044129797466670576,
"stdev": 0.002180577741411704,
"p50": 0.043776980000018284,
"p90": 0.04781995980001739,
"p95": 0.048631943099991304,
"p99": 0.04880535661996532,
"values": [
0.04884870999995883,
0.04853904300000522,
0.043825962000028085,
0.04322396699996034,
0.04261489099997107,
0.04489405600003238,
0.043776980000018284,
0.042662579000023015,
0.04390447699995548,
0.04674133500003563,
0.0427032950000239,
0.04433308800003033,
0.041481443999998646,
0.04194865600004505,
0.042448478999972394
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.32085155184585
},
"energy": {
"unit": "kWh",
"cpu": 1.6324496379605049e-06,
"ram": 6.821928384880493e-08,
"gpu": 0.0,
"total": 1.7006689218093096e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1176007.8486483057
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.985344,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3971508969999604,
"mean": 0.02647672646666403,
"stdev": 0.0011445116238779911,
"p50": 0.026342206000038004,
"p90": 0.027135782200002723,
"p95": 0.0282082983000123,
"p99": 0.029789475660006698,
"values": [
0.0301847700000053,
0.026545234000025175,
0.026655189999985396,
0.026127936000023055,
0.026617179000027136,
0.026797596999983853,
0.02609939299998132,
0.026398731999961456,
0.026342206000038004,
0.026330413999971825,
0.027361239000015303,
0.025051926999992702,
0.025565955999979906,
0.02543549299997494,
0.025637630999995054
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.76901956739505
},
"energy": {
"unit": "kWh",
"cpu": 9.56197055401625e-07,
"ram": 3.9965275882281064e-08,
"gpu": 0.0,
"total": 9.961623312839072e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1003852.4531550462
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.9805076190000364,
"mean": 0.0700362585000026,
"stdev": 0.002102027039272845,
"p50": 0.06975170500001582,
"p90": 0.07267594009999244,
"p95": 0.07386498314999983,
"p99": 0.07501496783000278,
"values": [
0.07530246400000351,
0.07049988800002893,
0.06935783399995898,
0.06924855100004379,
0.07170757199997979,
0.06985371000001805,
0.06911311799996156,
0.07027120899999773,
0.07309095499999785,
0.06985858000001599,
0.06964970000001358,
0.06704113899996855,
0.06742579700005535,
0.06808710199999268
]
},
"throughput": {
"unit": "tokens/s",
"value": 14.278318422734745
},
"energy": null,
"efficiency": null
}
}
}