IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e2449fc
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": "fd1d0f86c25fce0c4e87ce2a113b6de6fd87f52f", | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1109.377024, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 5.03246732599996, | |
"mean": 5.03246732599996, | |
"stdev": 0.0, | |
"p50": 5.03246732599996, | |
"p90": 5.03246732599996, | |
"p95": 5.03246732599996, | |
"p99": 5.03246732599996, | |
"values": [ | |
5.03246732599996 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.836845026666652e-05, | |
"ram": 2.8576248081022472e-06, | |
"gpu": 0, | |
"total": 7.122607507476876e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 962.72384, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6395730979998575, | |
"mean": 0.049197930615373656, | |
"stdev": 0.002525479344312173, | |
"p50": 0.04938945800000738, | |
"p90": 0.051219598599982416, | |
"p95": 0.0526654271999746, | |
"p99": 0.05422432703997628, | |
"values": [ | |
0.05063261700001931, | |
0.051366343999973196, | |
0.0502456340000208, | |
0.05043194099999937, | |
0.049899930999970366, | |
0.04884666599997445, | |
0.04938945800000738, | |
0.04786563599998317, | |
0.04928404099996442, | |
0.04643890500000225, | |
0.04658944599998449, | |
0.0439684269999816, | |
0.05461405199997671 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.65211635903703 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7337388934782841e-06, | |
"ram": 7.245389562582637e-08, | |
"gpu": 0.0, | |
"total": 1.8061927891041105e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1107301.5084906965 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.510272, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3848953010000855, | |
"mean": 0.029607330846160424, | |
"stdev": 0.0017026207857069298, | |
"p50": 0.029911181999977998, | |
"p90": 0.0312886472000173, | |
"p95": 0.031709958999999795, | |
"p99": 0.03210517419998723, | |
"values": [ | |
0.03220397799998409, | |
0.03138061300001027, | |
0.03075124899999082, | |
0.030834384000002046, | |
0.030920784000045387, | |
0.029435635000027105, | |
0.029911181999977998, | |
0.0299310089999949, | |
0.02970236300001261, | |
0.029179037000005792, | |
0.026999933000013243, | |
0.026306780000027175, | |
0.02733835399999407 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.77541883785459 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.148613903744028e-06, | |
"ram": 4.800325088435436e-08, | |
"gpu": 0.0, | |
"total": 1.196617154628383e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 835689.172708339 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3782396580000409, | |
"mean": 0.029095358307695454, | |
"stdev": 0.0016730743015986095, | |
"p50": 0.029367968999963523, | |
"p90": 0.03075458459999254, | |
"p95": 0.031163104399990968, | |
"p99": 0.03154434487999197, | |
"values": [ | |
0.03163965499999222, | |
0.03084540399999014, | |
0.03019835800000692, | |
0.030306469999970886, | |
0.030391307000002143, | |
0.02891821000002892, | |
0.029367968999963523, | |
0.029406541000014386, | |
0.02919911500003991, | |
0.028778138999996372, | |
0.02663298800001712, | |
0.02593474600001855, | |
0.0266207559999998 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.36974342864543 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |