IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
34b252a
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "94e541958c0ccf6b26acb5568dd64a080a1112b6", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.747776, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6636077749999743, | |
"mean": 0.047400555357141015, | |
"stdev": 0.0023962289507451027, | |
"p50": 0.046259964499995476, | |
"p90": 0.05131771320001519, | |
"p95": 0.051792201600004265, | |
"p99": 0.05201099471998049, | |
"values": [ | |
0.052065692999974544, | |
0.05164493700002026, | |
0.05006016900000532, | |
0.04563982700000224, | |
0.04568044299998064, | |
0.045446806999990486, | |
0.04622921699998983, | |
0.04660472800000548, | |
0.04590591400000221, | |
0.04629071200000112, | |
0.05055419100000336, | |
0.046370289999998704, | |
0.045997115000005806, | |
0.04511773199999425 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.19359847012203 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7608868903008062e-06, | |
"ram": 7.35901791885048e-08, | |
"gpu": 0.0, | |
"total": 1.8344770694893111e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1090228.9449476562 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.747776, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40726781399996526, | |
"mean": 0.02909055814285466, | |
"stdev": 0.0014010748697467464, | |
"p50": 0.028648203000003036, | |
"p90": 0.03147999379999931, | |
"p95": 0.031959974499996234, | |
"p99": 0.032082127699990505, | |
"values": [ | |
0.03187775600000009, | |
0.032112665999989076, | |
0.028450327999991032, | |
0.02808924499998966, | |
0.028316950000004226, | |
0.028535067000007075, | |
0.028761338999998998, | |
0.0281586339999933, | |
0.02883392399999707, | |
0.029108307000001332, | |
0.029428244999991193, | |
0.027673439000011513, | |
0.030551881999997477, | |
0.027370031999993216 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.37541469948125 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.3128422131462198e-06, | |
"ram": 5.4864353309766875e-08, | |
"gpu": 0.0, | |
"total": 1.3677065664559866e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 731150.9826199115 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.9873043659999894, | |
"mean": 0.07594648969230687, | |
"stdev": 0.003004697882121802, | |
"p50": 0.0748112219999939, | |
"p90": 0.07975899840000125, | |
"p95": 0.08153267520000326, | |
"p99": 0.0833270918400035, | |
"values": [ | |
0.08377569600000356, | |
0.07864567999999394, | |
0.07376636199998643, | |
0.07401878199999601, | |
0.07398743400000285, | |
0.07498504700001263, | |
0.0748112219999939, | |
0.07472777600000313, | |
0.07539525199999275, | |
0.08003732800000307, | |
0.07406528999999296, | |
0.07657758900001, | |
0.07251090799999815 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 13.167165514185664 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |