IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8fccb62
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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "ec76246b7d77d7915c49ba9843d6a6b46f9bc4da", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"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": 1122.189312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.744307878000001, | |
"mean": 4.744307878000001, | |
"stdev": 0.0, | |
"p50": 4.744307878000001, | |
"p90": 4.744307878000001, | |
"p95": 4.744307878000001, | |
"p99": 4.744307878000001, | |
"values": [ | |
4.744307878000001 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.748733716666636e-05, | |
"ram": 2.8207986782907553e-06, | |
"gpu": 0, | |
"total": 7.030813584495711e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.679488, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.6571789150000029, | |
"mean": 0.04107368218750018, | |
"stdev": 0.001666757526967056, | |
"p50": 0.040659754000017756, | |
"p90": 0.04301100249998058, | |
"p95": 0.04477723824998492, | |
"p99": 0.045589074849986845, | |
"values": [ | |
0.045792033999987325, | |
0.041034061999994265, | |
0.04049661300001617, | |
0.04088723600000321, | |
0.04158303199997704, | |
0.040576954000016485, | |
0.04137351800000033, | |
0.04053534600001285, | |
0.04074255400001903, | |
0.0409593809999933, | |
0.04048123399999781, | |
0.04443897299998412, | |
0.03936558899999909, | |
0.03965700599999877, | |
0.0395136680000121, | |
0.03974171499999102 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 48.69298035832428 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.578177629777808e-06, | |
"ram": 6.595528244783831e-08, | |
"gpu": 0.0, | |
"total": 1.6441329122256462e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1216446.6662811465 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 976.203776, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.3964670879999801, | |
"mean": 0.024779192999998756, | |
"stdev": 0.0006319603482206273, | |
"p50": 0.02479689549998909, | |
"p90": 0.025461608499981025, | |
"p95": 0.025808452249989955, | |
"p99": 0.026264402450013335, | |
"values": [ | |
0.024654161999990265, | |
0.024992778000012095, | |
0.024804404999997587, | |
0.025304743999981838, | |
0.0249106840000195, | |
0.02506231899999989, | |
0.024654583999989654, | |
0.024789385999980595, | |
0.024293215000000146, | |
0.02487349500000846, | |
0.025618472999980213, | |
0.024351365000001124, | |
0.023989193999994995, | |
0.02372030000000791, | |
0.02406959399999664, | |
0.02637839000001918 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.356439372341555 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.204766577222555e-07, | |
"ram": 3.8468739667761274e-08, | |
"gpu": 0.0, | |
"total": 9.589453973900172e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1042812.2422003609 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.39092453199998545, | |
"mean": 0.02443278324999909, | |
"stdev": 0.0005828329358052267, | |
"p50": 0.024471669499988025, | |
"p90": 0.025030684000000747, | |
"p95": 0.025291869749999307, | |
"p99": 0.02576690595000315, | |
"values": [ | |
0.024317400000001044, | |
0.02468303700001684, | |
0.024489934000001767, | |
0.024967430000003787, | |
0.02455120999999849, | |
0.024718363000005183, | |
0.024339671999996426, | |
0.024453404999974282, | |
0.023971991999985676, | |
0.024542674000002762, | |
0.025093937999997706, | |
0.024058996000007937, | |
0.023678861999997025, | |
0.023426749000009295, | |
0.023745204999983116, | |
0.02588566500000411 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.92861585877807 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |