IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
52dfa0f
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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"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.1", | |
"optimum_benchmark_commit": "c551ed4717b9f9db50458281347948dd265d9e3b", | |
"transformers_version": "4.41.0", | |
"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": 944.242688, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6511665159999893, | |
"mean": 0.05008973199999918, | |
"stdev": 0.0008901456519693848, | |
"p50": 0.05048302099999091, | |
"p90": 0.05086131680001245, | |
"p95": 0.05106322580000437, | |
"p99": 0.05130395395999244, | |
"values": [ | |
0.05065752600000906, | |
0.05074538099998449, | |
0.05085610800000495, | |
0.05086261900001432, | |
0.048842355999994425, | |
0.050551447999993115, | |
0.05048302099999091, | |
0.048909090000023525, | |
0.05029365699999744, | |
0.0498817380000105, | |
0.05136413599998946, | |
0.049254164999979366, | |
0.048465270999997756 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.928342998521785 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6857422060436675e-06, | |
"ram": 7.044953641845096e-08, | |
"gpu": 0.0, | |
"total": 1.7561917424621184e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1138827.812272976 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 944.242688, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.4010149900000499, | |
"mean": 0.030847306923080763, | |
"stdev": 0.0010302531407087147, | |
"p50": 0.03121004900000912, | |
"p90": 0.031966991799998824, | |
"p95": 0.032040472600004935, | |
"p99": 0.03204053452000494, | |
"values": [ | |
0.031134328000007372, | |
0.030643240000017613, | |
0.03138406400000804, | |
0.032040421000004926, | |
0.03204055000000494, | |
0.03131409299999177, | |
0.03121004900000912, | |
0.03167327499997441, | |
0.03121474799999646, | |
0.03098446699999613, | |
0.02940026900000703, | |
0.029402232000023787, | |
0.02857325400000832 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 32.41774079317679 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0477525878835606e-06, | |
"ram": 4.378964971698927e-08, | |
"gpu": 0.0, | |
"total": 1.09154223760055e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 916134.9561682744 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9708104479999804, | |
"mean": 0.08090087066666503, | |
"stdev": 0.0015149395942056193, | |
"p50": 0.0811769409999954, | |
"p90": 0.08223946449999744, | |
"p95": 0.08257633564999481, | |
"p99": 0.08286515032999489, | |
"values": [ | |
0.08140842899999257, | |
0.08228095699999471, | |
0.08293735399999491, | |
0.08089987799999676, | |
0.08186603200002196, | |
0.08170432099998948, | |
0.08059357599998407, | |
0.08150394600002642, | |
0.08091769199998566, | |
0.08094545299999822, | |
0.07854675199999406, | |
0.07720605800000158 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.360806401210304 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |