IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5b78a99
verified
{ | |
"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.1", | |
"optimum_benchmark_commit": "2c8ab57de1af767ec2e6a2cf774f52cea6a0db26", | |
"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.301312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6361479900000404, | |
"mean": 0.0424098660000027, | |
"stdev": 0.0018390360265007626, | |
"p50": 0.04185601399998973, | |
"p90": 0.045596994400005995, | |
"p95": 0.046463519700006374, | |
"p99": 0.046613207140022726, | |
"values": [ | |
0.04665062900002681, | |
0.04638332999999761, | |
0.042280293999994, | |
0.04185601399998973, | |
0.04196089999999231, | |
0.041785113000003093, | |
0.04220914100000073, | |
0.04146166999998968, | |
0.04441749100001857, | |
0.041634079999994356, | |
0.04226321200002303, | |
0.041070386000001236, | |
0.04067454600001952, | |
0.04048820899998873, | |
0.041012975000001006 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.15883799302438 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.619554572635227e-06, | |
"ram": 6.768150465863982e-08, | |
"gpu": 0.0, | |
"total": 1.6872360772938669e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1185370.5755318904 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 956.301312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3870651419999547, | |
"mean": 0.02580434279999698, | |
"stdev": 0.0008580597562006976, | |
"p50": 0.02566595099997926, | |
"p90": 0.02624925039999084, | |
"p95": 0.027032363800000778, | |
"p99": 0.028273730360000967, | |
"values": [ | |
0.028584072000001015, | |
0.026072106999976086, | |
0.02636734600000068, | |
0.02566404699999225, | |
0.02601451900000029, | |
0.025531800000010207, | |
0.025861394999992626, | |
0.02592569400002276, | |
0.025850394000002552, | |
0.02487846500000046, | |
0.02566595099997926, | |
0.025239976999984037, | |
0.0249988989999963, | |
0.024882211999994297, | |
0.025528264000001855 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.753166773157155 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.731943276193409e-07, | |
"ram": 4.0676114632088917e-08, | |
"gpu": 0.0, | |
"total": 1.013870442251429e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 986319.3149011938 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 29, | |
"total": 0.9764794589999894, | |
"mean": 0.03367170548275826, | |
"stdev": 0.008574100134662196, | |
"p50": 0.028110199999986207, | |
"p90": 0.04260830620002025, | |
"p95": 0.04391882380000993, | |
"p99": 0.04629050324001241, | |
"values": [ | |
0.028110199999986207, | |
0.046875316000011935, | |
0.025749846999985948, | |
0.04261701100000437, | |
0.026037381000008963, | |
0.04220125699998789, | |
0.025358347999997477, | |
0.042281776999999465, | |
0.02567508699999621, | |
0.04214066500000513, | |
0.025195824999997285, | |
0.042560906000005616, | |
0.025493059000012863, | |
0.04184565499997461, | |
0.025571925000008378, | |
0.04478669900001364, | |
0.025524988999990228, | |
0.04197506500000259, | |
0.02455058499998586, | |
0.04260613000002422, | |
0.025365661999984468, | |
0.041385262000005696, | |
0.02494475800000373, | |
0.04098420200000419, | |
0.02470009299997855, | |
0.04080144100001348, | |
0.024582774999998946, | |
0.04132683899999279, | |
0.02523070000000871 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 29.69852538393264 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |