IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
21325ed
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": "2cd267cd040017299b1552b6228f28f2c1190ba4", | |
"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": 1116.332032, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 5.0455330389999915, | |
"mean": 5.0455330389999915, | |
"stdev": 0.0, | |
"p50": 5.0455330389999915, | |
"p90": 5.0455330389999915, | |
"p95": 5.0455330389999915, | |
"p99": 5.0455330389999915, | |
"values": [ | |
5.0455330389999915 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.933255592981975e-05, | |
"ram": 2.8978697294974155e-06, | |
"gpu": 0, | |
"total": 7.223042565931717e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.9328, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6342799079999395, | |
"mean": 0.04530570771428139, | |
"stdev": 0.0005733304567881063, | |
"p50": 0.04518282949996433, | |
"p90": 0.045592576199999256, | |
"p95": 0.04612846194999065, | |
"p99": 0.04690166918998102, | |
"values": [ | |
0.0448074189999943, | |
0.04505645300002925, | |
0.04525058599995191, | |
0.04560803399999713, | |
0.045080729000005704, | |
0.04536965900001633, | |
0.0453686459999858, | |
0.04545676099996854, | |
0.045075870000005125, | |
0.045115072999976746, | |
0.045556508000004214, | |
0.044525963000012325, | |
0.047094970999978614, | |
0.04491323600001351 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.14454824572919 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7264504939461678e-06, | |
"ram": 7.215088039856709e-08, | |
"gpu": 0.0, | |
"total": 1.798601374344735e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1111975.1316372915 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.457088, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3847803660000295, | |
"mean": 0.027484311857144967, | |
"stdev": 0.0007059539412966667, | |
"p50": 0.027413872000010997, | |
"p90": 0.02811409860000822, | |
"p95": 0.028573896150001585, | |
"p99": 0.029152723229988735, | |
"values": [ | |
0.02683551100000159, | |
0.029297429999985525, | |
0.027657847000000402, | |
0.02758113400000184, | |
0.027052607999962675, | |
0.027950293000003512, | |
0.027246610000020155, | |
0.026822227000025123, | |
0.02786120700000083, | |
0.027934044000005542, | |
0.026853604999985237, | |
0.028184301000010237, | |
0.026865116000010403, | |
0.026638433000016448 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.3843928564664 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0056257094354051e-06, | |
"ram": 4.202641405800024e-08, | |
"gpu": 0.0, | |
"total": 1.0476521234934058e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 954515.31818166 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.37934884100002364, | |
"mean": 0.027096345785715976, | |
"stdev": 0.000691967626788171, | |
"p50": 0.027021023000003197, | |
"p90": 0.027617865799999208, | |
"p95": 0.028085376449990918, | |
"p99": 0.028755452089986873, | |
"values": [ | |
0.026476190000039423, | |
0.028922970999985864, | |
0.02728652400003284, | |
0.027197196999964035, | |
0.02669066099997508, | |
0.027579370000012204, | |
0.02684484900004236, | |
0.026444722000007914, | |
0.027472810999995545, | |
0.027547392000030868, | |
0.026488472999972146, | |
0.02763436399999364, | |
0.026492389999987154, | |
0.026270926999984567 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.90534538894011 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |