IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
eb998f2
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": "16c37a2d0a7e1a726b6a2a50e2fbcf32df3b575c", | |
"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": 1111.855104, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.909396167000011, | |
"mean": 4.909396167000011, | |
"stdev": 0.0, | |
"p50": 4.909396167000011, | |
"p90": 4.909396167000011, | |
"p95": 4.909396167000011, | |
"p99": 4.909396167000011, | |
"values": [ | |
4.909396167000011 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.73874921268887e-05, | |
"ram": 2.816611580293511e-06, | |
"gpu": 0, | |
"total": 7.020410370718221e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.455872, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6476066280000055, | |
"mean": 0.046257616285714676, | |
"stdev": 0.0018902670547640476, | |
"p50": 0.04597768650000944, | |
"p90": 0.04870513230001734, | |
"p95": 0.0488617121500198, | |
"p99": 0.049022937630023196, | |
"values": [ | |
0.04556605300001593, | |
0.04744049300001052, | |
0.048376802000007046, | |
0.04523342199996705, | |
0.045263987999987876, | |
0.04875319500001751, | |
0.04708703400001468, | |
0.048592986000016936, | |
0.046389320000002954, | |
0.04423143999997592, | |
0.04360291599999755, | |
0.04906324400002404, | |
0.044143504999965444, | |
0.043862230000002 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.23612327204249 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7696015160493178e-06, | |
"ram": 7.395270319147006e-08, | |
"gpu": 0.0, | |
"total": 1.843554219240788e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1084860.9599470524 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 966.242304, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3990703249999683, | |
"mean": 0.02850502321428345, | |
"stdev": 0.0009475635812639392, | |
"p50": 0.028403222000008554, | |
"p90": 0.029982372899979737, | |
"p95": 0.030149303099983628, | |
"p99": 0.03015682542000377, | |
"values": [ | |
0.028523913000015, | |
0.029381756000020687, | |
0.02859231100001125, | |
0.02828253100000211, | |
0.029604683000002296, | |
0.03014423999997007, | |
0.030158706000008806, | |
0.027864732000011827, | |
0.028697427999986758, | |
0.027453924999974788, | |
0.027936697000029653, | |
0.027555374999963078, | |
0.02727077399998734, | |
0.027603253999984645 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.08153606761192 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0556109625883784e-06, | |
"ram": 4.411821264476978e-08, | |
"gpu": 0.0, | |
"total": 1.0997291752331472e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 909314.7863318219 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39435388600003307, | |
"mean": 0.028168134714288078, | |
"stdev": 0.0009407873849213144, | |
"p50": 0.02806446900001447, | |
"p90": 0.029634440499984295, | |
"p95": 0.029802990499979386, | |
"p99": 0.0298085700999718, | |
"values": [ | |
0.02819054000002552, | |
0.0290444660000162, | |
0.028255962999992335, | |
0.027938398000003417, | |
0.02924991999998383, | |
0.029799234999984492, | |
0.029809964999969907, | |
0.027527974000008726, | |
0.0283598569999981, | |
0.027089976000013394, | |
0.027604797000037706, | |
0.027237210999999206, | |
0.02695340100001431, | |
0.027292182999985926 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.50110826091574 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |