IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e73ad9f verified
raw
history blame
9.16 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.342208,
"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.3.0",
"optimum_benchmark_commit": "2a75c0bc0d007cc875fa0f75ca41d02e46f917be",
"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.878848,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6410190400002307,
"mean": 0.042734602666682046,
"stdev": 0.0007645734494547459,
"p50": 0.04259791399999813,
"p90": 0.04380941720000919,
"p95": 0.044235093600013896,
"p99": 0.04453599952002605,
"values": [
0.044073894000007385,
0.042355582000027425,
0.042433097000014186,
0.043072949000020344,
0.042095909000011034,
0.04461122600002909,
0.043412702000011905,
0.04266819500003294,
0.04259791399999813,
0.0426569140000197,
0.04244439799998645,
0.041517481000028056,
0.042095869000036146,
0.042251217999989876,
0.04273169200001803
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.80048193262591
},
"energy": {
"unit": "kWh",
"cpu": 1.6302417825769497e-06,
"ram": 6.812903965141004e-08,
"gpu": 0.0,
"total": 1.6983708222283598e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1177599.1284258438
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.878848,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3978157489998466,
"mean": 0.026521049933323108,
"stdev": 0.0007898465591873841,
"p50": 0.02634014699998488,
"p90": 0.02721786480000219,
"p95": 0.027874555000005328,
"p99": 0.028749415000008865,
"values": [
0.026247230999956628,
0.025759541999946123,
0.026358108000010816,
0.026176008999982514,
0.026498139000011633,
0.02677835999998024,
0.025940058999992743,
0.02693584200000032,
0.02630447799998592,
0.026009768999983862,
0.02896813000000975,
0.025589045000003807,
0.026505009999993945,
0.027405880000003435,
0.02634014699998488
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.705897862796235
},
"energy": {
"unit": "kWh",
"cpu": 9.992545622366447e-07,
"ram": 4.176203656044209e-08,
"gpu": 0.0,
"total": 1.0410165987970872e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 960599.4766610998
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 29,
"total": 0.9946702519999917,
"mean": 0.03429897420689627,
"stdev": 0.008434624649680866,
"p50": 0.02847970999999916,
"p90": 0.04317723640000395,
"p95": 0.04363133880003715,
"p99": 0.044626943760008544,
"values": [
0.02590764799998624,
0.042711175000022195,
0.02543778299997257,
0.042771677000018826,
0.026024095999957808,
0.04342287000002898,
0.025847426999973777,
0.0424409010000204,
0.026165949000017008,
0.0449600759999953,
0.02643923799996628,
0.04377031800004261,
0.025600906999954987,
0.04302253500003417,
0.026604173999999148,
0.042945922000001246,
0.025960187000009682,
0.04301797599998736,
0.025691204999986894,
0.042777909999983876,
0.02847970999999916,
0.04202443500003028,
0.025276462000022093,
0.04242460199998277,
0.026211363000015808,
0.04256048499996723,
0.02703902600001129,
0.04311582799999769,
0.026018367000006037
]
},
"throughput": {
"unit": "tokens/s",
"value": 29.155390886265533
},
"energy": null,
"efficiency": null
}
}
}