IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8029155
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-1024-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "0aac0108c378c328492774ddb431ea89a3c2b507", | |
"transformers_version": "4.43.3", | |
"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.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.843392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.840248218999989, | |
"mean": 4.840248218999989, | |
"stdev": 0.0, | |
"p50": 4.840248218999989, | |
"p90": 4.840248218999989, | |
"p95": 4.840248218999989, | |
"p99": 4.840248218999989, | |
"values": [ | |
4.840248218999989 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.730322043100994e-05, | |
"ram": 2.813084886154229e-06, | |
"gpu": 0, | |
"total": 7.011630531716417e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.313088, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6244115300000885, | |
"mean": 0.0446008235714349, | |
"stdev": 0.0022388115498551066, | |
"p50": 0.04524106900001357, | |
"p90": 0.04678326900001366, | |
"p95": 0.046893983900019975, | |
"p99": 0.04692554478002649, | |
"values": [ | |
0.04506481900000381, | |
0.04657450100000915, | |
0.046872741000015594, | |
0.0444626889999995, | |
0.04693343500002811, | |
0.046117122999987714, | |
0.045356595999976435, | |
0.045725328000003174, | |
0.04562339599999632, | |
0.0451255420000507, | |
0.04491167100002258, | |
0.04008014499999035, | |
0.0411560040000154, | |
0.040407539999989694 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.842221283127216 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5893072552151152e-06, | |
"ram": 6.641946055260631e-08, | |
"gpu": 0.0, | |
"total": 1.6557267157677216e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1207928.8091166946 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.09952, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39037739399987004, | |
"mean": 0.02788409957141929, | |
"stdev": 0.0016869951682740964, | |
"p50": 0.028731791499978954, | |
"p90": 0.029143670800004885, | |
"p95": 0.02933088200000782, | |
"p99": 0.02960763640002085, | |
"values": [ | |
0.028798316000006707, | |
0.0290247309999927, | |
0.027947980999954325, | |
0.028419514999995954, | |
0.029144604999999046, | |
0.029141491000018505, | |
0.02884344200003852, | |
0.02967682500002411, | |
0.0286652669999512, | |
0.02899006599994891, | |
0.024651915999982066, | |
0.024967849999995906, | |
0.027196951999997054, | |
0.024908436999965033 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.862732358945614 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.704472455713492e-07, | |
"ram": 4.055792154190671e-08, | |
"gpu": 0.0, | |
"total": 1.0110051671132554e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 989114.6282222486 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.38423029899996664, | |
"mean": 0.027445021357140473, | |
"stdev": 0.0016169181714678306, | |
"p50": 0.028256059499966568, | |
"p90": 0.028662579099994902, | |
"p95": 0.028838739399986935, | |
"p99": 0.029094685479992676, | |
"values": [ | |
0.028314057999978104, | |
0.028556572000013603, | |
0.027486423999960152, | |
0.027943492000019887, | |
0.02866646799998307, | |
0.028653505000022506, | |
0.028350517000035325, | |
0.029158671999994112, | |
0.028198060999955032, | |
0.028465552000000116, | |
0.02433939999997392, | |
0.024649753000005603, | |
0.026877322000018466, | |
0.024570503000006738 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.43648102827314 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |