IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7566824
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.767104, | |
"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": "133b3e1f0b6eadebe8382f2e06a0a3f0fdd891de", | |
"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": 1116.028928, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.814876508999987, | |
"mean": 4.814876508999987, | |
"stdev": 0.0, | |
"p50": 4.814876508999987, | |
"p90": 4.814876508999987, | |
"p95": 4.814876508999987, | |
"p99": 4.814876508999987, | |
"values": [ | |
4.814876508999987 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.846690421666513e-05, | |
"ram": 2.8633642039031983e-06, | |
"gpu": 0, | |
"total": 7.133026842056833e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.539008, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6201422539999157, | |
"mean": 0.04134281693332772, | |
"stdev": 0.0010733809573692061, | |
"p50": 0.041242076999992605, | |
"p90": 0.04244932939996034, | |
"p95": 0.04331422849996897, | |
"p99": 0.04406073369998239, | |
"values": [ | |
0.041096185000014884, | |
0.04175185099995815, | |
0.04135164199999508, | |
0.04074206199999253, | |
0.041242076999992605, | |
0.04424735999998575, | |
0.041428756000016165, | |
0.040881582999986676, | |
0.041361219999998866, | |
0.040745286999992913, | |
0.04291431499996179, | |
0.041089572000032604, | |
0.04172678399999086, | |
0.03954280800002152, | |
0.040020751999975346 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 48.37599729175054 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5679861228888337e-06, | |
"ram": 6.556599625065969e-08, | |
"gpu": 0.0, | |
"total": 1.6335521191394934e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1224325.7968735888 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.67008, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38401174200015475, | |
"mean": 0.025600782800010317, | |
"stdev": 0.0007623150754293947, | |
"p50": 0.02553722499999367, | |
"p90": 0.026042268800028977, | |
"p95": 0.026801063400023393, | |
"p99": 0.02780299187999617, | |
"values": [ | |
0.025646489999985533, | |
0.025303829000051792, | |
0.025385701999994126, | |
0.02560024400003158, | |
0.02555299499999819, | |
0.02553722499999367, | |
0.025505076000001736, | |
0.025379060000034315, | |
0.025641531000019313, | |
0.025709198000015476, | |
0.025143469999989065, | |
0.028053473999989365, | |
0.02470963700000084, | |
0.024579495000011775, | |
0.02626431600003798 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.06130557849961 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.437625760694971e-07, | |
"ram": 3.946541813016547e-08, | |
"gpu": 0.0, | |
"total": 9.832279941996623e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1017058.1044267255 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3785409970000728, | |
"mean": 0.025236066466671522, | |
"stdev": 0.0007315414621097963, | |
"p50": 0.0251643380000246, | |
"p90": 0.02570144500002698, | |
"p95": 0.026428019300016103, | |
"p99": 0.027335063059982758, | |
"values": [ | |
0.025297456999965107, | |
0.02494231299999683, | |
0.025053690999982337, | |
0.025254678000010244, | |
0.02519698899999412, | |
0.025053520999961165, | |
0.0251643380000246, | |
0.025028624000015043, | |
0.025272931000017707, | |
0.025340458000016497, | |
0.024814184000035766, | |
0.027561823999974422, | |
0.024351407000040126, | |
0.024266479000004892, | |
0.025942103000033967 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.625826842731946 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |