IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
02ce7dc
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "791c6e35de952695e40c34df217c20ec4e890c8e", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 945.106944, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6605156749999992, | |
"mean": 0.04717969107142851, | |
"stdev": 0.0019839382052444913, | |
"p50": 0.047815430499994704, | |
"p90": 0.04880466160001049, | |
"p95": 0.04893411295001186, | |
"p99": 0.04911716179000308, | |
"values": [ | |
0.049162924000000885, | |
0.048790088999993486, | |
0.04707321399999387, | |
0.04878988699999809, | |
0.04881090700001778, | |
0.046679458999989265, | |
0.04861301799999751, | |
0.048676116000024194, | |
0.047481415999982346, | |
0.04710741799999596, | |
0.04814944500000706, | |
0.04348912500000779, | |
0.04287444799999207, | |
0.04481820899999889 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.39112114939594 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6512227831063447e-06, | |
"ram": 6.900659718053722e-08, | |
"gpu": 0.0, | |
"total": 1.720229380286882e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1162635.6478497426 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 945.106944, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.4115761959999986, | |
"mean": 0.029398299714285616, | |
"stdev": 0.0014512064827480512, | |
"p50": 0.03017652400001225, | |
"p90": 0.030481229100013253, | |
"p95": 0.030540933900007873, | |
"p99": 0.030583674779986154, | |
"values": [ | |
0.030198510000019496, | |
0.02999285699999632, | |
0.030220120999985056, | |
0.030594359999980725, | |
0.030409042999991698, | |
0.03051216600002249, | |
0.0303417970000055, | |
0.030032019999993054, | |
0.030154538000005005, | |
0.030327872000015077, | |
0.027026649999982055, | |
0.02700442899998734, | |
0.026406463000000713, | |
0.02835537000001409 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.01557265960067 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.950030401900973e-07, | |
"ram": 4.158411092267045e-08, | |
"gpu": 0.0, | |
"total": 1.0365871511127672e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 964704.2208911318 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.9931552479999937, | |
"mean": 0.07639655753846106, | |
"stdev": 0.0032259823230449285, | |
"p50": 0.07745438599999943, | |
"p90": 0.0791186008000068, | |
"p95": 0.07928131880000819, | |
"p99": 0.07941650456000843, | |
"values": [ | |
0.07883229600000163, | |
0.07728090199998405, | |
0.0794503010000085, | |
0.079168664000008, | |
0.07729525799999237, | |
0.07891834800000197, | |
0.07876563299998907, | |
0.07765397700001131, | |
0.07745438599999943, | |
0.07530724000000077, | |
0.07054737400000022, | |
0.06930198000000587, | |
0.07317888899999048 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 13.089595031773 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |