
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8df286f
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cuda", | |
"device_ids": "0", | |
"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": true, | |
"device_isolation_action": "error", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1089.069056, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.4908412475585938, | |
"mean": 0.009089652732566551, | |
"stdev": 0.00025186691431853473, | |
"p50": 0.008976960182189941, | |
"p90": 0.00947976303100586, | |
"p95": 0.009612334156036377, | |
"p99": 0.009862033500671386, | |
"values": [ | |
0.010116127967834473, | |
0.009636704444885253, | |
0.009556415557861329, | |
0.009057984352111817, | |
0.009167615890502929, | |
0.008893919944763183, | |
0.008948543548583984, | |
0.009126720428466796, | |
0.008944160461425781, | |
0.009111424446105958, | |
0.00909990406036377, | |
0.00897270393371582, | |
0.009094207763671876, | |
0.008922783851623536, | |
0.00893785572052002, | |
0.008978816032409668, | |
0.009210559844970703, | |
0.009180831909179687, | |
0.008975104331970215, | |
0.00899942398071289, | |
0.008905792236328125, | |
0.008962143898010254, | |
0.009627455711364747, | |
0.009372063636779785, | |
0.008972415924072266, | |
0.009022751808166503, | |
0.009604191780090332, | |
0.009063103675842284, | |
0.008924287796020508, | |
0.009357376098632813, | |
0.00928758430480957, | |
0.009111231803894042, | |
0.009159008026123046, | |
0.009266048431396485, | |
0.009525919914245605, | |
0.0091876802444458, | |
0.009091744422912598, | |
0.008965120315551758, | |
0.008903871536254883, | |
0.008933759689331055, | |
0.008896512031555176, | |
0.008909791946411132, | |
0.00887497615814209, | |
0.008906047821044922, | |
0.008888928413391114, | |
0.008901632308959961, | |
0.008846143722534179, | |
0.00887830352783203, | |
0.008874848365783691, | |
0.008981663703918457, | |
0.008908224105834962, | |
0.008919679641723632, | |
0.008942560195922851, | |
0.008936575889587402 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 220.03040807426763 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0843072575752182e-07, | |
"ram": 5.928459584538359e-08, | |
"gpu": 1.8462388507271831e-07, | |
"total": 3.523392066756237e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5676348.138688048 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1089.069056, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.5073999395370483, | |
"mean": 0.009396295176612005, | |
"stdev": 0.00023312023309830695, | |
"p50": 0.009355999946594237, | |
"p90": 0.009760047817230224, | |
"p95": 0.009895134305953979, | |
"p99": 0.009977100324630736, | |
"values": [ | |
0.009888671875, | |
0.009914624214172362, | |
0.009887200355529785, | |
0.009391936302185058, | |
0.009340096473693847, | |
0.009291040420532226, | |
0.009497471809387207, | |
0.009366815567016601, | |
0.009447360038757324, | |
0.009407039642333984, | |
0.00943564796447754, | |
0.009400480270385743, | |
0.009373951911926269, | |
0.009318143844604491, | |
0.009359135627746581, | |
0.009387167930603027, | |
0.009395999908447266, | |
0.009302176475524903, | |
0.009425951957702636, | |
0.009323424339294433, | |
0.009261792182922363, | |
0.009496576309204101, | |
0.009715231895446777, | |
0.009716704368591308, | |
0.009311327934265137, | |
0.009907135963439942, | |
0.010047552108764648, | |
0.009352864265441895, | |
0.009587264060974121, | |
0.009523167610168456, | |
0.009778623580932616, | |
0.009287808418273926, | |
0.009521471977233886, | |
0.009619104385375976, | |
0.009496000289916992, | |
0.009427328109741211, | |
0.009352831840515137, | |
0.00920195198059082, | |
0.009178432464599609, | |
0.009184224128723145, | |
0.009264896392822266, | |
0.009157792091369629, | |
0.009099072456359863, | |
0.009179231643676757, | |
0.009144703865051269, | |
0.009164095878601074, | |
0.009133343696594238, | |
0.009130623817443848, | |
0.009149344444274902, | |
0.009162272453308105, | |
0.009140224456787109, | |
0.009154272079467774, | |
0.009204511642456054, | |
0.00919382381439209 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 106.42492399441278 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0067217731949037e-07, | |
"ram": 5.504069769813212e-08, | |
"gpu": 1.7419219145360968e-07, | |
"total": 3.2990506647123245e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3031175.0307332715 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.9800683517456055, | |
"mean": 0.01849185569331331, | |
"stdev": 0.0004180772374697917, | |
"p50": 0.01842278480529785, | |
"p90": 0.019104153060913086, | |
"p95": 0.019437157821655275, | |
"p99": 0.01964543975830078, | |
"values": [ | |
0.019583999633789064, | |
0.019479551315307618, | |
0.018499584197998048, | |
0.0185743350982666, | |
0.018217983245849608, | |
0.01843916893005371, | |
0.018561023712158203, | |
0.01838489532470703, | |
0.018577407836914063, | |
0.018586624145507814, | |
0.01839923286437988, | |
0.018520063400268554, | |
0.01823232078552246, | |
0.01834294319152832, | |
0.018408416748046875, | |
0.01863167953491211, | |
0.018541568756103514, | |
0.01842278480529785, | |
0.018340864181518556, | |
0.01821286392211914, | |
0.018455551147460936, | |
0.019408895492553712, | |
0.019113983154296875, | |
0.018332735061645507, | |
0.01892959976196289, | |
0.019711999893188475, | |
0.018464767456054687, | |
0.018493440628051756, | |
0.019002368927001953, | |
0.01906483268737793, | |
0.018486272811889647, | |
0.01866649627685547, | |
0.01889587211608887, | |
0.019133440017700197, | |
0.018611200332641603, | |
0.018541568756103514, | |
0.018213951110839843, | |
0.018090944290161132, | |
0.018159616470336915, | |
0.01818623924255371, | |
0.018100223541259765, | |
0.01800499153137207, | |
0.01810950469970703, | |
0.018060224533081055, | |
0.018094079971313477, | |
0.018010112762451173, | |
0.01803468894958496, | |
0.018052095413208007, | |
0.018173952102661133, | |
0.018074623107910158, | |
0.018099199295043944, | |
0.018156543731689453, | |
0.018177024841308592 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 54.07786090184566 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |