IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
46dac5d
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_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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "77ca106f4cf33f416814fc4a120313d806701176", | |
"transformers_version": "4.42.4", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1104.95744, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.755797784000038, | |
"mean": 4.755797784000038, | |
"stdev": 0.0, | |
"p50": 4.755797784000038, | |
"p90": 4.755797784000038, | |
"p95": 4.755797784000038, | |
"p99": 4.755797784000038, | |
"values": [ | |
4.755797784000038 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.668808990054661e-05, | |
"ram": 2.7873763362515547e-06, | |
"gpu": 0, | |
"total": 6.947546623679816e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.693376, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6271970240000542, | |
"mean": 0.041813134933336944, | |
"stdev": 0.0006665467344419679, | |
"p50": 0.041942667999990135, | |
"p90": 0.04249013359998344, | |
"p95": 0.04258957709997731, | |
"p99": 0.042690868220004174, | |
"values": [ | |
0.0417155449999882, | |
0.041942667999990135, | |
0.04159978899997441, | |
0.04201801900001101, | |
0.04174056200002951, | |
0.04207142900003191, | |
0.04222447399996554, | |
0.04242236300001423, | |
0.04253531399996291, | |
0.04179446200004122, | |
0.0415394060000267, | |
0.042204867999998896, | |
0.042716191000010895, | |
0.04027156099999729, | |
0.040400373000011314 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.83185961035014 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5970562828911675e-06, | |
"ram": 6.674404509376473e-08, | |
"gpu": 0.0, | |
"total": 1.6638003279849323e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1202067.3192331 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.693376, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3832796490000874, | |
"mean": 0.025551976600005823, | |
"stdev": 0.0007076568842449679, | |
"p50": 0.0255795390000344, | |
"p90": 0.026152554600025725, | |
"p95": 0.02663248340001587, | |
"p99": 0.027265847879992863, | |
"values": [ | |
0.0262931810000282, | |
0.025527462000013657, | |
0.025473390999991352, | |
0.02560215200003313, | |
0.02594161500002201, | |
0.025664097000003494, | |
0.0255795390000344, | |
0.025288036000006286, | |
0.025884999000027165, | |
0.02572669399995675, | |
0.025130171999990125, | |
0.02742418899998711, | |
0.024615079999989575, | |
0.02438321800002541, | |
0.02474582399997871 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.13591561444104 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.512359135680733e-07, | |
"ram": 3.9755485254735855e-08, | |
"gpu": 0.0, | |
"total": 9.909913988228087e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1009090.4938104332 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3779748279999353, | |
"mean": 0.025198321866662356, | |
"stdev": 0.0006671533093806081, | |
"p50": 0.025241138000012597, | |
"p90": 0.025809751199994936, | |
"p95": 0.026233251799993695, | |
"p99": 0.026772871159977285, | |
"values": [ | |
0.025944170000002487, | |
0.02519267799999625, | |
0.025110615000016878, | |
0.025259553000012147, | |
0.025608122999983607, | |
0.025294448000011016, | |
0.025241138000012597, | |
0.024960644999964643, | |
0.02550254599998425, | |
0.025364238000008754, | |
0.02478679099999681, | |
0.026907775999973182, | |
0.024328335999996398, | |
0.02406974400003037, | |
0.024404026999945927 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.68518242173145 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |