IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9f6f515
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": "64616c22a81fbd56113ffbadbf137b852c35ed9d", | |
"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": 1112.645632, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.950467392000007, | |
"mean": 4.950467392000007, | |
"stdev": 0.0, | |
"p50": 4.950467392000007, | |
"p90": 4.950467392000007, | |
"p95": 4.950467392000007, | |
"p99": 4.950467392000007, | |
"values": [ | |
4.950467392000007 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.834000790555593e-05, | |
"ram": 2.8564326818952276e-06, | |
"gpu": 0, | |
"total": 7.119644058745115e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 966.393856, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6611361660000057, | |
"mean": 0.05085662815384659, | |
"stdev": 0.0012930046284756879, | |
"p50": 0.051224338999986685, | |
"p90": 0.05230159719998255, | |
"p95": 0.05248883799997657, | |
"p99": 0.052558039599975924, | |
"values": [ | |
0.04786307099999476, | |
0.0515842230000203, | |
0.051457224999978735, | |
0.04962093400001777, | |
0.0524311699999771, | |
0.050253019000024324, | |
0.04959491500000013, | |
0.05257533999997577, | |
0.05178330600000436, | |
0.05177463000001126, | |
0.051141373000007206, | |
0.051224338999986685, | |
0.04983262100000729 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.32624070061806 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7504838268115958e-06, | |
"ram": 7.315417238116154e-08, | |
"gpu": 0.0, | |
"total": 1.8236379991927575e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1096708.8867885568 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 966.918144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.40202549100007445, | |
"mean": 0.030925037769236496, | |
"stdev": 0.0007395361593438771, | |
"p50": 0.031036017999952037, | |
"p90": 0.03153379640001504, | |
"p95": 0.03178197180003508, | |
"p99": 0.03205620156005125, | |
"values": [ | |
0.031553447000021606, | |
0.03138359000001856, | |
0.030391391000023305, | |
0.030703284000026088, | |
0.03212475900005529, | |
0.03136966299996402, | |
0.030182399000011628, | |
0.030894513000021107, | |
0.03145519399998875, | |
0.031036017999952037, | |
0.031190326999990248, | |
0.03070508799999061, | |
0.029035818000011204 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 32.336258001106685 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.111079592632804e-06, | |
"ram": 4.6433186177245114e-08, | |
"gpu": 0.0, | |
"total": 1.157512778810049e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 863921.3478299773 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3949340729999449, | |
"mean": 0.030379544076918837, | |
"stdev": 0.0007077057846822261, | |
"p50": 0.03044247599996197, | |
"p90": 0.030973785200001203, | |
"p95": 0.031228488400006426, | |
"p99": 0.031509118480003054, | |
"values": [ | |
0.030994630000009238, | |
0.030846623999991607, | |
0.029830971000023965, | |
0.030114089999983662, | |
0.03157927600000221, | |
0.03083530199995721, | |
0.02963313999998718, | |
0.03034631600002058, | |
0.03089040599996906, | |
0.03044247599996197, | |
0.03063420500001257, | |
0.030122274999996534, | |
0.028664362000029087 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 32.91688635840194 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |