IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c40c087
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": 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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.7712, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "c321302e3b007186f91357f56a141e530fe6b122", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"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": 1116.061696, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.953653982999981, | |
"mean": 4.953653982999981, | |
"stdev": 0.0, | |
"p50": 4.953653982999981, | |
"p90": 4.953653982999981, | |
"p95": 4.953653982999981, | |
"p99": 4.953653982999981, | |
"values": [ | |
4.953653982999981 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.81256439500004e-05, | |
"ram": 2.8490770429061435e-06, | |
"gpu": 0, | |
"total": 7.097472099290653e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.654272, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6320696639999142, | |
"mean": 0.04213797759999428, | |
"stdev": 0.0010813338740637908, | |
"p50": 0.04184711699997479, | |
"p90": 0.04327465979996532, | |
"p95": 0.04394401039996865, | |
"p99": 0.04479703487997994, | |
"values": [ | |
0.04501029099998277, | |
0.04182279200000494, | |
0.04248698300000342, | |
0.04148858700000346, | |
0.042353374000015265, | |
0.04295609999996941, | |
0.04184711699997479, | |
0.04236174900000833, | |
0.042254668999987643, | |
0.0418313079999848, | |
0.04182337299999972, | |
0.043487032999962594, | |
0.04070305800001961, | |
0.04047189599998546, | |
0.04117133400001194 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.46312267250984 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6126622508888257e-06, | |
"ram": 6.743434377514969e-08, | |
"gpu": 0.0, | |
"total": 1.6800965946639753e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1190407.7458117856 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.440704, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3917057890001274, | |
"mean": 0.02611371926667516, | |
"stdev": 0.0007420011961556338, | |
"p50": 0.026084166999964964, | |
"p90": 0.027138277400024436, | |
"p95": 0.02756971780001436, | |
"p99": 0.027610326760008092, | |
"values": [ | |
0.02584794500000953, | |
0.026341778000016802, | |
0.02585304499996255, | |
0.026394315999993978, | |
0.026523749000034513, | |
0.02610730000003514, | |
0.02573296000002756, | |
0.027620479000006526, | |
0.02649861200001169, | |
0.02586926500003983, | |
0.026084166999964964, | |
0.027547963000017717, | |
0.025034312999991926, | |
0.025223448000019744, | |
0.025026448999994955 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.294047270246296 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.714549248056386e-07, | |
"ram": 4.0621166206600756e-08, | |
"gpu": 0.0, | |
"total": 1.0120760910122396e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 988068.0008949114 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38629836900003056, | |
"mean": 0.025753224600002036, | |
"stdev": 0.0007364927540613671, | |
"p50": 0.025713003000021217, | |
"p90": 0.02677223280002181, | |
"p95": 0.027227090200011617, | |
"p99": 0.027264058039994554, | |
"values": [ | |
0.025506887000005918, | |
0.02594632900002125, | |
0.025495145999968827, | |
0.026046696999969754, | |
0.02609345400003349, | |
0.025713003000021217, | |
0.025392352999972445, | |
0.027273299999990286, | |
0.02611965300002339, | |
0.02551167600000781, | |
0.02572814100000187, | |
0.02720728600002076, | |
0.024692093999988174, | |
0.024894533000008323, | |
0.02467781699999705 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.830088873605405 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |