IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
73f5db4
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": "91971089040d6dac4da0f6b0a30eec8415a34544", | |
"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": 1110.544384, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.828387700999997, | |
"mean": 4.828387700999997, | |
"stdev": 0.0, | |
"p50": 4.828387700999997, | |
"p90": 4.828387700999997, | |
"p95": 4.828387700999997, | |
"p99": 4.828387700999997, | |
"values": [ | |
4.828387700999997 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.733737786610922e-05, | |
"ram": 2.81453021448101e-06, | |
"gpu": 0, | |
"total": 7.015190808059023e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.284416, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6361960849999946, | |
"mean": 0.045442577499999616, | |
"stdev": 0.002728605602092908, | |
"p50": 0.04625793649999821, | |
"p90": 0.04858183720001535, | |
"p95": 0.04886884120001156, | |
"p99": 0.04891960984000008, | |
"values": [ | |
0.04883467000001929, | |
0.04893230199999721, | |
0.047840330000013864, | |
0.04799189400000614, | |
0.04585560800001076, | |
0.04679699899998013, | |
0.04738352699999382, | |
0.04600137199997789, | |
0.04651450100001853, | |
0.0430433310000069, | |
0.04126955399999588, | |
0.041414804999988064, | |
0.04238794500000154, | |
0.04192924699998457 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.011588031071014 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6245651024359244e-06, | |
"ram": 6.78929964894337e-08, | |
"gpu": 0.0, | |
"total": 1.692458098925358e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1181713.1551262147 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.808704, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39243324599999596, | |
"mean": 0.028030946142856856, | |
"stdev": 0.0018203285658958763, | |
"p50": 0.028873714499994207, | |
"p90": 0.02986611840000819, | |
"p95": 0.030153474900006926, | |
"p99": 0.03044640858000264, | |
"values": [ | |
0.02769591099999502, | |
0.029258843999997453, | |
0.029655676000004405, | |
0.029333884000010357, | |
0.029129401999995252, | |
0.030519642000001568, | |
0.02958061499998621, | |
0.029956308000009813, | |
0.028618026999993162, | |
0.025387432999991688, | |
0.025564846000008856, | |
0.026020267000006925, | |
0.025793432999989818, | |
0.025918958000005432 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.674857170485865 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.885658378954294e-07, | |
"ram": 4.1314290976345075e-08, | |
"gpu": 0.0, | |
"total": 1.0298801288717746e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 970986.7895941365 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.38648090499995646, | |
"mean": 0.02760577892856832, | |
"stdev": 0.0017292134270747801, | |
"p50": 0.028416899999982093, | |
"p90": 0.029362376400007405, | |
"p95": 0.02963497585000994, | |
"p99": 0.029913129570003888, | |
"values": [ | |
0.02720574500000339, | |
0.0287689069999999, | |
0.029163154999992003, | |
0.028794045000012147, | |
0.028645486999977265, | |
0.029982668000002377, | |
0.029102129999984072, | |
0.029447757000014008, | |
0.02818831299998692, | |
0.025087713000004896, | |
0.025242964000000256, | |
0.025730385000002798, | |
0.025506305999982715, | |
0.02561532999999372 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.22429936092593 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |