IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
96dd56a verified
raw
history blame
10.5 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": 16766.779392,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1017-azure-x86_64-with-glibc2.39",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.5.0.dev0",
"optimum_benchmark_commit": "78f71e99518cc9d8f83d2ee878d859a337ca6b63",
"transformers_version": "4.47.0",
"transformers_commit": null,
"accelerate_version": "1.2.0",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.12",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 1126.711296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7306038069999943
],
"count": 1,
"total": 1.7306038069999943,
"mean": 1.7306038069999943,
"p50": 1.7306038069999943,
"p90": 1.7306038069999943,
"p95": 1.7306038069999943,
"p99": 1.7306038069999943,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 0.0001952255043277769,
"ram": 8.165149847351106e-06,
"gpu": 0,
"total": 0.000203390654175128
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1013.219328,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.1059541500000023,
0.10606595800001628,
0.10522361700000715,
0.1064662750000025,
0.10744409800000199,
0.1029994699999861,
0.09906391099997336
],
"count": 7,
"total": 0.7332174789999897,
"mean": 0.10474535414285567,
"p50": 0.1059541500000023,
"p90": 0.1068574042000023,
"p95": 0.10715075110000213,
"p99": 0.10738542862000201,
"stdev": 0.00264590281544636,
"stdev_": 2.5260335764751707
},
"throughput": {
"unit": "samples/s",
"value": 19.09392561003063
},
"energy": {
"unit": "kWh",
"cpu": 4.184930672222167e-06,
"ram": 1.7499703190436278e-07,
"gpu": 0.0,
"total": 4.35992770412653e-06
},
"efficiency": {
"unit": "samples/kWh",
"value": 458723.2027051882
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1013.219328,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.04423123000000828,
0.04306089900001098,
0.04248433399999385,
0.04333400799998799,
0.04332854699998734,
0.04215836599999534,
0.04155835700001376
],
"count": 7,
"total": 0.30015574099999753,
"mean": 0.04287939157142822,
"p50": 0.04306089900001098,
"p90": 0.043692896799996106,
"p95": 0.043962063400002194,
"p99": 0.044177396680007065,
"stdev": 0.0008185273778488699,
"stdev_": 1.9089062317625756
},
"throughput": {
"unit": "tokens/s",
"value": 46.642452859164585
},
"energy": {
"unit": "kWh",
"cpu": 1.3011991465277477e-06,
"ram": 5.4408494229405545e-08,
"gpu": 0.0,
"total": 1.35560764075715e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1475353.1478200702
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.0438103860000183,
0.0438103860000183,
0.10650695999999016,
0.042677513999990424,
0.0438103860000183,
0.10650695999999016,
0.042677513999990424,
0.10562829100001636,
0.04207575199998814,
0.0438103860000183,
0.10650695999999016,
0.042677513999990424,
0.10562829100001636,
0.04207575199998814,
0.10689539500000933,
0.04291630899999177,
0.0438103860000183,
0.10650695999999016,
0.042677513999990424,
0.10562829100001636,
0.04207575199998814,
0.10689539500000933,
0.04291630899999177,
0.10788179400000786,
0.04290710099999728,
0.0438103860000183,
0.10650695999999016,
0.042677513999990424,
0.10562829100001636,
0.04207575199998814,
0.10689539500000933,
0.04291630899999177,
0.10788179400000786,
0.04290710099999728,
0.10344253599998865,
0.0417934950000074,
0.0438103860000183,
0.10650695999999016,
0.042677513999990424,
0.10562829100001636,
0.04207575199998814,
0.10689539500000933,
0.04291630899999177,
0.10788179400000786,
0.04290710099999728,
0.10344253599998865,
0.0417934950000074,
0.0994484279999881,
0.04121399400000314
],
"count": 49,
"total": 3.4230477460000373,
"mean": 0.06985811726530688,
"p50": 0.0438103860000183,
"p90": 0.10689539500000933,
"p95": 0.10748723440000844,
"p99": 0.10788179400000786,
"stdev": 0.031276206475478525,
"stdev_": 44.77104121872891
},
"throughput": null,
"energy": null,
"efficiency": null
}
}
}