IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
527a50f
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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "7ced484c6c538274314e9bbd7dcb0b3e27a51bd6", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.2208, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.89993832899998, | |
"mean": 4.89993832899998, | |
"stdev": 0.0, | |
"p50": 4.89993832899998, | |
"p90": 4.89993832899998, | |
"p95": 4.89993832899998, | |
"p99": 4.89993832899998, | |
"values": [ | |
4.89993832899998 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.790275573730469e-05, | |
"ram": 2.8381027481839283e-06, | |
"gpu": 0, | |
"total": 7.074085848548862e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.698688, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6533902749999925, | |
"mean": 0.04667073392857089, | |
"stdev": 0.0026580375267486267, | |
"p50": 0.04782122299998548, | |
"p90": 0.049002336099997025, | |
"p95": 0.049257540499996824, | |
"p99": 0.04953580809999835, | |
"values": [ | |
0.0476816829999791, | |
0.04786606700000107, | |
0.046922825000024204, | |
0.04818927100001247, | |
0.04883554799999956, | |
0.049070244999995793, | |
0.04960537499999873, | |
0.048843881999999894, | |
0.04778363299999455, | |
0.04785881299997641, | |
0.04436572000000183, | |
0.04255468799999562, | |
0.0419687339999939, | |
0.04184379100001934 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.85340794213737 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.73345596893974e-06, | |
"ram": 7.244287153639561e-08, | |
"gpu": 0.0, | |
"total": 1.8058988404761358e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1107481.745474009 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.616192, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.4075911999999562, | |
"mean": 0.029113657142854014, | |
"stdev": 0.001623126632109569, | |
"p50": 0.029815719499993065, | |
"p90": 0.030728378499986775, | |
"p95": 0.030870671699990738, | |
"p99": 0.031035481539996964, | |
"values": [ | |
0.031076683999998522, | |
0.029890859999994746, | |
0.029911667999982683, | |
0.029740578999991385, | |
0.030759741999986545, | |
0.030507120999999415, | |
0.03065519699998731, | |
0.03027338399999735, | |
0.02945244099998945, | |
0.028242176000020436, | |
0.026841124000014815, | |
0.026406102000009923, | |
0.026872582999999395, | |
0.026961538999984214 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.34814098047628 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.1008839676345608e-06, | |
"ram": 4.600763470494127e-08, | |
"gpu": 0.0, | |
"total": 1.146891602339502e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 871921.9828274413 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40157153600000584, | |
"mean": 0.028683681142857558, | |
"stdev": 0.0015411560115765725, | |
"p50": 0.029338638499993408, | |
"p90": 0.030234958499991648, | |
"p95": 0.030374843600002067, | |
"p99": 0.03052408152001675, | |
"values": [ | |
0.03056139100002042, | |
0.029413188000006585, | |
0.029425960999986955, | |
0.02926408899998023, | |
0.030274394999992182, | |
0.029997278000024608, | |
0.030142939999990404, | |
0.029787846999994372, | |
0.02897779500000297, | |
0.02789737200001241, | |
0.02651444500000366, | |
0.026109168000004956, | |
0.026560581000012462, | |
0.026645085999973617 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.86302873817181 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |