IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a87d9b7 verified
raw
history blame
8.52 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.338112,
"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.2.1",
"optimum_benchmark_commit": "156844ab796ad7cf3da92a0bf30b174d1bcc0aa5",
"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.833792,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6197719770000276,
"mean": 0.041318131800001844,
"stdev": 0.0007676791697630694,
"p50": 0.041397320000015725,
"p90": 0.042087863400007565,
"p95": 0.04226347980000753,
"p99": 0.042426213559999156,
"values": [
0.04188576600000715,
0.041158572000000504,
0.04156724900002473,
0.04173474300000635,
0.040896419999995715,
0.041305928999975094,
0.041227991999988944,
0.04195520700000088,
0.04192775500001744,
0.041397320000015725,
0.04217630100001202,
0.04246689699999706,
0.04037619400000381,
0.039947230999985095,
0.0397484009999971
]
},
"throughput": {
"unit": "tokens/s",
"value": 48.404899081131994
},
"energy": {
"unit": "kWh",
"cpu": 1.5870067278544112e-06,
"ram": 6.632338368884424e-08,
"gpu": 0.0,
"total": 1.6533301115432551e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1209679.7766134893
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.833792,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.38574136200003295,
"mean": 0.025716090800002197,
"stdev": 0.0007786238787018408,
"p50": 0.02562230600000248,
"p90": 0.02660513039998591,
"p95": 0.027013234999989776,
"p99": 0.027520723800004702,
"values": [
0.0254299460000027,
0.025180156999994097,
0.02674136599998178,
0.02528590500000405,
0.025954731000013,
0.02528267900001424,
0.02611130400001116,
0.025806923000004645,
0.026400776999992104,
0.025493273999984467,
0.027647596000008434,
0.02562230600000248,
0.025727234000015642,
0.024508502000003318,
0.02454866200000083
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.88615916692574
},
"energy": {
"unit": "kWh",
"cpu": 9.475515650378327e-07,
"ram": 3.96013953971443e-08,
"gpu": 0.0,
"total": 9.871529604349773e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1013014.233943402
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.9384147629999973,
"mean": 0.06702962592857123,
"stdev": 0.0014206117114848478,
"p50": 0.06700701249999952,
"p90": 0.06835777959999803,
"p95": 0.06883164804999779,
"p99": 0.06950045280999945,
"values": [
0.0663478970000142,
0.06830245300000115,
0.06708894599998416,
0.06685752199999229,
0.06658432000000403,
0.0673371320000058,
0.0677579919999971,
0.06838149099999669,
0.06692507900001488,
0.06966765399999986,
0.06828978999999435,
0.0661225530000138,
0.06447672199999488,
0.0642752119999841
]
},
"throughput": {
"unit": "tokens/s",
"value": 14.918776379054089
},
"energy": null,
"efficiency": null
}
}
}