IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
26411b5 verified
raw
history blame
8.4 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": "88e73025c13ec1a964328bd3aa8fa3b1b8ab2582",
"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.7232,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6426431200000025,
"mean": 0.04590308000000017,
"stdev": 0.0023141308651287917,
"p50": 0.04724665550000395,
"p90": 0.047749331000014196,
"p95": 0.047856249050013844,
"p99": 0.04789325380999969,
"values": [
0.04783134200002337,
0.04718508600001314,
0.047315970999989077,
0.04721622400001024,
0.047902504999996154,
0.047514350999989574,
0.047277086999997664,
0.04755797199999279,
0.047354052000002866,
0.046329517999993186,
0.04213001700000518,
0.04205513799999494,
0.04248924800000964,
0.04248460899998463
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.5700610939395
},
"energy": {
"unit": "kWh",
"cpu": 1.6465273720246775e-06,
"ram": 6.881037688188485e-08,
"gpu": 0.0,
"total": 1.7153377489065623e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1165951.1377714942
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.7232,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3961856260000616,
"mean": 0.028298973285718683,
"stdev": 0.0016748824164672764,
"p50": 0.029304574000008188,
"p90": 0.029883548900011193,
"p95": 0.029988212750004094,
"p99": 0.0300201225499859,
"values": [
0.03002809999998135,
0.029689447999999174,
0.029354562000008855,
0.02923701299999948,
0.02932420600001251,
0.02934337199999959,
0.029966735000016342,
0.0295486650000214,
0.029284942000003866,
0.02603877100000318,
0.025967307000001938,
0.025941799000008814,
0.02657586300000503,
0.025884843000000046
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.33697105911113
},
"energy": {
"unit": "kWh",
"cpu": 9.655033107157113e-07,
"ram": 4.035060633142961e-08,
"gpu": 0.0,
"total": 1.0058539170471406e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 994180.1518610916
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.961374568999986,
"mean": 0.07395188992307584,
"stdev": 0.0038826387865823686,
"p50": 0.07666708599998628,
"p90": 0.07718708860001015,
"p95": 0.07721647340000004,
"p99": 0.07723723867998729,
"values": [
0.0768888499999889,
0.07667953899999702,
0.07647143100001585,
0.0772424299999841,
0.07690661399999499,
0.07719916900001067,
0.0771387670000081,
0.07666708599998628,
0.07258957300001612,
0.06813339100000348,
0.06800368999998341,
0.0690717530000029,
0.06838227599999414
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.522304853063146
},
"energy": null,
"efficiency": null
}
}
}