IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e8206da 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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "f1a71d4a6723274679bd4f9afe07052944616560",
"transformers_version": "4.43.1",
"transformers_commit": null,
"accelerate_version": "0.33.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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1111.650304,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.901883800999997,
"mean": 4.901883800999997,
"stdev": 0.0,
"p50": 4.901883800999997,
"p90": 4.901883800999997,
"p95": 4.901883800999997,
"p99": 4.901883800999997,
"values": [
4.901883800999997
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.797731982337105e-05,
"ram": 2.841277121741541e-06,
"gpu": 0,
"total": 7.081859694511259e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 965.12,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6427246509999804,
"mean": 0.04284831006666536,
"stdev": 0.0006311636538063451,
"p50": 0.04278591600001391,
"p90": 0.04331277199998453,
"p95": 0.043821338699984835,
"p99": 0.04462887494000256,
"values": [
0.04290019900000175,
0.042539415999982566,
0.04284888300000489,
0.04234945199999629,
0.043198834999998326,
0.042836270000009335,
0.042018354999981966,
0.04278591600001391,
0.04268017800001189,
0.04483075900000699,
0.0421879600000068,
0.04256924200001322,
0.04338872999997534,
0.04264891999997644,
0.042941536000000724
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.676286576723996
},
"energy": {
"unit": "kWh",
"cpu": 1.646887041904308e-06,
"ram": 6.882567059250277e-08,
"gpu": 0.0,
"total": 1.715712712496811e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1165696.3228357018
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 966.037504,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3996268129999976,
"mean": 0.026641787533333173,
"stdev": 0.0008989096825519444,
"p50": 0.02651713799997424,
"p90": 0.027096696600006,
"p95": 0.027840602800009148,
"p99": 0.029226662160004364,
"values": [
0.02651713799997424,
0.027098071000011714,
0.026098707999977933,
0.026627662999999302,
0.02689267800002426,
0.02626641000000518,
0.02607407100001069,
0.025817552999995996,
0.026958922000005714,
0.027094634999997425,
0.026728331999976263,
0.02957317700000317,
0.02574777300000619,
0.025948958000014954,
0.02618272399999455
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.53501895279507
},
"energy": {
"unit": "kWh",
"cpu": 9.557827976014885e-07,
"ram": 3.994575742541429e-08,
"gpu": 0.0,
"total": 9.957285550269022e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1004289.7684831208
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39444449099997314,
"mean": 0.02629629939999821,
"stdev": 0.0008606880006024261,
"p50": 0.026196389999995517,
"p90": 0.02676578580000637,
"p95": 0.027459940200003526,
"p99": 0.028752411239986484,
"values": [
0.026196389999995517,
0.02676754500001266,
0.02577056599997718,
0.026258134000016753,
0.026552674000015486,
0.025931154999994988,
0.025736410999996906,
0.02546874300000468,
0.026586347000005617,
0.026763146999996934,
0.02640369699997791,
0.029075528999982225,
0.025435912000006056,
0.025631505999996307,
0.025866734999993923
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.02816452569247
},
"energy": null,
"efficiency": null
}
}
}