IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
88b7514 verified
raw
history blame
9.54 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": 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.15",
"optimum_benchmark_version": "0.5.0",
"optimum_benchmark_commit": "0482e71303c5bdcabeb9c58b677342ae335717ac",
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.0",
"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": 1114.624,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7580884980000064
],
"count": 1,
"total": 1.7580884980000064,
"mean": 1.7580884980000064,
"p50": 1.7580884980000064,
"p90": 1.7580884980000064,
"p95": 1.7580884980000064,
"p99": 1.7580884980000064,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.797632,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.047393451000004916,
0.04693596999999272,
0.04655210599997872,
0.047587232000012136,
0.04686139200003936,
0.04712186599999768,
0.04715488700003334,
0.047213034999970205,
0.04653857099998504,
0.04212177900001279,
0.041573648999985835,
0.04181774299996732,
0.042750948000048083,
0.04205929200003311
],
"count": 14,
"total": 0.6336819210000613,
"mean": 0.045262994357147236,
"p50": 0.04670674900000904,
"p90": 0.0473393261999945,
"p95": 0.047461274350007444,
"p99": 0.047562040470011197,
"stdev": 0.0024104418535451713,
"stdev_": 5.325414033648773
},
"throughput": {
"unit": "tokens/s",
"value": 44.18620615814806
},
"energy": {
"unit": "kWh",
"cpu": 1.6760617789352048e-06,
"ram": 7.004275067025519e-08,
"gpu": 0.0,
"total": 1.74610452960546e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1145406.7990144375
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 969.797632,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.02940661299999192,
0.029162589999998545,
0.02920856600002253,
0.029257696000001943,
0.02922788099999707,
0.029646549999995386,
0.02912886699999717,
0.029084565000005114,
0.027718970000023546,
0.025703136999993603,
0.025729394999984834,
0.025136702999986937,
0.025313160999985485,
0.02525192699999934
],
"count": 14,
"total": 0.3889766209999834,
"mean": 0.027784044357141675,
"p50": 0.029106716000001143,
"p90": 0.029361937899994927,
"p95": 0.029490590949993133,
"p99": 0.029615358189994934,
"stdev": 0.0018100673781475069,
"stdev_": 6.514772849051556
},
"throughput": {
"unit": "tokens/s",
"value": 35.991880344913056
},
"energy": {
"unit": "kWh",
"cpu": 9.8587899180561e-07,
"ram": 4.120370593705953e-08,
"gpu": 0.0,
"total": 1.0270826977426693e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 973631.4341559917
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.02886362399999598,
0.02866091700002471,
0.028679251000028216,
0.028724253999996563,
0.02869803599998022,
0.029082651000010173,
0.028624739999997928,
0.028573224000012942,
0.027321521000033044,
0.025328188999992562,
0.025355108999974618,
0.024789226999985203,
0.024951317999978073,
0.024871619999998984
],
"count": 14,
"total": 0.3825236810000092,
"mean": 0.02732312007142923,
"p50": 0.028598982000005435,
"p90": 0.028821812999996154,
"p95": 0.028940283450000947,
"p99": 0.02905417749000833,
"stdev": 0.0017344651173314288,
"stdev_": 6.34797604664884
},
"throughput": {
"unit": "tokens/s",
"value": 36.599041302228976
},
"energy": null,
"efficiency": null
}
}
}