IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7d8a695 verified
raw
history blame
8.53 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+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",
"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-1022-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.0",
"optimum_benchmark_commit": "19eeac52e408e408898ac1fac3d9abefced0131b",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 956.796928,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.654556035999974,
"mean": 0.04363706906666494,
"stdev": 0.0011435378132150255,
"p50": 0.04344892300002812,
"p90": 0.045377289200001766,
"p95": 0.04584508609999318,
"p99": 0.046038558819979584,
"values": [
0.045741440000000466,
0.044831063000003724,
0.043681317999983094,
0.04389287399999375,
0.042934197999983326,
0.04408821999999191,
0.04319089800000597,
0.0426090679999902,
0.04309415800000238,
0.04344892300002812,
0.04381533000000104,
0.046086926999976185,
0.04303371400001765,
0.04204751500000725,
0.042060389999988956
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.83259239855392
},
"energy": {
"unit": "kWh",
"cpu": 1.6848262261461329e-06,
"ram": 7.041143620284629e-08,
"gpu": 0.0,
"total": 1.7552376623489792e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1139446.8355490179
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.796928,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3967881569999747,
"mean": 0.026452543799998316,
"stdev": 0.0007171637234269635,
"p50": 0.02624499399999536,
"p90": 0.02765210039999033,
"p95": 0.027785349899988886,
"p99": 0.027795537979998244,
"values": [
0.027798085000000583,
0.02656862200001342,
0.026154555000005075,
0.02613009000000943,
0.02639411399999858,
0.02621539000000439,
0.026402160000003505,
0.02585750899999084,
0.02624499399999536,
0.026969742999995105,
0.027779891999983874,
0.027460413000000017,
0.025642836000002944,
0.025457747999979574,
0.025712005999992016
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.803547649737325
},
"energy": {
"unit": "kWh",
"cpu": 1.0071023194878185e-06,
"ram": 4.208515859005502e-08,
"gpu": 0.0,
"total": 1.0491874780778736e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 953118.5044564335
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.9780474509999806,
"mean": 0.06986053221428433,
"stdev": 0.00156174632545555,
"p50": 0.06973939199998824,
"p90": 0.07143772600000489,
"p95": 0.07225020065000365,
"p99": 0.07344347533000074,
"values": [
0.07141600500000322,
0.06985661199999527,
0.07002204200000506,
0.06937164299998244,
0.07028997500000855,
0.06962217199998122,
0.06849496000000954,
0.06934188700000732,
0.07041659199998662,
0.0714470350000056,
0.07374179400000003,
0.06874257399999806,
0.06741424400001961,
0.06786991599997805
]
},
"throughput": {
"unit": "tokens/s",
"value": 14.314233921560803
},
"energy": null,
"efficiency": null
}
}
}