IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
31afde9
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": "dcb5f2ebfa5a1d3b392d8db4e17c100e900e10f7", | |
"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.11", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1132.335104, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.725400731000036 | |
], | |
"count": 1, | |
"total": 1.725400731000036, | |
"mean": 1.725400731000036, | |
"p50": 1.725400731000036, | |
"p90": 1.725400731000036, | |
"p95": 1.725400731000036, | |
"p99": 1.725400731000036, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.00019815607244999856, | |
"ram": 8.282966657554161e-06, | |
"gpu": 0, | |
"total": 0.00020643903910755272 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1016.107008, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.11103460900000073, | |
0.11002119800002674, | |
0.11457271199998331, | |
0.10989320000004454, | |
0.11037127100001953, | |
0.10607595700003003, | |
0.10002104400001599 | |
], | |
"count": 7, | |
"total": 0.7619899910001209, | |
"mean": 0.10885571300001727, | |
"p50": 0.11002119800002674, | |
"p90": 0.11244985019999376, | |
"p95": 0.11351128109998854, | |
"p99": 0.11436042581998436, | |
"stdev": 0.004275206523252897, | |
"stdev_": 3.9274066610102665 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 18.372944743834278 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.005293584444492e-06, | |
"ram": 1.673886898267235e-07, | |
"gpu": 0.0, | |
"total": 4.1726822742712155e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 479308.00107451563 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1024.417792, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04661776599999712, | |
0.0487299469999698, | |
0.047495572999991964, | |
0.048822137999991355, | |
0.048169451999967805, | |
0.04121001199996499, | |
0.04216588600002069 | |
], | |
"count": 7, | |
"total": 0.3232107739999037, | |
"mean": 0.04617296771427196, | |
"p50": 0.047495572999991964, | |
"p90": 0.04876682339997842, | |
"p95": 0.04879448069998489, | |
"p99": 0.048816606539990065, | |
"stdev": 0.0029320144054634048, | |
"stdev_": 6.350067042706301 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.31538774757604 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6004410488886195e-06, | |
"ram": 6.688322071027094e-08, | |
"gpu": 0.0, | |
"total": 1.6673242695988904e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1199526.7126298964 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04544221199995491, | |
0.04760416599998507, | |
0.04637427000000116, | |
0.047691086999975596, | |
0.04712295799998856, | |
0.04038317899994581, | |
0.041264212999976735 | |
], | |
"count": 7, | |
"total": 0.31588208499982784, | |
"mean": 0.04512601214283255, | |
"p50": 0.04637427000000116, | |
"p90": 0.04763893439998128, | |
"p95": 0.04766501069997844, | |
"p99": 0.04768587173997616, | |
"stdev": 0.002822732647315213, | |
"stdev_": 6.255222904210367 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |