IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d90a1ba
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.3504, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "14fc8ac8cd252f949be10158bdcefa6a3b7c596a", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.043264, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6309578720000104, | |
"mean": 0.04853522092307772, | |
"stdev": 0.0008254637349509361, | |
"p50": 0.04879436800001713, | |
"p90": 0.04922571440001775, | |
"p95": 0.049301850400013336, | |
"p99": 0.04938823887999888, | |
"values": [ | |
0.04853592399996387, | |
0.048990933000027326, | |
0.04687614700003451, | |
0.04920913199998722, | |
0.04886442800000168, | |
0.04655776199996353, | |
0.048533420000012484, | |
0.04885644199998751, | |
0.04849170099998901, | |
0.04922986000002538, | |
0.049409835999995266, | |
0.048607919000005495, | |
0.04879436800001713 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.20718855220111 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6522086880825184e-06, | |
"ram": 6.904814951111701e-08, | |
"gpu": 0.0, | |
"total": 1.7212568375936354e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1161941.6442208912 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.043264, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.40103090599995994, | |
"mean": 0.030848531230766148, | |
"stdev": 0.00139118196107585, | |
"p50": 0.030538220999972054, | |
"p90": 0.03239292839997461, | |
"p95": 0.03361176039995825, | |
"p99": 0.03460512087995539, | |
"values": [ | |
0.030323511000005965, | |
0.02981858900000134, | |
0.03049071200001663, | |
0.030828802000030464, | |
0.030538220999972054, | |
0.030628019000005224, | |
0.030577413999992586, | |
0.02995942100000093, | |
0.029239336999978605, | |
0.030669428000010157, | |
0.030320031000030667, | |
0.032783959999960643, | |
0.03485346099995468 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 32.416454207151055 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.89061649198885e-07, | |
"ram": 4.1329149471241404e-08, | |
"gpu": 0.0, | |
"total": 1.030390798670127e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 970505.5608907312 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9534805900000265, | |
"mean": 0.07945671583333554, | |
"stdev": 0.0017619588244070044, | |
"p50": 0.07926613950002093, | |
"p90": 0.08125632200003566, | |
"p95": 0.08247927385001219, | |
"p99": 0.08355082036998454, | |
"values": [ | |
0.07887983300003043, | |
0.07729909199997564, | |
0.08011285399999224, | |
0.07948217800003476, | |
0.07717256600000155, | |
0.07905010100000709, | |
0.07895152699995833, | |
0.07768140500002119, | |
0.07995787800001608, | |
0.07969107499997108, | |
0.08138337400004048, | |
0.08381870699997762 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.585468572569125 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |