IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4abf556 verified
raw
history blame
9.52 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": "d2926dc8aa35620c7c4e47f90f87593f48ecd36c",
"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": 1109.725184,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.841675405000018,
"mean": 4.841675405000018,
"stdev": 0.0,
"p50": 4.841675405000018,
"p90": 4.841675405000018,
"p95": 4.841675405000018,
"p99": 4.841675405000018,
"values": [
4.841675405000018
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.806791320000009e-05,
"ram": 2.845055985572642e-06,
"gpu": 0,
"total": 7.091296918557273e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 963.33824,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.632009714999981,
"mean": 0.045143551071427215,
"stdev": 0.0012141322061847508,
"p50": 0.04502982300000724,
"p90": 0.046685247599995705,
"p95": 0.04704880284999291,
"p99": 0.04758479336999386,
"values": [
0.04560614599998303,
0.04480020900001591,
0.044983411000004025,
0.04481740200000672,
0.045076235000010456,
0.044714077000008956,
0.04515418099998669,
0.04520650899999623,
0.04667873200000372,
0.044213942999988376,
0.04668803999999227,
0.0477187909999941,
0.043181798999995635,
0.04317023999999492
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.30311644814011
},
"energy": {
"unit": "kWh",
"cpu": 1.728545130193267e-06,
"ram": 7.223829541483007e-08,
"gpu": 0.0,
"total": 1.8007834256080971e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1110627.7254437916
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 963.9936,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.38268583400005696,
"mean": 0.027334702428575497,
"stdev": 0.0007278307627948566,
"p50": 0.027353154000010704,
"p90": 0.028039480700005014,
"p95": 0.02834374035000593,
"p99": 0.02875260647001511,
"values": [
0.028068541999999752,
0.02711509099998466,
0.02726598099999933,
0.027504395999983444,
0.027173508000004176,
0.026547096999991027,
0.02744032700002208,
0.027802884999999833,
0.02781593000000271,
0.027971671000017295,
0.026743723999999247,
0.028854823000017404,
0.026137840000018286,
0.026244019000017715
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.58353342652845
},
"energy": {
"unit": "kWh",
"cpu": 1.011683917954891e-06,
"ram": 4.2281285749892914e-08,
"gpu": 0.0,
"total": 1.0539652037047842e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 948797.9266155168
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3774958080000488,
"mean": 0.02696398628571777,
"stdev": 0.0007027141625480858,
"p50": 0.026973639499999535,
"p90": 0.027682557700020993,
"p95": 0.027958901500015544,
"p99": 0.02829519070000714,
"values": [
0.0277325530000212,
0.02676926399999502,
0.026918340999998236,
0.027134784999987005,
0.02680248400000096,
0.0261920929999917,
0.027028938000000835,
0.0274470699999938,
0.027433034000011958,
0.027565902000020515,
0.02638381100001652,
0.02837926300000504,
0.025789008000003832,
0.025919262000002163
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.086504547351666
},
"energy": null,
"efficiency": null
}
}
}