IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a273221 verified
raw
history blame
8.48 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_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": {},
"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.338112,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "505b3e98eac8c3f1b6ed5342e4f6e5336d513f21",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": 948.96128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6455541279999863,
"mean": 0.046111009142856166,
"stdev": 0.0028224188587120695,
"p50": 0.047533992000012404,
"p90": 0.04868762969999239,
"p95": 0.04915744459999729,
"p99": 0.04952879532001162,
"values": [
0.04890749699998764,
0.047128338000021586,
0.04793964600000322,
0.04633232899999484,
0.048057498000019905,
0.04796740800000521,
0.04962163300001521,
0.048095848999992086,
0.04817460600000345,
0.04568887599998561,
0.041997366999993346,
0.04250752199999397,
0.04184318999998027,
0.04129236899999
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.37358989051433
},
"energy": {
"unit": "kWh",
"cpu": 1.6181003782484268e-06,
"ram": 6.762274477716802e-08,
"gpu": 0.0,
"total": 1.685723123025595e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1186434.4581157134
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 948.96128,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3986589919999801,
"mean": 0.028475642285712865,
"stdev": 0.001844755366956021,
"p50": 0.029617539499994905,
"p90": 0.030149885499997708,
"p95": 0.030240472900004534,
"p99": 0.030266584180003518,
"values": [
0.02956217100000913,
0.02969498999999587,
0.02971235300000785,
0.02935331000000474,
0.02967290799998068,
0.02990128599998343,
0.02997952299998019,
0.030222898000005216,
0.030273112000003266,
0.02563137699999629,
0.02606662200000187,
0.0265317120000077,
0.0267406929999936,
0.025316037000010283
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.11773290191006
},
"energy": {
"unit": "kWh",
"cpu": 9.728503657711874e-07,
"ram": 4.065822607173311e-08,
"gpu": 0.0,
"total": 1.0135085918429204e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 986671.4579909411
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3924313830000301,
"mean": 0.02803081307143072,
"stdev": 0.0017586466693815265,
"p50": 0.02909460200000069,
"p90": 0.029651949300006208,
"p95": 0.02972975800001194,
"p99": 0.0297406884000074,
"values": [
0.029025748000009344,
0.02916345599999204,
0.029227065000014818,
0.02883280699998636,
0.02919623699997942,
0.029370873999994274,
0.0294875619999857,
0.029743421000006265,
0.029722401000014997,
0.02528448800001115,
0.025739430000015773,
0.02622290400000793,
0.026423480000005384,
0.024991510000006656
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.675026530686324
},
"energy": null,
"efficiency": null
}
}
}