IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
78e7fa9 verified
raw
history blame
8.34 kB
{
"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",
"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": "48414f58841d7ba7c7fd42d74fd524d1d23c3081",
"transformers_version": "4.40.2",
"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": 955.785216,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6218918910000468,
"mean": 0.0444208493571462,
"stdev": 0.0010790875710717678,
"p50": 0.043943934499992565,
"p90": 0.04594600920001995,
"p95": 0.04666790895001469,
"p99": 0.04712083779000437,
"values": [
0.0444791839999823,
0.043715988000002426,
0.04384338700000967,
0.04636305300002164,
0.04464880099999391,
0.04357408300000998,
0.044005669999990005,
0.04723407000000179,
0.0444360740000036,
0.04376246500001457,
0.043882198999995126,
0.043671213999999736,
0.04330279600000608,
0.044972907000015994
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.023902715589344
},
"energy": {
"unit": "kWh",
"cpu": 1.680608700822901e-06,
"ram": 7.02356019589819e-08,
"gpu": 0.0,
"total": 1.7508443027818828e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1142306.0273390606
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 955.785216,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.38838130900003875,
"mean": 0.02774152207143134,
"stdev": 0.0010533510661675603,
"p50": 0.027449605000001043,
"p90": 0.02891533670000115,
"p95": 0.02981638884999995,
"p99": 0.030648914569995325,
"values": [
0.02747412600001553,
0.026798824999985982,
0.029256035000003067,
0.028120373999996673,
0.027449941000014633,
0.027733611000002156,
0.027071714000015845,
0.02767881900001612,
0.027400006999982907,
0.027449268999987453,
0.027346608000016204,
0.026981005000010327,
0.03085704599999417,
0.026763928999997688
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.04704880377908
},
"energy": {
"unit": "kWh",
"cpu": 1.0053710363529348e-06,
"ram": 4.201771942845056e-08,
"gpu": 0.0,
"total": 1.0473887557813857e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 954755.3327073555
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9385427059999927,
"mean": 0.07219559276923021,
"stdev": 0.001431526159125522,
"p50": 0.07178495599998769,
"p90": 0.07447220000000243,
"p95": 0.07470121399999244,
"p99": 0.0748759963999828,
"values": [
0.07054371600000309,
0.07305326499999865,
0.07455556200000046,
0.07211271799999963,
0.07129487000000267,
0.07111637700000983,
0.07491969199998039,
0.07187831000001665,
0.07120511200000124,
0.07126228900000342,
0.07067708699997866,
0.0741387520000103,
0.07178495599998769
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.851261020827858
},
"energy": null,
"efficiency": null
}
}
}