IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1f8bf22
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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": "ac20e608e7d228c8f586461f4e0b478593db397e", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.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": 1110.806528, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.822264792999988, | |
"mean": 4.822264792999988, | |
"stdev": 0.0, | |
"p50": 4.822264792999988, | |
"p90": 4.822264792999988, | |
"p95": 4.822264792999988, | |
"p99": 4.822264792999988, | |
"values": [ | |
4.822264792999988 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.864538204999996e-05, | |
"ram": 2.8692070354097016e-06, | |
"gpu": 0, | |
"total": 7.151458908540966e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.42368, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6347773070000358, | |
"mean": 0.04231848713333572, | |
"stdev": 0.0009183000475150635, | |
"p50": 0.04215242399999397, | |
"p90": 0.04324019059999955, | |
"p95": 0.043818780299992, | |
"p99": 0.044698154459989044, | |
"values": [ | |
0.0430789460000085, | |
0.04247422200000983, | |
0.04235793600000193, | |
0.04215242399999397, | |
0.042042027999997345, | |
0.0449179979999883, | |
0.041842658000007305, | |
0.042513576000004605, | |
0.04234361999999692, | |
0.04168875100000946, | |
0.04183948100001089, | |
0.043347686999993584, | |
0.04203762000000211, | |
0.041207575000015595, | |
0.04093278499999542 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.260668693057596 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6039660279999899e-06, | |
"ram": 6.703305781372986e-08, | |
"gpu": 0.0, | |
"total": 1.6709990858137195e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1196888.745768564 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.947968, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3884300619999692, | |
"mean": 0.025895337466664614, | |
"stdev": 0.0008212758585713492, | |
"p50": 0.02580522200000246, | |
"p90": 0.026524024799994095, | |
"p95": 0.02716956709999749, | |
"p99": 0.0282190278199937, | |
"values": [ | |
0.025966574999984005, | |
0.026018169999986185, | |
0.026399027999985947, | |
0.02550691999999799, | |
0.026607355999999527, | |
0.02580522200000246, | |
0.025878138999985367, | |
0.025468797999991466, | |
0.025724964000005457, | |
0.025831041000003552, | |
0.025387096000002884, | |
0.02848139299999275, | |
0.025218633000008595, | |
0.025376988000004985, | |
0.024759739000018044 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.61699046352697 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.621609022083827e-07, | |
"ram": 4.021145014723405e-08, | |
"gpu": 0.0, | |
"total": 1.0023723523556173e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 997633.2623799508 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38283404800003495, | |
"mean": 0.025522269866668997, | |
"stdev": 0.0007732398938700743, | |
"p50": 0.025447116000009373, | |
"p90": 0.02604441440000187, | |
"p95": 0.026636052000003473, | |
"p99": 0.02770467759999974, | |
"values": [ | |
0.025614929999989045, | |
0.02566792799999007, | |
0.026063574000005474, | |
0.025162820000019792, | |
0.026015674999996463, | |
0.025447116000009373, | |
0.025527285999999094, | |
0.025106324000006452, | |
0.02534490700000447, | |
0.025486930999989, | |
0.025041804000011325, | |
0.027971833999998807, | |
0.02490620100002161, | |
0.02507141899999965, | |
0.02440529899999433 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.18146799732565 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |