IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6f098b1 verified
raw
history blame
8.4 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.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": 2,
"sequence_length": 16,
"num_choices": 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": 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.15",
"optimum_benchmark_version": "0.5.0.dev0",
"optimum_benchmark_commit": "58cc0e5ee90edf2ed9be8da04bbd5a641f13c036",
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 1142.509568,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7218063790000144
],
"count": 1,
"total": 1.7218063790000144,
"mean": 1.7218063790000144,
"p50": 1.7218063790000144,
"p90": 1.7218063790000144,
"p95": 1.7218063790000144,
"p99": 1.7218063790000144,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 0.00019271847801111147,
"ram": 8.05577461730081e-06,
"gpu": 0,
"total": 0.00020077425262841227
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1023.361024,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.2208991210000022,
0.2656592100000239,
0.23349913300000935,
0.11379795099998091
],
"count": 4,
"total": 0.8338554150000164,
"mean": 0.2084638537500041,
"p50": 0.22719912700000577,
"p90": 0.25601118690001956,
"p95": 0.26083519845002173,
"p99": 0.26469440769002345,
"stdev": 0.0570402116904122,
"stdev_": 27.36215927333689
},
"throughput": {
"unit": "samples/s",
"value": 9.593989384838189
},
"energy": {
"unit": "kWh",
"cpu": 4.896491483333362e-06,
"ram": 2.046241612362353e-07,
"gpu": 0.0,
"total": 5.101115644569597e-06
},
"efficiency": {
"unit": "samples/kWh",
"value": 392071.0956884704
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1029.853184,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.10965816699999209,
0.10433838000000151,
0.045644748000000845,
0.053401686000000836
],
"count": 4,
"total": 0.3130429809999953,
"mean": 0.07826074524999882,
"p50": 0.07887003300000117,
"p90": 0.10806223089999492,
"p95": 0.1088601989499935,
"p99": 0.10949857338999237,
"stdev": 0.02892929842784078,
"stdev_": 36.965273376107056
},
"throughput": {
"unit": "tokens/s",
"value": 25.555596149910546
},
"energy": {
"unit": "kWh",
"cpu": 4.9022094916665345e-06,
"ram": 2.0482736709787256e-07,
"gpu": 0.0,
"total": 5.107036858764409e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 391616.5195807648
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.10880397500000072,
0.1036117169999784,
0.04529194599999187,
0.05304942500001175
],
"count": 4,
"total": 0.31075706299998274,
"mean": 0.07768926574999568,
"p50": 0.07833057099999507,
"p90": 0.10724629759999402,
"p95": 0.10802513629999737,
"p99": 0.10864820726000005,
"stdev": 0.028708912769768186,
"stdev_": 36.95351280851793
},
"throughput": null,
"energy": null,
"efficiency": null
}
}
}