IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d03720c
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": "c2e7ced42ba50e7f8df99cc59a15fc2a011efbd6", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"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.790144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.8834411939999995, | |
"mean": 4.8834411939999995, | |
"stdev": 0.0, | |
"p50": 4.8834411939999995, | |
"p90": 4.8834411939999995, | |
"p95": 4.8834411939999995, | |
"p99": 4.8834411939999995, | |
"values": [ | |
4.8834411939999995 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.848555163333351e-05, | |
"ram": 2.8624908665047476e-06, | |
"gpu": 0, | |
"total": 7.134804249983827e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.79232, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6417447589999483, | |
"mean": 0.04278298393332989, | |
"stdev": 0.00140975373988699, | |
"p50": 0.04262504300001524, | |
"p90": 0.04453042760000585, | |
"p95": 0.04502845310000509, | |
"p99": 0.04583637462000695, | |
"values": [ | |
0.046038355000007414, | |
0.041868071999999756, | |
0.044432612000008476, | |
0.04211658899998838, | |
0.04207893800000306, | |
0.0445956380000041, | |
0.04180520499997442, | |
0.042997560999992857, | |
0.043962660999994796, | |
0.04264523099999451, | |
0.04217600999999149, | |
0.042975088999980926, | |
0.04082444499999838, | |
0.04262504300001524, | |
0.04060330999999451 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.74755746622687 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6242657650462902e-06, | |
"ram": 6.788054780440621e-08, | |
"gpu": 0.0, | |
"total": 1.6921463128506963e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1181930.8914432311 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.923392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38961659099999224, | |
"mean": 0.025974439399999483, | |
"stdev": 0.0009392007535710073, | |
"p50": 0.025784434000001966, | |
"p90": 0.027069689800009657, | |
"p95": 0.027655915299999376, | |
"p99": 0.02827057185998228, | |
"values": [ | |
0.02578153900000757, | |
0.02842423599997801, | |
0.02552493799998956, | |
0.026684272000011333, | |
0.025902858999984346, | |
0.02658212099998991, | |
0.025712409000021808, | |
0.025482287000016868, | |
0.026097601999993003, | |
0.025786587999988342, | |
0.027326635000008537, | |
0.025784434000001966, | |
0.02483200800000418, | |
0.02498995400000581, | |
0.024704708999991 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.4993872091045 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.572476609953808e-07, | |
"ram": 4.000724122717304e-08, | |
"gpu": 0.0, | |
"total": 9.972549022225542e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1002752.6540820486 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38421024199999465, | |
"mean": 0.025614016133332976, | |
"stdev": 0.0009019308823560398, | |
"p50": 0.025445467999986704, | |
"p90": 0.026715179400002852, | |
"p95": 0.027244273499997005, | |
"p99": 0.027755808299990577, | |
"values": [ | |
0.025413017999994736, | |
0.02788369199998897, | |
0.025172706999995853, | |
0.026332593000006455, | |
0.0255504980000012, | |
0.026228697999982842, | |
0.025334320000013122, | |
0.02514515500001835, | |
0.025755360000005112, | |
0.025445467999986704, | |
0.026970237000000452, | |
0.025450578000004498, | |
0.024505315999988397, | |
0.024659143000008044, | |
0.02436345899999992 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.04112478084384 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |