IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
45b937f verified
raw
history blame
9.14 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": "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.342208,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1022-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.0",
"optimum_benchmark_commit": "57f6495c03ea0fa48e157048c97add150dcd765c",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": 956.915712,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6406600120001826,
"mean": 0.04271066746667884,
"stdev": 0.002463279742482215,
"p50": 0.04181716199997254,
"p90": 0.04675952440004494,
"p95": 0.04735657380002749,
"p99": 0.04778105716000255,
"values": [
0.04788717799999631,
0.04712917200004085,
0.04269070399999464,
0.04151447700002109,
0.04181716199997254,
0.04097222199999351,
0.04267998500000658,
0.04132978100000173,
0.043380504000026576,
0.04362004199998637,
0.04150520900003585,
0.046205053000051066,
0.04029379500002506,
0.03990095000000338,
0.03973377800002709
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.826709078248896
},
"energy": {
"unit": "kWh",
"cpu": 1.5895638995700413e-06,
"ram": 6.643107279091964e-08,
"gpu": 0.0,
"total": 1.655994972360961e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1207733.135293635
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.915712,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.38324564999976474,
"mean": 0.025549709999984314,
"stdev": 0.0012967235785413484,
"p50": 0.025248542999975143,
"p90": 0.02646894419998489,
"p95": 0.02755432709997194,
"p99": 0.029288180619953436,
"values": [
0.02972164399994881,
0.025561237999966124,
0.025396499999999378,
0.024997984999970413,
0.025248542999975143,
0.02503698800001075,
0.02623414499998944,
0.02489883999999165,
0.026625476999981856,
0.02531706999997141,
0.026037918999975318,
0.02446498899996641,
0.02474442900000895,
0.02389683699999523,
0.025063046000013856
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.13938749209341
},
"energy": {
"unit": "kWh",
"cpu": 9.413551986217496e-07,
"ram": 3.933753285249963e-08,
"gpu": 0.0,
"total": 9.806927314742495e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1019687.3780197457
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 29,
"total": 0.9759423099999935,
"mean": 0.03365318310344805,
"stdev": 0.008938613247782248,
"p50": 0.02919697400000132,
"p90": 0.043789212000012866,
"p95": 0.04565008620002117,
"p99": 0.04741240636000384,
"values": [
0.02919697400000132,
0.0476717459999918,
0.02522830499998463,
0.04303909599997269,
0.025063367000029757,
0.04186360900001773,
0.024668528999995942,
0.0421622669999806,
0.024915299999975105,
0.04132108400000334,
0.0246793700000012,
0.043052962000047046,
0.02584190199996783,
0.04173716200000399,
0.02455991599998697,
0.0437347860000159,
0.026255585000001247,
0.04400691600000073,
0.024968940000007933,
0.04186748600000101,
0.02551448999997774,
0.04674553300003481,
0.024107450999963476,
0.040667373000019325,
0.02441914100000986,
0.04024092499997778,
0.023593168999980207,
0.04005201300003591,
0.024766913000007662
]
},
"throughput": {
"unit": "tokens/s",
"value": 29.714871158726783
},
"energy": null,
"efficiency": null
}
}
}