IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ee81c0d
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.5.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": 2, | |
"sequence_length": 16, | |
"num_choices": 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": 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.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "e4ddf2d59059047da7236658deb605d054b358c8", | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.12", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1130.422272, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.860985062000026 | |
], | |
"count": 1, | |
"total": 1.860985062000026, | |
"mean": 1.860985062000026, | |
"p50": 1.860985062000026, | |
"p90": 1.860985062000026, | |
"p95": 1.860985062000026, | |
"p99": 1.860985062000026, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.0002025193083277769, | |
"ram": 8.465430878006412e-06, | |
"gpu": 0, | |
"total": 0.0002109847392057833 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1021.779968, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.11037992299998223, | |
0.11114767300000494, | |
0.10772986900002479, | |
0.10687824400000068, | |
0.10834080700001891, | |
0.10405187299997465, | |
0.10274627199999031 | |
], | |
"count": 7, | |
"total": 0.7512746609999965, | |
"mean": 0.10732495157142807, | |
"p50": 0.10772986900002479, | |
"p90": 0.11068702299999131, | |
"p95": 0.11091734799999813, | |
"p99": 0.11110160800000358, | |
"stdev": 0.0028540414335950616, | |
"stdev_": 2.6592524774591757 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 18.634995597169574 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.3701898895061456e-06, | |
"ram": 1.826294155216868e-07, | |
"gpu": 0.0, | |
"total": 4.5528193050278325e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 439288.24449310615 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1023.16032, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04387857800000461, | |
0.043288619999998446, | |
0.04344876799999042, | |
0.0431682960000046, | |
0.043301063999990674, | |
0.04196040700000481, | |
0.04677500100001453 | |
], | |
"count": 7, | |
"total": 0.3058207340000081, | |
"mean": 0.04368867628571544, | |
"p50": 0.043301063999990674, | |
"p90": 0.04503714720000858, | |
"p95": 0.045906074100011546, | |
"p99": 0.04660121562001393, | |
"stdev": 0.0013725376690233578, | |
"stdev_": 3.1416325366491504 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.77845268005808 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.490604116049365e-06, | |
"ram": 6.229694801214808e-08, | |
"gpu": 0.0, | |
"total": 1.5529010640615128e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1287912.0545961433 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04305567599999449, | |
0.04251950799999804, | |
0.042637367999986964, | |
0.04230669300000045, | |
0.042487829999998894, | |
0.04119743700002232, | |
0.04600571900002137 | |
], | |
"count": 7, | |
"total": 0.30021023100002253, | |
"mean": 0.042887175857146076, | |
"p50": 0.04251950799999804, | |
"p90": 0.04423569320000525, | |
"p95": 0.04512070610001331, | |
"p99": 0.04582871642001976, | |
"stdev": 0.0013785573264999689, | |
"stdev_": 3.214381219905546 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |