IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
152c514 verified
raw
history blame
8.51 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",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cpu",
"device_ids": null,
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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.346304,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "3b17890e550ffe969ad275a1b08288c6015397d9",
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 959.213568,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6432671100000391,
"mean": 0.04288447400000261,
"stdev": 0.0006131960096328534,
"p50": 0.04273281500002213,
"p90": 0.04365834460001565,
"p95": 0.04395496820001199,
"p99": 0.044244434440008716,
"values": [
0.04379989700001374,
0.04344601600001852,
0.04252090999997904,
0.04273281500002213,
0.042765174999999545,
0.04289095400000065,
0.0443168010000079,
0.04272660400002337,
0.04321895300000733,
0.042399514000010186,
0.04325059100000317,
0.042260153000000855,
0.04252561899997431,
0.0418052649999936,
0.04260784299998477
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.63692505590434
},
"energy": {
"unit": "kWh",
"cpu": 1.6362696334167766e-06,
"ram": 6.838202435243407e-08,
"gpu": 0.0,
"total": 1.7046516577692106e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1173260.2323088674
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.213568,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.40162400400001275,
"mean": 0.02677493360000085,
"stdev": 0.0009793670233713997,
"p50": 0.02653633799999966,
"p90": 0.027721777799996516,
"p95": 0.028593429400007152,
"p99": 0.02956511228002,
"values": [
0.02653633799999966,
0.026568989999987025,
0.026909554000013713,
0.02618327999999792,
0.026637598000007756,
0.02807288500000027,
0.026492405999988478,
0.026366701999990028,
0.026629262000000153,
0.027195116999990887,
0.02634892899999386,
0.02603897100001973,
0.029808033000023215,
0.02548179100000425,
0.026354147999995803
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.34836526354517
},
"energy": {
"unit": "kWh",
"cpu": 9.886841310395135e-07,
"ram": 4.132014078664287e-08,
"gpu": 0.0,
"total": 1.0300042718261557e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 970869.7598186079
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.9748128969999925,
"mean": 0.0696294926428566,
"stdev": 0.001117507853519043,
"p50": 0.06950122199999953,
"p90": 0.0709310381000023,
"p95": 0.07139638105000187,
"p99": 0.07202770420999116,
"values": [
0.07002267000001439,
0.06940666999997802,
0.06898561400001313,
0.06941038799999433,
0.0709714520000091,
0.07083673899998644,
0.06910846400000992,
0.06987409199999206,
0.06959205600000473,
0.06961640099999045,
0.0683459920000189,
0.07218553499998848,
0.06748049600000172,
0.06897632799999087
]
},
"throughput": {
"unit": "tokens/s",
"value": 14.361730382399843
},
"energy": null,
"efficiency": null
}
}
}