IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7d6993b verified
raw
history blame
No virus
8.4 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": "d35829e539df8480b726c647eeabf91e41eae047",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.0",
"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": 948.645888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.645904454000032,
"mean": 0.04613603242857372,
"stdev": 0.002363064739424687,
"p50": 0.047124281000023416,
"p90": 0.04804684419999887,
"p95": 0.04816486709999879,
"p99": 0.04828120461999959,
"values": [
0.04748192899998571,
0.04741025600000626,
0.04709340000002271,
0.04736884899998017,
0.04676122099999702,
0.048310288999999784,
0.04715516200002412,
0.047954167000000325,
0.04808656299999825,
0.04703083100000072,
0.046009983000004695,
0.042284730000005766,
0.041429010000001654,
0.04152806400000486
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.350064899844476
},
"energy": {
"unit": "kWh",
"cpu": 1.6903703963315047e-06,
"ram": 7.064366916719756e-08,
"gpu": 0.0,
"total": 1.7610140654987021e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1135709.270688658
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 948.645888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40617158700007394,
"mean": 0.029012256214290995,
"stdev": 0.0017591560510724785,
"p50": 0.029683154000011314,
"p90": 0.030456762899990508,
"p95": 0.030563506649986038,
"p99": 0.03067253972999765,
"values": [
0.029885235000023158,
0.02948107299999947,
0.030490118999978222,
0.029468400000013162,
0.029893259000004946,
0.030699798000000555,
0.030059948999991093,
0.030378932000019176,
0.03002953200001457,
0.029340863000015815,
0.0292033080000067,
0.025476460999982464,
0.02567340600000989,
0.02609125200001472
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.46819139517371
},
"energy": {
"unit": "kWh",
"cpu": 1.032672568603798e-06,
"ram": 4.3157586091110056e-08,
"gpu": 0.0,
"total": 1.075830154694908e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 929514.7525248422
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9750827619999995,
"mean": 0.07500636630769228,
"stdev": 0.004182999443269752,
"p50": 0.07688387599998237,
"p90": 0.07828306999999768,
"p95": 0.07859094440000262,
"p99": 0.0789242472800106,
"values": [
0.07691498300002308,
0.07757542400000261,
0.07688387599998237,
0.07664823700000056,
0.0790075730000126,
0.07727188699999488,
0.07831319199999598,
0.07816258200000448,
0.07640508599999407,
0.07523886800001378,
0.06792244999999753,
0.06712155200000325,
0.06761705199997436
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.332201641361808
},
"energy": null,
"efficiency": null
}
}
}