IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4f34339 verified
raw
history blame
9.64 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_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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "328b924ef0be0164f0dc86652abfd3746f634c6b",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1116.135424,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.770297263000003,
"mean": 4.770297263000003,
"stdev": 0.0,
"p50": 4.770297263000003,
"p90": 4.770297263000003,
"p95": 4.770297263000003,
"p99": 4.770297263000003,
"values": [
4.770297263000003
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.811593373616537e-05,
"ram": 2.8470770394358167e-06,
"gpu": 0,
"total": 7.096301077560119e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.469952,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6367758400002685,
"mean": 0.04245172266668457,
"stdev": 0.00396891351029044,
"p50": 0.04103058800001236,
"p90": 0.043928176200040525,
"p95": 0.047996650900034854,
"p99": 0.05499496698001052,
"values": [
0.04103058800001236,
0.04240679200000841,
0.04344911100002946,
0.04150333100000125,
0.041329226000016206,
0.04083185600001116,
0.040988208000044324,
0.04088525600002413,
0.04112043600002835,
0.04085750399997323,
0.04025056900002255,
0.0442475530000479,
0.04079309300004752,
0.04033777099999725,
0.05674454600000445
]
},
"throughput": {
"unit": "tokens/s",
"value": 47.11234019178138
},
"energy": {
"unit": "kWh",
"cpu": 1.5672866503397626e-06,
"ram": 6.55000627469235e-08,
"gpu": 0.0,
"total": 1.632786713086686e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1224899.727545626
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.387456,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3832927019998351,
"mean": 0.025552846799989006,
"stdev": 0.0022979591211475248,
"p50": 0.02466371700000991,
"p90": 0.027832154800000806,
"p95": 0.029826911500020963,
"p99": 0.0323912775000133,
"values": [
0.028453144000025077,
0.025418919999992795,
0.024850947000004453,
0.026900670999964404,
0.02477871299998924,
0.02438311199995269,
0.024762932999976783,
0.024516861999984485,
0.0243242720000012,
0.02466371700000991,
0.024517272999958095,
0.0243293030000018,
0.023845055999970555,
0.024515409999992244,
0.033032369000011386
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.134582844226586
},
"energy": {
"unit": "kWh",
"cpu": 9.199737012386319e-07,
"ram": 3.844739625948249e-08,
"gpu": 0.0,
"total": 9.584210974981153e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1043382.7078832292
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.37797582099977944,
"mean": 0.025198388066651964,
"stdev": 0.002272434881375836,
"p50": 0.02432994299999791,
"p90": 0.027298450799980854,
"p95": 0.029359821199989252,
"p99": 0.032034663439992526,
"values": [
0.027926869999987503,
0.025077090999957363,
0.024529315999984647,
0.026355821999970885,
0.024452732999975524,
0.02405812399996421,
0.024437605000002804,
0.02419282599998951,
0.023969577999991998,
0.02432994299999791,
0.02418975099999443,
0.024029752999979337,
0.02352975699994886,
0.02419327800004112,
0.032703373999993346
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.68507816273452
},
"energy": null,
"efficiency": null
}
}
}