IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
880eb78
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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "5fb920708cddfa053b20bc358a29dcccc65d9215", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"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": 1122.746368, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.846772704000017, | |
"mean": 4.846772704000017, | |
"stdev": 0.0, | |
"p50": 4.846772704000017, | |
"p90": 4.846772704000017, | |
"p95": 4.846772704000017, | |
"p99": 4.846772704000017, | |
"values": [ | |
4.846772704000017 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.856007024999905e-05, | |
"ram": 2.865644416511742e-06, | |
"gpu": 0, | |
"total": 7.142571466651079e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 976.871424, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6568057470000213, | |
"mean": 0.04691469621428723, | |
"stdev": 0.0016598473749843893, | |
"p50": 0.047408099500003686, | |
"p90": 0.04782169569999155, | |
"p95": 0.048180877999995174, | |
"p99": 0.04870979080000353, | |
"values": [ | |
0.04624087900000973, | |
0.047750570000005155, | |
0.04742376900000522, | |
0.04586735099999828, | |
0.04884201900000562, | |
0.04781426799999622, | |
0.04686815099998398, | |
0.0475270420000129, | |
0.04782487899998955, | |
0.04713750400000549, | |
0.04739243000000215, | |
0.047518946999986156, | |
0.04712793400000237, | |
0.041470004000018434 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.63056486318944 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6371956497685204e-06, | |
"ram": 6.84212404457829e-08, | |
"gpu": 0.0, | |
"total": 1.7056168902143032e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1172596.2679395773 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 977.002496, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40253182200001447, | |
"mean": 0.028752273000001032, | |
"stdev": 0.0015278479634471052, | |
"p50": 0.029267891000003488, | |
"p90": 0.030072160299994266, | |
"p95": 0.03024137569999965, | |
"p99": 0.030381027940000818, | |
"values": [ | |
0.029864860000003546, | |
0.02931091600001423, | |
0.028172348999987662, | |
0.029289406000003737, | |
0.029414661000004116, | |
0.030147378999998864, | |
0.029058775000009973, | |
0.030415941000001112, | |
0.028970369000006713, | |
0.028044800000003534, | |
0.029896649999983538, | |
0.029246376000003238, | |
0.025378549000009798, | |
0.02532079099998441 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.77985896975742 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.794440117129754e-07, | |
"ram": 4.09296030919688e-08, | |
"gpu": 0.0, | |
"total": 1.0203736148049447e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 980033.1814647722 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39587520299997436, | |
"mean": 0.028276800214283884, | |
"stdev": 0.0014733183418912206, | |
"p50": 0.028786711499989792, | |
"p90": 0.02953435630000456, | |
"p95": 0.029726920250004694, | |
"p99": 0.029886869649994877, | |
"values": [ | |
0.029336242999988826, | |
0.028851567999993222, | |
0.027695477999998275, | |
0.02880266599999004, | |
0.028931327000009333, | |
0.029619262000011304, | |
0.02855809999999792, | |
0.029926856999992424, | |
0.028466578000006848, | |
0.027579089999989037, | |
0.029328367999994498, | |
0.028770756999989544, | |
0.025021301000009544, | |
0.024987608000003547 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.36468031820853 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |