IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1348c5d verified
raw
history blame
9.64 kB
{
"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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "62a2cc4ddfa99ba27ab43fe4e9b20db8ad2f4cbb",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"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": 1111.568384,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.81428353199999,
"mean": 4.81428353199999,
"stdev": 0.0,
"p50": 4.81428353199999,
"p90": 4.81428353199999,
"p95": 4.81428353199999,
"p99": 4.81428353199999,
"values": [
4.81428353199999
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.727398735555489e-05,
"ram": 2.8118626664784267e-06,
"gpu": 0,
"total": 7.008585002203331e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 965.709824,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6452062120000619,
"mean": 0.04301374746667079,
"stdev": 0.0011557040794481829,
"p50": 0.04307015400002001,
"p90": 0.04419890360002228,
"p95": 0.04435292710002159,
"p99": 0.04461256381998737,
"values": [
0.04393164800001159,
0.044126081000001705,
0.04421383600003992,
0.043931896999993114,
0.04284113599999273,
0.044176504999995814,
0.04207601500002056,
0.04221275100002231,
0.043724529999963124,
0.04307015400002001,
0.042413085000021056,
0.04467747299997882,
0.0412990799999875,
0.04117705300001262,
0.04133496800000103
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.496762495518446
},
"energy": {
"unit": "kWh",
"cpu": 1.6307163784722143e-06,
"ram": 6.815069623289296e-08,
"gpu": 0.0,
"total": 1.6988670747051072e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1177255.1424290591
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 965.840896,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3893757699999014,
"mean": 0.025958384666660096,
"stdev": 0.0006159127337379383,
"p50": 0.026014328999963254,
"p90": 0.026622788400004538,
"p95": 0.02688612209999519,
"p99": 0.027202705219997368,
"values": [
0.027281850999997914,
0.02625569099996028,
0.026161604999970223,
0.02648218500002031,
0.026014328999963254,
0.02567538499999955,
0.026146095999990848,
0.02579346599998189,
0.02631460100002414,
0.025968594000005396,
0.026716523999994024,
0.025223348999986683,
0.02515583299998525,
0.025145522999991954,
0.025040738000029705
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.52319829763366
},
"energy": {
"unit": "kWh",
"cpu": 9.84208047083328e-07,
"ram": 4.113243095677271e-08,
"gpu": 0.0,
"total": 1.0253404780401018e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 975285.79180982
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.38392579199989996,
"mean": 0.025595052799993332,
"stdev": 0.0005799603637952299,
"p50": 0.025642142999970474,
"p90": 0.026136057399992297,
"p95": 0.02638244919997419,
"p99": 0.026784929039982898,
"values": [
0.026885548999985076,
0.025885427999980948,
0.02581642899997405,
0.026089891000026455,
0.025642142999970474,
0.025320091000025968,
0.02580863399998634,
0.025429804999987482,
0.025975376000019423,
0.025598581999986436,
0.026166834999969524,
0.024910244000011517,
0.02485940799999753,
0.02481057699998246,
0.024726799999996274
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.070050287228185
},
"energy": null,
"efficiency": null
}
}
}