IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8e18077 verified
raw
history blame
8.61 kB
{
"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": {},
"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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.338112,
"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": "10c9775dced65978a85f54ff6905a3aea7d61cca",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 961.908736,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6414798319999306,
"mean": 0.04276532213332871,
"stdev": 0.001357052036040282,
"p50": 0.0424002459999997,
"p90": 0.04398772619999249,
"p95": 0.044713931399994064,
"p99": 0.04602963347999719,
"values": [
0.042279779000011786,
0.04291965599998093,
0.04271365799999671,
0.044009090999992395,
0.042203035,
0.043153376999981674,
0.04395567899999264,
0.04388750999999047,
0.0419444870000234,
0.0424002459999997,
0.042068709999995235,
0.04203915899998378,
0.04635855899999797,
0.04072102499998209,
0.04082586100000185
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.76686390352993
},
"energy": {
"unit": "kWh",
"cpu": 1.6191736857096356e-06,
"ram": 6.766742630272045e-08,
"gpu": 0.0,
"total": 1.6868411120123558e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1185648.1240334806
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 961.908736,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3923962130001257,
"mean": 0.026159747533341715,
"stdev": 0.0007314638575776776,
"p50": 0.026228414000001976,
"p90": 0.02696258080001144,
"p95": 0.027090771200013818,
"p99": 0.027184282240015706,
"values": [
0.025839221000012458,
0.026562163000022565,
0.026140067000000045,
0.027207660000016176,
0.025852906000011444,
0.026427699999999277,
0.02704067600001281,
0.02684543800000938,
0.026228414000001976,
0.025676694000026146,
0.026399392000001853,
0.026097254999996267,
0.02677759200000196,
0.024568122999994557,
0.024732912000018814
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.22666861465147
},
"energy": {
"unit": "kWh",
"cpu": 9.670032229688433e-07,
"ram": 4.041078584515176e-08,
"gpu": 0.0,
"total": 1.0074140088139951e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 992640.5541821644
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3870888670000454,
"mean": 0.025805924466669693,
"stdev": 0.0007128265241325018,
"p50": 0.025884636000000683,
"p90": 0.026596047600003205,
"p95": 0.02671607870001367,
"p99": 0.026823099740021235,
"values": [
0.02550944899999763,
0.026186985999999024,
0.025780789000009463,
0.026849855000023126,
0.025529094999996005,
0.025898943000015606,
0.026658746000009614,
0.026501999999993586,
0.025884636000000683,
0.02533705300001543,
0.026068750999996837,
0.02574249899998904,
0.02645100899999875,
0.024259223000001384,
0.024429832999999235
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.7507915591854
},
"energy": null,
"efficiency": null
}
}
}