IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
82a1d21 verified
raw
history blame
9.41 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.7712,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.5.0",
"optimum_benchmark_commit": "c1918e1b0948d4915a69908fd778b3f53a5aa600",
"transformers_version": "4.45.1",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1111.355392,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7624726589999966
],
"count": 1,
"total": 1.7624726589999966,
"mean": 1.7624726589999966,
"p50": 1.7624726589999966,
"p90": 1.7624726589999966,
"p95": 1.7624726589999966,
"p99": 1.7624726589999966,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 966.258688,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.04860224199998697,
0.04664931100001013,
0.047921244999997725,
0.05138281300000358,
0.053567377000007355,
0.04994544899997777,
0.049463955999982545,
0.052148819000024105,
0.05185927599998763,
0.05136400800000729,
0.04580561000000216,
0.046073511999992434,
0.046734641000000465
],
"count": 13,
"total": 0.6415182589999802,
"mean": 0.04934755838461386,
"p50": 0.049463955999982545,
"p90": 0.05209091040001681,
"p95": 0.0527162422000174,
"p99": 0.05339715004000936,
"stdev": 0.002488504775577069,
"stdev_": 5.042812364051963
},
"throughput": {
"unit": "tokens/s",
"value": 40.52885422237187
},
"energy": {
"unit": "kWh",
"cpu": 1.8153598166666394e-06,
"ram": 7.590954199804109e-08,
"gpu": 0.0,
"total": 1.8912693586646805e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1057490.8279654507
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 966.258688,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.029461717000003773,
0.027632560000000694,
0.030997956999982534,
0.03177231799998026,
0.031832320999996,
0.0303964100000087,
0.030629537000010032,
0.03191057699999078,
0.033573113000016974,
0.02947401000000127,
0.029424578000003976,
0.029053892999996833,
0.027955034000001433
],
"count": 13,
"total": 0.39411402499999326,
"mean": 0.03031646346153794,
"p50": 0.0303964100000087,
"p90": 0.03189492579999183,
"p95": 0.032575591400001255,
"p99": 0.03337360868001383,
"stdev": 0.0016347827596040088,
"stdev_": 5.392392690123748
},
"throughput": {
"unit": "tokens/s",
"value": 32.985377772334346
},
"energy": {
"unit": "kWh",
"cpu": 1.0796778138889644e-06,
"ram": 4.514298519462213e-08,
"gpu": 0.0,
"total": 1.1248207990835858e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 889030.5022939834
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.02904594800000382,
0.02722285199999419,
0.030441814999988992,
0.03123379899997758,
0.031243246999991925,
0.029840668000019832,
0.030072313000005124,
0.03133650099999841,
0.033004197000025215,
0.029062189000001126,
0.0290130070000032,
0.028673789999999144,
0.027539806000021372
],
"count": 13,
"total": 0.3877301320000299,
"mean": 0.02982539476923307,
"p50": 0.029840668000019832,
"p90": 0.03131785019999711,
"p95": 0.03200357940000913,
"p99": 0.032804073480022,
"stdev": 0.0015688467470817526,
"stdev_": 5.260103878658883
},
"throughput": {
"unit": "tokens/s",
"value": 33.52847490325822
},
"energy": null,
"efficiency": null
}
}
}