IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e2a98fa
verified
{ | |
"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": "94ccda0ad71bebc72e235e85dbfd6165ea4a634c", | |
"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.267072, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 5.059916507999958, | |
"mean": 5.059916507999958, | |
"stdev": 0.0, | |
"p50": 5.059916507999958, | |
"p90": 5.059916507999958, | |
"p95": 5.059916507999958, | |
"p99": 5.059916507999958, | |
"values": [ | |
5.059916507999958 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.94724029964871e-05, | |
"ram": 2.903768870589829e-06, | |
"gpu": 0, | |
"total": 7.237617186707693e-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": 12, | |
"total": 0.654170833000137, | |
"mean": 0.05451423608334475, | |
"stdev": 0.010891136006106018, | |
"p50": 0.05319427500000984, | |
"p90": 0.056886411800019236, | |
"p95": 0.07084285280000698, | |
"p99": 0.084258973759994, | |
"values": [ | |
0.053334745000029216, | |
0.05476773800000956, | |
0.05270172299998421, | |
0.05237410600000203, | |
0.05305380499999046, | |
0.05460927699999729, | |
0.05712182000002031, | |
0.05410815900000898, | |
0.04915121000004774, | |
0.08761300399999072, | |
0.04267239200004269, | |
0.042662854000013795 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.68766442846738 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.880382608484339e-06, | |
"ram": 7.858402694523646e-08, | |
"gpu": 0.0, | |
"total": 1.9589666354295757e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1020946.4336085675 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.654272, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.3811080689998221, | |
"mean": 0.03175900574998517, | |
"stdev": 0.003371935521193409, | |
"p50": 0.032027741500002094, | |
"p90": 0.03424520379997489, | |
"p95": 0.03650782654997613, | |
"p99": 0.03865350370997987, | |
"values": [ | |
0.0343133839999723, | |
0.03363158199999816, | |
0.03177620700000716, | |
0.03320223699995495, | |
0.03356489899999815, | |
0.032279275999997026, | |
0.03918992299998081, | |
0.031322944999999436, | |
0.029774076999956378, | |
0.028199771000004148, | |
0.025907746999962455, | |
0.027946020999991106 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 31.487131803566204 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.077478338170935e-07, | |
"ram": 3.793452996790492e-08, | |
"gpu": 0.0, | |
"total": 9.456823637849981e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1057437.505757854 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.3750195659999349, | |
"mean": 0.031251630499994576, | |
"stdev": 0.0033131549496120518, | |
"p50": 0.03150615049997896, | |
"p90": 0.03371755439998765, | |
"p95": 0.035946965199974555, | |
"p99": 0.038058901839964396, | |
"values": [ | |
0.03378702999998495, | |
0.03309227400001191, | |
0.03126012100000253, | |
0.03266412099998206, | |
0.03302315600001293, | |
0.03175217999995539, | |
0.03858688599996185, | |
0.030764962000034757, | |
0.029244335999976556, | |
0.027858910000020387, | |
0.025585038999963672, | |
0.027400551000027917 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 31.998330455115727 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |