IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c291f02 verified
raw
history blame
9.64 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+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": "warn",
"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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "f9861fced16a3dc82c7a05e66fd9a3b22cd9c663",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1119.752192,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.778488150000015,
"mean": 4.778488150000015,
"stdev": 0.0,
"p50": 4.778488150000015,
"p90": 4.778488150000015,
"p95": 4.778488150000015,
"p99": 4.778488150000015,
"values": [
4.778488150000015
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.711266831111087e-05,
"ram": 2.8051401720676365e-06,
"gpu": 0,
"total": 6.99178084831785e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 973.344768,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6505426510000234,
"mean": 0.043369510066668227,
"stdev": 0.0025556529946603973,
"p50": 0.044726181000015686,
"p90": 0.045880758799989964,
"p95": 0.04622811439998315,
"p99": 0.046709259679994945,
"values": [
0.04682954599999789,
0.04525169400000095,
0.04495366699998726,
0.04597035799997684,
0.04482691000001182,
0.045746360000009645,
0.04528572799998187,
0.044726181000015686,
0.04433031100001017,
0.03990263000000027,
0.040715239999997266,
0.039863306000000875,
0.03974636800001008,
0.04278618300000403,
0.039608169000018734
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.115346862936
},
"energy": {
"unit": "kWh",
"cpu": 1.5921960164444487e-06,
"ram": 6.654073310486647e-08,
"gpu": 0.0,
"total": 1.6587367495493152e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1205736.835904436
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.1312,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4044218829999693,
"mean": 0.02696145886666462,
"stdev": 0.001560586162076632,
"p50": 0.027814101000018354,
"p90": 0.02842573660000767,
"p95": 0.028607283900001335,
"p99": 0.02885358477999773,
"values": [
0.028475337000003265,
0.027814101000018354,
0.028131865000005973,
0.0282125060000169,
0.02832224199997313,
0.02891515999999683,
0.02835133600001427,
0.02833872200000087,
0.02698872799999208,
0.02515835399998423,
0.025736354000002848,
0.02445768299998008,
0.025184523000007175,
0.025649391999991167,
0.02468557999998211
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.089981107676955
},
"energy": {
"unit": "kWh",
"cpu": 9.430444321667e-07,
"ram": 3.941259234001987e-08,
"gpu": 0.0,
"total": 9.824570245067198e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1017856.2268431928
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3981322499999749,
"mean": 0.026542149999998325,
"stdev": 0.0014711640921941085,
"p50": 0.02734383200001389,
"p90": 0.027908829600016817,
"p95": 0.02805701930000737,
"p99": 0.028278718259997504,
"values": [
0.027938252000012653,
0.02734383200001389,
0.027594359999994822,
0.0277252150000038,
0.02784023999998908,
0.028334142999995038,
0.02786469600002306,
0.02785859399998003,
0.026673036999994792,
0.02484375500000624,
0.025420172999986335,
0.024145368999995753,
0.024867911000001186,
0.025338410999978578,
0.024344261999999617
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.67592301302129
},
"energy": null,
"efficiency": null
}
}
}