IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ab7f043
verified
{ | |
"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": "32a4520c8382454cad8518352084ea1935f4f8cd", | |
"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": 1119.940608, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.9139219019999985, | |
"mean": 4.9139219019999985, | |
"stdev": 0.0, | |
"p50": 4.9139219019999985, | |
"p90": 4.9139219019999985, | |
"p95": 4.9139219019999985, | |
"p99": 4.9139219019999985, | |
"values": [ | |
4.9139219019999985 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.918779692222251e-05, | |
"ram": 2.8918593467628895e-06, | |
"gpu": 0, | |
"total": 7.20796562689854e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.299712, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6342725380000331, | |
"mean": 0.04879019523077178, | |
"stdev": 0.0010276215441199952, | |
"p50": 0.04903836800002637, | |
"p90": 0.04941613140001096, | |
"p95": 0.05013333080000848, | |
"p99": 0.05097553975999745, | |
"values": [ | |
0.04724184899998818, | |
0.04889021200000343, | |
0.04935469699998407, | |
0.0478679560000046, | |
0.049253318000012314, | |
0.05118609199999469, | |
0.04725890099999219, | |
0.0491932970000164, | |
0.049431490000017675, | |
0.04903836800002637, | |
0.047810669000000416, | |
0.049221679999988055, | |
0.04852400900000475 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.99184253189067 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.658633997222231e-06, | |
"ram": 6.931691410670958e-08, | |
"gpu": 0.0, | |
"total": 1.7279509113289407e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1157440.2877346964 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.086144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3827559699999483, | |
"mean": 0.029442766923072947, | |
"stdev": 0.0012168192051174643, | |
"p50": 0.029398073999999497, | |
"p90": 0.030734916200009368, | |
"p95": 0.031329358200008525, | |
"p99": 0.03189778284000454, | |
"values": [ | |
0.030855671000011853, | |
0.02932093999999097, | |
0.02841106400001081, | |
0.029643831999976555, | |
0.02958736699997644, | |
0.03203988900000354, | |
0.0284215329999995, | |
0.029720174999994242, | |
0.030251896999999417, | |
0.02898875099998577, | |
0.029390831000000617, | |
0.029398073999999497, | |
0.026725945999999112 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.96419917369742 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.82564339814852e-07, | |
"ram": 4.1059599513510653e-08, | |
"gpu": 0.0, | |
"total": 1.0236239393283624e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 976921.2711614942 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.37578276899995444, | |
"mean": 0.02890636684615034, | |
"stdev": 0.0011914444583380616, | |
"p50": 0.028847407000000658, | |
"p90": 0.0301989608000099, | |
"p95": 0.030776070800004617, | |
"p99": 0.0313209365599937, | |
"values": [ | |
0.03032201600001372, | |
0.02878439999997795, | |
0.02788120700000718, | |
0.02911605799999961, | |
0.02905753899997876, | |
0.03145715299999097, | |
0.027807367999997723, | |
0.029179596999995283, | |
0.029706739999994625, | |
0.0284676999999931, | |
0.028847407000000658, | |
0.028835094000015715, | |
0.02632048999998915 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.59445475532588 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |