IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8aadbe2 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": "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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "712b269a3b6d61a1322007f38975568cf51222c7",
"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": 1120.407552,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.843946509999995,
"mean": 4.843946509999995,
"stdev": 0.0,
"p50": 4.843946509999995,
"p90": 4.843946509999995,
"p95": 4.843946509999995,
"p99": 4.843946509999995,
"values": [
4.843946509999995
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.791260906111095e-05,
"ram": 2.8385729760189215e-06,
"gpu": 0,
"total": 7.075118203712986e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 973.881344,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.660474444000215,
"mean": 0.04403162960001434,
"stdev": 0.0024519331834574544,
"p50": 0.043054643000004944,
"p90": 0.047120095400021,
"p95": 0.0476585563000242,
"p99": 0.04830474646003381,
"values": [
0.0426397159999965,
0.04329123500002652,
0.043054643000004944,
0.0425270250000267,
0.048466294000036214,
0.047312383000019054,
0.04652550000002975,
0.04683166400002392,
0.045940364999978556,
0.04587443100001565,
0.04200827400001117,
0.04117562400000452,
0.040958447999969394,
0.040826362000018435,
0.04304248000005373
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.42189371976704
},
"energy": {
"unit": "kWh",
"cpu": 1.6305878150463012e-06,
"ram": 6.81440717380331e-08,
"gpu": 0.0,
"total": 1.6987318867843343e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1177348.8303595455
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.536704,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.403249100999858,
"mean": 0.026883273399990533,
"stdev": 0.0016049146547963916,
"p50": 0.02633841800002301,
"p90": 0.02897167199997739,
"p95": 0.02928287489996819,
"p99": 0.02971459177997076,
"values": [
0.026306247999968946,
0.02670706800000744,
0.02633841800002301,
0.02697938799997246,
0.029822520999971402,
0.028851782999993247,
0.029051597999966816,
0.02843987199997855,
0.02875654500002156,
0.02516494200000352,
0.024897119999991446,
0.025700633999974798,
0.02531520200000159,
0.02540677299998606,
0.025510988999997153
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.19785106230226
},
"energy": {
"unit": "kWh",
"cpu": 1.0095783253240302e-06,
"ram": 4.219169983665909e-08,
"gpu": 0.0,
"total": 1.051770025160689e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 950778.1892217555
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39717998799983434,
"mean": 0.026478665866655624,
"stdev": 0.0015162367482645788,
"p50": 0.026004794000016318,
"p90": 0.02842896199998677,
"p95": 0.028738930399981655,
"p99": 0.029184157279973987,
"values": [
0.025948137000000315,
0.02627900699997099,
0.026004794000016318,
0.026590479999981653,
0.02929546399997207,
0.028321780999988277,
0.028500415999985762,
0.027918935999991845,
0.028252851999980066,
0.024848578999979054,
0.02458597700001519,
0.02535622999999987,
0.024996134999980768,
0.025080773000013323,
0.025200426999958836
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.76625321819149
},
"energy": null,
"efficiency": null
}
}
}