IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9b49e34
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.338112, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "78f186000310f5748c0db3b53c71221ca44cb3f0", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 962.985984, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6407253459999538, | |
"mean": 0.04576609614285384, | |
"stdev": 0.0029179753610490827, | |
"p50": 0.04733956850000709, | |
"p90": 0.04825957469998343, | |
"p95": 0.048443318949985326, | |
"p99": 0.048696921389991134, | |
"values": [ | |
0.04827262499998142, | |
0.04718599299999937, | |
0.048760321999992584, | |
0.046635047999984636, | |
0.04803133699999762, | |
0.04749314400001481, | |
0.04822912399998813, | |
0.04768526199998746, | |
0.04816834100000733, | |
0.04460194699998965, | |
0.04136957299999722, | |
0.041516865999994934, | |
0.040901963000010255, | |
0.04187380100000837 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.70047193357327 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6432745037255466e-06, | |
"ram": 6.86739763723744e-08, | |
"gpu": 0.0, | |
"total": 1.7119484800979208e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1168259.4559654056 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 962.985984, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40104458000007526, | |
"mean": 0.028646041428576803, | |
"stdev": 0.002140855289535891, | |
"p50": 0.030019106500006387, | |
"p90": 0.030479892900007143, | |
"p95": 0.030652394150004626, | |
"p99": 0.03082554843001219, | |
"values": [ | |
0.030333010000020977, | |
0.030535847999999532, | |
0.030349331000024904, | |
0.030868837000014082, | |
0.030078616999986707, | |
0.030164116999998214, | |
0.02999801800001478, | |
0.030040194999997993, | |
0.02959763199999088, | |
0.0256508000000224, | |
0.02569404999999847, | |
0.025337608000000955, | |
0.02655729700001075, | |
0.02583921999999461 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.908837316782524 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.76991421646542e-07, | |
"ram": 4.0831445470487895e-08, | |
"gpu": 0.0, | |
"total": 1.01782286711703e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 982489.2250971793 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3951560120000863, | |
"mean": 0.028225429428577593, | |
"stdev": 0.0020672507801630553, | |
"p50": 0.029552383000009286, | |
"p90": 0.0299911192000053, | |
"p95": 0.030163870800006976, | |
"p99": 0.03034490776000723, | |
"values": [ | |
0.029864208000020653, | |
0.030042019000006803, | |
0.029872353000001794, | |
0.030390167000007295, | |
0.029609905000000936, | |
0.029680065999997396, | |
0.029547139000015932, | |
0.02955762700000264, | |
0.02912078500000348, | |
0.025340593000009903, | |
0.0253594870000029, | |
0.025029514000010522, | |
0.026227091999999175, | |
0.02551505700000689 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.42904466805111 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |