IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
313f9a6 verified
raw
history blame
9.64 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "6d9d5ca2350731ed23f64c0368b5a761377a7dae",
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1108.815872,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.773815698000021,
"mean": 4.773815698000021,
"stdev": 0.0,
"p50": 4.773815698000021,
"p90": 4.773815698000021,
"p95": 4.773815698000021,
"p99": 4.773815698000021,
"values": [
4.773815698000021
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.736308907222145e-05,
"ram": 2.815594771869588e-06,
"gpu": 0,
"total": 7.017868384409105e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 962.428928,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6503306759998964,
"mean": 0.04335537839999309,
"stdev": 0.002847847476386228,
"p50": 0.04523904399997036,
"p90": 0.04643622320000986,
"p95": 0.04653723750001291,
"p99": 0.046559718699988935,
"values": [
0.045968400999981895,
0.04523904399997036,
0.04532919299998639,
0.04656533899998294,
0.04606761700000561,
0.046302766999986034,
0.04652519400002575,
0.04577495899997075,
0.040696381000032034,
0.04105091700000685,
0.0412682329999825,
0.039553119000004244,
0.040237491999960184,
0.03992514700001948,
0.03982687299998133
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.13037814012757
},
"energy": {
"unit": "kWh",
"cpu": 1.5906079388889417e-06,
"ram": 6.647384153816841e-08,
"gpu": 0.0,
"total": 1.65708178042711e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1206941.0355139524
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 963.21536,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.40975941800013516,
"mean": 0.027317294533342345,
"stdev": 0.0018341591312586232,
"p50": 0.028332303000013326,
"p90": 0.029295446400021775,
"p95": 0.02947490550003522,
"p99": 0.02949580750003179,
"values": [
0.0289094240000054,
0.02836831100000836,
0.029043053999998847,
0.028332303000013326,
0.028666477999991002,
0.02950103300003093,
0.028717534000008982,
0.02946370800003706,
0.027603833000000577,
0.025073915999996643,
0.02652766099998871,
0.02461339400002771,
0.024639011000033406,
0.02500971599999957,
0.025290041999994628
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.60684621529566
},
"energy": {
"unit": "kWh",
"cpu": 9.739405423610675e-07,
"ram": 4.07051614277999e-08,
"gpu": 0.0,
"total": 1.0146457037888673e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 985565.6967410619
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.40383432499999117,
"mean": 0.026922288333332746,
"stdev": 0.001762597912307572,
"p50": 0.02785711300003868,
"p90": 0.028811492400006956,
"p95": 0.02904844590001403,
"p99": 0.02912239558002284,
"values": [
0.02840987799999084,
0.027892889999975523,
0.02851548600000342,
0.02785711300003868,
0.028170548999980838,
0.02900883000000931,
0.02823387799998045,
0.029140883000025042,
0.02727787199995646,
0.024757172000022365,
0.02623047399998768,
0.024297842999999375,
0.02433179500002325,
0.024713480999992044,
0.02499618100000589
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.14394510669772
},
"energy": null,
"efficiency": null
}
}
}