IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e43e06a verified
raw
history blame
9.52 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.338112,
"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": "a5a350c56b08f0a4cf90d3c7d06fa41c798bfc83",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1109.446656,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.811339203000017,
"mean": 4.811339203000017,
"stdev": 0.0,
"p50": 4.811339203000017,
"p90": 4.811339203000017,
"p95": 4.811339203000017,
"p99": 4.811339203000017,
"values": [
4.811339203000017
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.75577952000004e-05,
"ram": 2.823740702523959e-06,
"gpu": 0,
"total": 7.038153590252436e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 963.309568,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6550214680000863,
"mean": 0.04678724771429188,
"stdev": 0.0014431989401707179,
"p50": 0.04709850300001506,
"p90": 0.048014754400009,
"p95": 0.04829311495000042,
"p99": 0.048691974189987094,
"values": [
0.04553417599998966,
0.04753792600001816,
0.0471082360000139,
0.04543263700000466,
0.04879168899998376,
0.04802465200000938,
0.04592027399999665,
0.047914306000024,
0.047991660000008096,
0.04708877000001621,
0.04684885300000019,
0.04719842400001539,
0.04681774499999847,
0.04281212000000778
]
},
"throughput": {
"unit": "tokens/s",
"value": 42.74669055579154
},
"energy": {
"unit": "kWh",
"cpu": 1.6510908182870456e-06,
"ram": 6.900148280794776e-08,
"gpu": 0.0,
"total": 1.7200923010949934e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1162728.301688706
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 963.833856,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40183614399998646,
"mean": 0.028702581714284747,
"stdev": 0.0011901941085403415,
"p50": 0.02917225049999672,
"p90": 0.02946884429998988,
"p95": 0.029590348699993285,
"p99": 0.029747264940004074,
"values": [
0.029361452000017607,
0.029484731999986025,
0.027937871999995423,
0.028755243999995628,
0.02978649400000677,
0.029135411999988037,
0.02939704900001061,
0.029431772999998884,
0.029209089000005406,
0.028005377999988923,
0.029289879000003793,
0.028906715999994503,
0.02823727000000531,
0.024897783999989542
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.84007152925614
},
"energy": {
"unit": "kWh",
"cpu": 9.345078806712803e-07,
"ram": 3.9056650163987807e-08,
"gpu": 0.0,
"total": 9.735645308352676e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1027153.2788299633
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3949787589999971,
"mean": 0.028212768499999794,
"stdev": 0.0011392530776603254,
"p50": 0.02868852949998768,
"p90": 0.02895333239998763,
"p95": 0.02905352779999646,
"p99": 0.029192475960009574,
"values": [
0.028836154000003944,
0.028960004999987632,
0.027491521999991164,
0.028231890000000703,
0.029227213000012853,
0.028638726999986375,
0.028877562000019452,
0.028937762999987626,
0.028741479000018444,
0.02755496999998286,
0.028738331999988986,
0.028416784000000916,
0.02775898900000584,
0.02456736900001033
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.44494401533147
},
"energy": null,
"efficiency": null
}
}
}