IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2e8c609
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-1024-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "06a9a039703e5370285ca115f872784a3a49a62c", | |
"transformers_version": "4.43.3", | |
"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.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1120.874496, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.837831555000008, | |
"mean": 4.837831555000008, | |
"stdev": 0.0, | |
"p50": 4.837831555000008, | |
"p90": 4.837831555000008, | |
"p95": 4.837831555000008, | |
"p99": 4.837831555000008, | |
"values": [ | |
4.837831555000008 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.921436786651612e-05, | |
"ram": 2.892996542838091e-06, | |
"gpu": 0, | |
"total": 7.21073644093542e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.344192, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6527227790000438, | |
"mean": 0.043514851933336256, | |
"stdev": 0.0020649184210247942, | |
"p50": 0.04236638099999368, | |
"p90": 0.046263159400001544, | |
"p95": 0.04632397800000092, | |
"p99": 0.04642594839999049, | |
"values": [ | |
0.041731106000014506, | |
0.0421083299999907, | |
0.04236638099999368, | |
0.04158975300001089, | |
0.04259761200000867, | |
0.04625387199999409, | |
0.04608763199999544, | |
0.04614864599997759, | |
0.04626935100000651, | |
0.04645144099998788, | |
0.04456008300002168, | |
0.04128011500000639, | |
0.04202210900001546, | |
0.04196646500000156, | |
0.04128988300001879 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.9613192080707 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6395553394600198e-06, | |
"ram": 6.851953798587828e-08, | |
"gpu": 0.0, | |
"total": 1.7080748774458983e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1170908.8555828538 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.130624, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.40002722299999505, | |
"mean": 0.026668481533333004, | |
"stdev": 0.0015268322898138495, | |
"p50": 0.0260151430000235, | |
"p90": 0.028992219200006275, | |
"p95": 0.02903087530001187, | |
"p99": 0.029088191860001302, | |
"values": [ | |
0.026064095000009502, | |
0.0260151430000235, | |
0.02579551300001981, | |
0.02566286600000467, | |
0.02577711899999713, | |
0.028342172999998638, | |
0.02839517199998909, | |
0.029000170000017533, | |
0.028980292999989388, | |
0.02910252099999866, | |
0.02492512999998553, | |
0.026102285999996866, | |
0.02539268199998901, | |
0.02511684799998193, | |
0.0253552119999938 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.49744801743202 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.545250733693448e-07, | |
"ram": 3.989176594353694e-08, | |
"gpu": 0.0, | |
"total": 9.94416839312881e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1005614.507384023 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.394110692000055, | |
"mean": 0.026274046133337, | |
"stdev": 0.0014381931309885257, | |
"p50": 0.025665832000015598, | |
"p90": 0.02846344360001467, | |
"p95": 0.028496894100013038, | |
"p99": 0.028541014820000897, | |
"values": [ | |
0.02572121500000435, | |
0.025665832000015598, | |
0.025420564000000923, | |
0.02532987500001127, | |
0.025417989999994006, | |
0.027851268000006257, | |
0.027899808000000803, | |
0.02847325800001954, | |
0.028448722000007365, | |
0.02855204499999786, | |
0.024604401999994252, | |
0.02579852900001356, | |
0.025092553000007456, | |
0.024815395999979728, | |
0.025019235000002027 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.060373150185704 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |