IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3990ad7 verified
raw
history blame
8.62 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": {},
"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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "674d8c572ada4aac26b730928ac88a3effc914de",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 951.169024,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.651997793999783,
"mean": 0.04346651959998553,
"stdev": 0.0018563076160604478,
"p50": 0.04241198599999052,
"p90": 0.04671048879998807,
"p95": 0.04679353020000008,
"p99": 0.04680695563999279,
"values": [
0.04576482500004886,
0.042967419999968115,
0.042281572000035794,
0.04210176699996282,
0.04235397700000476,
0.042249752999964585,
0.042684934999954294,
0.04210051599994813,
0.04183603200004882,
0.04681031199999097,
0.046596714999964206,
0.04678633800000398,
0.04224789999994982,
0.042803745999947296,
0.04241198599999052
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.01242561874371
},
"energy": {
"unit": "kWh",
"cpu": 1.6525432467460635e-06,
"ram": 6.906195599910347e-08,
"gpu": 0.0,
"total": 1.7216052027451668e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1161706.5264503858
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 951.169024,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.40866484299999684,
"mean": 0.027244322866666455,
"stdev": 0.0016764205992976003,
"p50": 0.026517742999999427,
"p90": 0.029772413199987115,
"p95": 0.030090030100001285,
"p99": 0.030550253220022795,
"values": [
0.02569557999999006,
0.026732293000009122,
0.02600638999996363,
0.026550244000020484,
0.026506561999951828,
0.02580723900001658,
0.026344940000001316,
0.025876207000010254,
0.028901275999999143,
0.029843481999989763,
0.02966580999998314,
0.030665309000028174,
0.025334357000019736,
0.026517742999999427,
0.02821741100001418
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.70489462681799
},
"energy": {
"unit": "kWh",
"cpu": 9.659159073123232e-07,
"ram": 4.0366258564091585e-08,
"gpu": 0.0,
"total": 1.0062821658764144e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 993757.0533499985
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.4029724250000868,
"mean": 0.02686482833333912,
"stdev": 0.0016246870931077404,
"p50": 0.026195022000024437,
"p90": 0.02925115600000936,
"p95": 0.02962354190001406,
"p99": 0.0301667827799929,
"values": [
0.025339305999978023,
0.026379845999997542,
0.02566390199996249,
0.026195022000024437,
0.026159093999979177,
0.025473046000001887,
0.0260016810000252,
0.02552204700003813,
0.028392617999998038,
0.029332520000025397,
0.029129109999985303,
0.03030259299998761,
0.02502849700005072,
0.02620063200004097,
0.027852510999991864
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.22339065755372
},
"energy": null,
"efficiency": null
}
}
}