IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5487349 verified
raw
history blame
9.52 kB
{
"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": "7942e991c4244fe46d972385a149d60d8f9017a5",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1120.60416,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.911183175000019,
"mean": 4.911183175000019,
"stdev": 0.0,
"p50": 4.911183175000019,
"p90": 4.911183175000019,
"p95": 4.911183175000019,
"p99": 4.911183175000019,
"values": [
4.911183175000019
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.871327368888875e-05,
"ram": 2.872040876692671e-06,
"gpu": 0,
"total": 7.158531456558141e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.09024,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6435222219999446,
"mean": 0.04596587299999604,
"stdev": 0.001945698753291796,
"p50": 0.046605359000011504,
"p90": 0.047873430599975106,
"p95": 0.047938000399977906,
"p99": 0.04794184007998524,
"values": [
0.044693272000017714,
0.047942799999987074,
0.04754145700002255,
0.047935415999972975,
0.04731582499999831,
0.04772879799998009,
0.04720582899994952,
0.04694396900003994,
0.046266748999983065,
0.04620867100004489,
0.04303495399994972,
0.04130654700003333,
0.0448161719999689,
0.0445817629999965
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.51054096155581
},
"energy": {
"unit": "kWh",
"cpu": 1.6940880023147838e-06,
"ram": 7.079920691191188e-08,
"gpu": 0.0,
"total": 1.7648872092266958e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1133216.8931499715
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.876672,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39310197500003596,
"mean": 0.02807871250000257,
"stdev": 0.0015257697598778576,
"p50": 0.02855496699999094,
"p90": 0.02940966810001555,
"p95": 0.029759346900016227,
"p99": 0.03020447417999776,
"values": [
0.028366002999973716,
0.029292828999984977,
0.028279911999959495,
0.02922186600000032,
0.029459742000028655,
0.030315755999993144,
0.029090560000042842,
0.02874393100000816,
0.02878694200001064,
0.027589567999996234,
0.024745289999998477,
0.025681593000001612,
0.02712039900001173,
0.026407584000025963
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.614168562746904
},
"energy": {
"unit": "kWh",
"cpu": 9.349531910185219e-07,
"ram": 3.9072816804670715e-08,
"gpu": 0.0,
"total": 9.740260078231925e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1026666.6310428976
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3864910920000284,
"mean": 0.0276065065714306,
"stdev": 0.0014502653904852056,
"p50": 0.028035273499995128,
"p90": 0.02888154110002574,
"p95": 0.029189194550022536,
"p99": 0.029581458110017705,
"values": [
0.027872768999998243,
0.028779738000025645,
0.0277407409999455,
0.028693706000012753,
0.028925171000025784,
0.0296795240000165,
0.02856867200000579,
0.028197777999992013,
0.02830684299999575,
0.027245473999983005,
0.02438061700001981,
0.025300039000001107,
0.02673802300000716,
0.026061996999999337
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.2233445732275
},
"energy": null,
"efficiency": null
}
}
}