IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2762553
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": {}, | |
"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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.7712, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "01e4e599381bbd166de56057d1649aba9e7d2100", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"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": 1115.938816, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.758403945000026, | |
"mean": 4.758403945000026, | |
"stdev": 0.0, | |
"p50": 4.758403945000026, | |
"p90": 4.758403945000026, | |
"p95": 4.758403945000026, | |
"p99": 4.758403945000026, | |
"values": [ | |
4.758403945000026 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.732362742777696e-05, | |
"ram": 2.8154911047942864e-06, | |
"gpu": 0, | |
"total": 7.013911853257125e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.662464, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6480456120000895, | |
"mean": 0.046288972285720674, | |
"stdev": 0.002068530040734468, | |
"p50": 0.04688018050001119, | |
"p90": 0.04796604880000075, | |
"p95": 0.048056616750012895, | |
"p99": 0.04814439535002094, | |
"values": [ | |
0.04584382600000936, | |
0.04789258099998506, | |
0.04778722500000754, | |
0.04568549100000041, | |
0.048166340000022956, | |
0.04751081200001295, | |
0.04629168700000719, | |
0.04658995100001562, | |
0.047997535000007474, | |
0.04636012400001732, | |
0.0475619659999893, | |
0.04717041000000677, | |
0.041537317000006624, | |
0.04165034700000092 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.20683526207741 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.60613314555557e-06, | |
"ram": 6.715999814132228e-08, | |
"gpu": 0.0, | |
"total": 1.673293143696892e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1195247.8306229701 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.186752, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.4074437369999373, | |
"mean": 0.029103124071424093, | |
"stdev": 0.0011486663430676865, | |
"p50": 0.029430562000001714, | |
"p90": 0.029834377599988214, | |
"p95": 0.03004172809998664, | |
"p99": 0.030259018419982624, | |
"values": [ | |
0.029630531999998766, | |
0.029291583000002674, | |
0.029440160000007154, | |
0.029895474999989347, | |
0.029092163000001392, | |
0.029614813999984335, | |
0.02917393500001708, | |
0.03031334099998162, | |
0.029420963999996275, | |
0.029691816999985576, | |
0.029678412000009757, | |
0.02871475099999543, | |
0.028087266999989424, | |
0.025398522999978468 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.360572340819054 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.648286141666039e-07, | |
"ram": 4.034659983625354e-08, | |
"gpu": 0.0, | |
"total": 1.0051752140028581e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 994851.4309438161 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40091280499996174, | |
"mean": 0.028636628928568695, | |
"stdev": 0.0011048120389506783, | |
"p50": 0.028916862499997364, | |
"p90": 0.02931584469999109, | |
"p95": 0.029528276599990022, | |
"p99": 0.029776470519982466, | |
"values": [ | |
0.029173243000002458, | |
0.028804378000018005, | |
0.02895446700000548, | |
0.029361222999995107, | |
0.028575883999991447, | |
0.02915976799999953, | |
0.028696358000019018, | |
0.02983851899998058, | |
0.02887925799998925, | |
0.029209961999981715, | |
0.02917954500000519, | |
0.02837708399999883, | |
0.027622012999984236, | |
0.02508110299999089 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.92031141285531 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |