IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
933135c
verified
{ | |
"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.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": "50da7b73412b5fcfdb3831f32e0f2c5b8acaf7cf", | |
"transformers_version": "4.42.3", | |
"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": 962.06848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6442333580000366, | |
"mean": 0.04294889053333577, | |
"stdev": 0.0033313548716193075, | |
"p50": 0.045148796999995966, | |
"p90": 0.046343429600005946, | |
"p95": 0.04659896879999224, | |
"p99": 0.046630472159988584, | |
"values": [ | |
0.04598543600002358, | |
0.045148796999995966, | |
0.04658209199999419, | |
0.04408837700000845, | |
0.04554947399998355, | |
0.04562140999999542, | |
0.04570151000001488, | |
0.045319669999997814, | |
0.04663834799998767, | |
0.03941107500000385, | |
0.039141784000008784, | |
0.03893678800000089, | |
0.038733553000014354, | |
0.03867448200000467, | |
0.03870056200000249 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.56697705491727 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.542007209908249e-06, | |
"ram": 6.444267440329555e-08, | |
"gpu": 0.0, | |
"total": 1.6064498843115445e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1244981.2593171024 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 962.06848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.40373973399991314, | |
"mean": 0.026915982266660875, | |
"stdev": 0.002197365852444602, | |
"p50": 0.028289878000009594, | |
"p90": 0.029012218200006146, | |
"p95": 0.029146122900007752, | |
"p99": 0.029191344580003147, | |
"values": [ | |
0.028777608999973836, | |
0.028768861999992623, | |
0.02884770000000003, | |
0.029202650000001995, | |
0.02806632600001535, | |
0.029121897000010222, | |
0.028333420999985037, | |
0.028765505999984953, | |
0.028289878000009594, | |
0.02415629799997987, | |
0.024169814000003953, | |
0.02492124099998705, | |
0.023830584999984694, | |
0.024493984999992335, | |
0.023993961999991598 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.15264745283462 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.204057865163199e-07, | |
"ram": 3.8463325585187395e-08, | |
"gpu": 0.0, | |
"total": 9.588691121015078e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1042895.2057996191 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39759017099993343, | |
"mean": 0.026506011399995564, | |
"stdev": 0.0021239884895784857, | |
"p50": 0.027801487000004954, | |
"p90": 0.02856334540000489, | |
"p95": 0.028697773800007553, | |
"p99": 0.02872329636000245, | |
"values": [ | |
0.02829623999997466, | |
0.02828890699998965, | |
0.028382211999996798, | |
0.028729677000001175, | |
0.02762820000000943, | |
0.028684101000010287, | |
0.027864655999991328, | |
0.028268257999997104, | |
0.027801487000004954, | |
0.023851963999987902, | |
0.02385916800000132, | |
0.02457458699998938, | |
0.023518735999999762, | |
0.02416567599999553, | |
0.023676301999984162 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.72729079865133 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |