IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b81eade
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-1024-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "77f747e53ce7403364c3165a786f2dab3853d12c", | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1109.573632, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.821368032000009, | |
"mean": 4.821368032000009, | |
"stdev": 0.0, | |
"p50": 4.821368032000009, | |
"p90": 4.821368032000009, | |
"p95": 4.821368032000009, | |
"p99": 4.821368032000009, | |
"values": [ | |
4.821368032000009 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.74127393298679e-05, | |
"ram": 2.817684433285876e-06, | |
"gpu": 0, | |
"total": 7.023042376315378e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.19488, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6471706779999522, | |
"mean": 0.04314471186666348, | |
"stdev": 0.0014037145014244134, | |
"p50": 0.04325610600000118, | |
"p90": 0.044334422800022824, | |
"p95": 0.04516805650004585, | |
"p99": 0.04664729370003329, | |
"values": [ | |
0.04701710300003015, | |
0.042712019999953554, | |
0.044272644999978183, | |
0.042310850000035316, | |
0.043761430000017754, | |
0.04234345099996517, | |
0.041983407999964584, | |
0.04437560800005258, | |
0.04325610600000118, | |
0.043504580000046644, | |
0.043535969000004116, | |
0.043387070999983735, | |
0.04225292199998876, | |
0.041349472999968384, | |
0.0411080419999621 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.355623052505194 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6612398403662225e-06, | |
"ram": 6.942598507094998e-08, | |
"gpu": 0.0, | |
"total": 1.7306658254371726e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1155624.5986973208 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.981312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39962352899999587, | |
"mean": 0.026641568599999724, | |
"stdev": 0.0009286283575222368, | |
"p50": 0.02647367800000211, | |
"p90": 0.027652682399968855, | |
"p95": 0.028166504399985113, | |
"p99": 0.028888225679991136, | |
"values": [ | |
0.026381395999976576, | |
0.02608187500004533, | |
0.0268360439999924, | |
0.0274619039999493, | |
0.026509764999957497, | |
0.025885127000037755, | |
0.02627124000002823, | |
0.02777986799998189, | |
0.02647367800000211, | |
0.02682607599996345, | |
0.02599018400002251, | |
0.029068655999992643, | |
0.025451858999986143, | |
0.025354496000034032, | |
0.02725136100002601 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.53532740560968 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.009136637051901e-06, | |
"ram": 4.217411081611998e-08, | |
"gpu": 0.0, | |
"total": 1.05131074786802e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 951193.5477002643 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39418433299999833, | |
"mean": 0.02627895553333322, | |
"stdev": 0.0008837379547187651, | |
"p50": 0.02611787299997559, | |
"p90": 0.027312350799979866, | |
"p95": 0.027773389399993673, | |
"p99": 0.028405415479991234, | |
"values": [ | |
0.026032002999954784, | |
0.025747981000051823, | |
0.026484466999988854, | |
0.027128670999957194, | |
0.026142488999994384, | |
0.02555454900004861, | |
0.025901639000039722, | |
0.027434803999994983, | |
0.02611787299997559, | |
0.02648697199998651, | |
0.02566389399999025, | |
0.028563421999990624, | |
0.025157036999985394, | |
0.02506286100003763, | |
0.026705671000001985 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.05326276120686 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |