IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ad41bab
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": "378d8dddb2c87c406ac8d3231c1c44d5a290b874", | |
"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": 1105.985536, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.867805047000019, | |
"mean": 4.867805047000019, | |
"stdev": 0.0, | |
"p50": 4.867805047000019, | |
"p90": 4.867805047000019, | |
"p95": 4.867805047000019, | |
"p99": 4.867805047000019, | |
"values": [ | |
4.867805047000019 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.734600994322036e-05, | |
"ram": 2.8148961007616433e-06, | |
"gpu": 0, | |
"total": 7.016090604398201e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.820352, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6179320429999962, | |
"mean": 0.044138003071428296, | |
"stdev": 0.0012654783999715633, | |
"p50": 0.04458579100000293, | |
"p90": 0.04525961130000269, | |
"p95": 0.04561339499999519, | |
"p99": 0.04606077179998181, | |
"values": [ | |
0.0434148139999877, | |
0.04285000699999841, | |
0.043853345000002264, | |
0.04467974199999958, | |
0.044883403000000044, | |
0.04617261599997846, | |
0.045136726999999155, | |
0.045312276000004204, | |
0.04509781400000179, | |
0.04449184000000628, | |
0.04320271099999218, | |
0.04484442000000399, | |
0.04276973700001463, | |
0.04122259100000747 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.31242604617637 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6447081610008523e-06, | |
"ram": 6.873398907700334e-08, | |
"gpu": 0.0, | |
"total": 1.7134421500778559e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1167241.0416127113 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.737856, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3847741840000083, | |
"mean": 0.02748387028571488, | |
"stdev": 0.002210651018898422, | |
"p50": 0.0269253780000156, | |
"p90": 0.028894968299985634, | |
"p95": 0.030916898999996077, | |
"p99": 0.03379254060001073, | |
"values": [ | |
0.026571200000006456, | |
0.026304140000007692, | |
0.027310303000007252, | |
0.02724415899999144, | |
0.026704749999993282, | |
0.027738615000004074, | |
0.02673744200001238, | |
0.034511451000014404, | |
0.02869336199998429, | |
0.027113314000018818, | |
0.02898137099998621, | |
0.02526262099999599, | |
0.026524201999990282, | |
0.02507725399999572 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.3849774287344 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0385475114539827e-06, | |
"ram": 4.339951009333733e-08, | |
"gpu": 0.0, | |
"total": 1.0819470215473194e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 924259.672687 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3795577810000168, | |
"mean": 0.02711127007142977, | |
"stdev": 0.0021878225857709915, | |
"p50": 0.02658559700000751, | |
"p90": 0.02843733869999312, | |
"p95": 0.030460602249998203, | |
"p99": 0.03338774205000078, | |
"values": [ | |
0.026190938000013375, | |
0.02596803100001921, | |
0.026769110000003593, | |
0.02687248300000533, | |
0.026352871999989702, | |
0.027365577000011854, | |
0.026402084000011428, | |
0.034119527000001426, | |
0.028313500999985308, | |
0.02678215500000647, | |
0.028490411999996468, | |
0.024948663000003535, | |
0.02621359099998699, | |
0.024768836999982113 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.885029633997625 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |