IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9d98f5e
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": "adf196991e4ff390d05f45d4bbf35b6323346cad", | |
"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": 1120.763904, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.783624173000021, | |
"mean": 4.783624173000021, | |
"stdev": 0.0, | |
"p50": 4.783624173000021, | |
"p90": 4.783624173000021, | |
"p95": 4.783624173000021, | |
"p99": 4.783624173000021, | |
"values": [ | |
4.783624173000021 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.815196103333393e-05, | |
"ram": 2.8485723946258758e-06, | |
"gpu": 0, | |
"total": 7.100053342795981e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.368768, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6326576670000748, | |
"mean": 0.0451898333571482, | |
"stdev": 0.0014694095747897617, | |
"p50": 0.045552695500006735, | |
"p90": 0.04646602140000198, | |
"p95": 0.04662170520000188, | |
"p99": 0.046733469840004885, | |
"values": [ | |
0.04392768200000319, | |
0.04584714099999587, | |
0.046117507000019486, | |
0.044150408000007246, | |
0.04676141100000564, | |
0.045516062000018565, | |
0.04461808300001735, | |
0.04618966099999966, | |
0.04654647899999986, | |
0.045589328999994905, | |
0.04492131000000654, | |
0.04627828700000691, | |
0.04537134200000992, | |
0.04082296499998961 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.25774231547674 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5627481473333472e-06, | |
"ram": 6.530969022658746e-08, | |
"gpu": 0.0, | |
"total": 1.6280578375599347e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1228457.5853874558 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.1552, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39216916400002333, | |
"mean": 0.028012083142858808, | |
"stdev": 0.0012477329805548319, | |
"p50": 0.02839773550000757, | |
"p90": 0.02895691310000359, | |
"p95": 0.029049137000012593, | |
"p99": 0.02915478020001899, | |
"values": [ | |
0.02878436899999315, | |
0.02918119100002059, | |
0.02816305599998259, | |
0.028191270000007762, | |
0.02890557500001023, | |
0.02890763799999263, | |
0.027416190999986156, | |
0.028978031000008286, | |
0.02860420100000738, | |
0.028033614999998235, | |
0.0286081589999867, | |
0.02803059999999391, | |
0.025474881000008054, | |
0.02489038700002766 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.69888019038429 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.58487826625002e-07, | |
"ram": 4.0058415476375284e-08, | |
"gpu": 0.0, | |
"total": 9.98546242101377e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1001455.8743875133 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3858202600000311, | |
"mean": 0.02755859000000222, | |
"stdev": 0.0011963599154293338, | |
"p50": 0.027915303000000335, | |
"p90": 0.02844622189999768, | |
"p95": 0.02853839345000182, | |
"p99": 0.028673690690006595, | |
"values": [ | |
0.02833662099999401, | |
0.02870751500000779, | |
0.02769150399998921, | |
0.027635079999981826, | |
0.028443640999995523, | |
0.028447327999998606, | |
0.02694408799999337, | |
0.028441798000017116, | |
0.028154440000008663, | |
0.027576710000005278, | |
0.028139102000011462, | |
0.0275711900000033, | |
0.025149773000009645, | |
0.024581470000015315 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.286326695230755 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |