IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bf54140
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.7712, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "ff8375e29bf6c9f4dd663743008514a92e97ca6a", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"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": 1105.63328, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.990290260999984, | |
"mean": 4.990290260999984, | |
"stdev": 0.0, | |
"p50": 4.990290260999984, | |
"p90": 4.990290260999984, | |
"p95": 4.990290260999984, | |
"p99": 4.990290260999984, | |
"values": [ | |
4.990290260999984 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.890028106111177e-05, | |
"ram": 2.8814918388320444e-06, | |
"gpu": 0, | |
"total": 7.178177289994382e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.225856, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6649520860000564, | |
"mean": 0.0511501604615428, | |
"stdev": 0.0016103335127759123, | |
"p50": 0.05076379700000189, | |
"p90": 0.05341761680001582, | |
"p95": 0.05347942040000362, | |
"p99": 0.053492616079988696, | |
"values": [ | |
0.05000851400001238, | |
0.0514705079999942, | |
0.05346842400001606, | |
0.052812606999992795, | |
0.05321438800001488, | |
0.05349591499998496, | |
0.05076379700000189, | |
0.05040355300002375, | |
0.050748437999999396, | |
0.049935158000010915, | |
0.05085570800000028, | |
0.04981857900000364, | |
0.047956497000001264 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.10056160046063 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7599397125604016e-06, | |
"ram": 7.359248767093995e-08, | |
"gpu": 0.0, | |
"total": 1.8335322002313417e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1090790.7697217723 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.881216, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.4052096989999825, | |
"mean": 0.0311699768461525, | |
"stdev": 0.0015252333564518264, | |
"p50": 0.031267432000021245, | |
"p90": 0.03247372040001437, | |
"p95": 0.03273821480000834, | |
"p99": 0.032896637359997385, | |
"values": [ | |
0.031195277999984228, | |
0.03163886699999807, | |
0.03293624299999465, | |
0.03260619600001746, | |
0.03194381800000201, | |
0.03116059300000984, | |
0.031267432000021245, | |
0.03140097299998956, | |
0.031919451999982584, | |
0.031229371999984323, | |
0.030819456000017453, | |
0.03075045599999271, | |
0.026341562999988355 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 32.08215408486696 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.80510831143236e-07, | |
"ram": 4.100160616689863e-08, | |
"gpu": 0.0, | |
"total": 1.0215124373101345e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 978940.6016760976 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.39816043999999806, | |
"mean": 0.030627726153846006, | |
"stdev": 0.001479154196606281, | |
"p50": 0.03071469900001489, | |
"p90": 0.03189866320001329, | |
"p95": 0.032166269200007494, | |
"p99": 0.032332775439991794, | |
"values": [ | |
0.0306416029999923, | |
0.031077217000017754, | |
0.03237440199998787, | |
0.032027514000020574, | |
0.03138304999998809, | |
0.030621105000022908, | |
0.03071469900001489, | |
0.030849230999990596, | |
0.03138325999998415, | |
0.030689461999998002, | |
0.03022756900000445, | |
0.030200377999989314, | |
0.02597094999998717 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 32.6501547968956 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |