IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bc2b429 verified
raw
history blame
9.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_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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "8bf68d01ce920e01ece8935a1cc6d7e3f17c2d2b",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1115.385856,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.764692714999995,
"mean": 4.764692714999995,
"stdev": 0.0,
"p50": 4.764692714999995,
"p90": 4.764692714999995,
"p95": 4.764692714999995,
"p99": 4.764692714999995,
"values": [
4.764692714999995
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.854515473047893e-05,
"ram": 2.8650170949288166e-06,
"gpu": 0,
"total": 7.141017182540775e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 968.736768,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6185510840000177,
"mean": 0.04418222028571555,
"stdev": 0.0022722082983073176,
"p50": 0.044874882000016214,
"p90": 0.04613752710000938,
"p95": 0.046267782800008206,
"p99": 0.04642966295999003,
"values": [
0.04576411200000052,
0.045506383999992295,
0.04647013299998548,
0.04419520999999804,
0.04615882500002044,
0.04570391100000393,
0.046087831999983564,
0.04508254700002112,
0.044667217000011306,
0.044504342999999835,
0.044292370000022174,
0.03969119999999293,
0.03998523699999623,
0.040441762999989805
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.26707773096263
},
"energy": {
"unit": "kWh",
"cpu": 1.555152173735138e-06,
"ram": 6.499256309128808e-08,
"gpu": 0.0,
"total": 1.6201447368264261e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1234457.6101994705
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 969.5232,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3839011620000292,
"mean": 0.02742151157143066,
"stdev": 0.001662651041841783,
"p50": 0.028119652499995595,
"p90": 0.028932262000006405,
"p95": 0.028964184550007134,
"p99": 0.02900685211000706,
"values": [
0.028547276000011834,
0.028672508999989077,
0.02840572300002009,
0.02901751900000704,
0.028924786000004588,
0.02893546600000718,
0.02787169300000869,
0.0283676119999825,
0.02754392399998551,
0.027811672000012777,
0.025965172999974584,
0.024175481000014543,
0.02531030800000167,
0.024352020000009134
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.467719782517705
},
"energy": {
"unit": "kWh",
"cpu": 9.161814856223571e-07,
"ram": 3.8289013891677275e-08,
"gpu": 0.0,
"total": 9.544704995140342e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1047701.3176511448
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3780712819999792,
"mean": 0.027005091571427085,
"stdev": 0.0016000674250394359,
"p50": 0.02764668999999742,
"p90": 0.028489631299993334,
"p95": 0.02851155735000077,
"p99": 0.028539627470004804,
"values": [
0.028081030999999257,
0.028219247999999197,
0.02798275800000738,
0.02854664500000581,
0.028482554999982312,
0.028492663999998058,
0.02740077900000415,
0.02789260099999069,
0.02705815199999506,
0.0273481810000078,
0.025662421999982143,
0.023880955000009862,
0.02497039700000414,
0.02405289399999333
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.03005403092418
},
"energy": null,
"efficiency": null
}
}
}