IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
38d237d
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"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": {}, | |
"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": false, | |
"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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7643 48-Core Processor", | |
"cpu_count": 96, | |
"cpu_ram_mb": 1082028.982272, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "d662120356cf9cce87fb802aea1c49ce74710c29", | |
"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": 903.0656, | |
"max_global_vram": 1690.128384, | |
"max_process_vram": 42860.929024, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.8747890625, | |
"mean": 6.8747890625, | |
"stdev": 0.0, | |
"p50": 6.8747890625, | |
"p90": 6.8747890625, | |
"p95": 6.8747890625, | |
"p99": 6.8747890625, | |
"values": [ | |
6.8747890625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1057.169408, | |
"max_global_vram": 3428.10624, | |
"max_process_vram": 267568.697344, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.5077079997062683, | |
"mean": 0.007932937495410443, | |
"stdev": 0.0003717805539120574, | |
"p50": 0.00788083267211914, | |
"p90": 0.008462210845947267, | |
"p95": 0.008833252191543578, | |
"p99": 0.009127200469970703, | |
"values": [ | |
0.0090459566116333, | |
0.009048996925354004, | |
0.00886099624633789, | |
0.00867603588104248, | |
0.008504674911499024, | |
0.008369474411010743, | |
0.009260357856750489, | |
0.00798947286605835, | |
0.007996832847595215, | |
0.007981633186340332, | |
0.007974273204803466, | |
0.008021952629089356, | |
0.007983713150024415, | |
0.008147393226623535, | |
0.008002913475036622, | |
0.00796003293991089, | |
0.008006913185119629, | |
0.007989792823791505, | |
0.008501955032348633, | |
0.007847072124481201, | |
0.007654750823974609, | |
0.007626431941986084, | |
0.007621632099151611, | |
0.007628671169281006, | |
0.007630590915679932, | |
0.0076123509407043455, | |
0.007613790988922119, | |
0.007625151157379151, | |
0.007668190956115722, | |
0.007659071922302246, | |
0.007676032066345215, | |
0.007662590980529785, | |
0.007926911830902099, | |
0.008000192642211914, | |
0.007988192081451417, | |
0.007968513011932373, | |
0.007990112781524658, | |
0.008026753425598145, | |
0.008024192810058594, | |
0.007978433132171631, | |
0.007967872142791748, | |
0.007984992027282714, | |
0.008010912895202636, | |
0.00775731086730957, | |
0.007735231876373291, | |
0.007743391036987304, | |
0.007918752193450928, | |
0.00791459321975708, | |
0.007820032119750976, | |
0.007668991088867188, | |
0.007697630882263184, | |
0.007718111038208008, | |
0.007776991844177246, | |
0.007773791790008545, | |
0.0076265912055969234, | |
0.007765312194824219, | |
0.007660031795501709, | |
0.007651230812072754, | |
0.007649470806121826, | |
0.007607390880584717, | |
0.007641312122344971, | |
0.00763507080078125, | |
0.007604351043701172, | |
0.007625631809234619 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 252.11341967046747 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1057.40288, | |
"max_global_vram": 1107.513344, | |
"max_process_vram": 269440.999424, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4911330404281616, | |
"mean": 0.007673953756690026, | |
"stdev": 0.0015288727571536242, | |
"p50": 0.007428750038146973, | |
"p90": 0.007846031665802002, | |
"p95": 0.008430601406097409, | |
"p99": 0.012664969081878634, | |
"values": [ | |
0.00854627513885498, | |
0.008486113548278808, | |
0.008116032600402832, | |
0.008028033256530762, | |
0.00791155195236206, | |
0.008613956451416016, | |
0.0075982708930969235, | |
0.007575710773468017, | |
0.007500830173492431, | |
0.0075505909919738766, | |
0.0076099510192871095, | |
0.007552670955657959, | |
0.007546909809112549, | |
0.007579551219940185, | |
0.007599071025848388, | |
0.007693150997161865, | |
0.007552190780639649, | |
0.019562639236450196, | |
0.007591391086578369, | |
0.007378590106964111, | |
0.0072054691314697265, | |
0.007257628917694092, | |
0.007284029006958008, | |
0.007279550075531006, | |
0.007304989814758301, | |
0.007229310035705566, | |
0.007221469879150391, | |
0.007244988918304444, | |
0.007363550186157227, | |
0.007254909038543702, | |
0.007302589893341064, | |
0.007230430126190185, | |
0.007527231216430664, | |
0.007683071136474609, | |
0.007539071083068847, | |
0.00754387092590332, | |
0.007574110984802246, | |
0.007611071109771729, | |
0.007596351146697998, | |
0.007550430774688721, | |
0.007556510925292969, | |
0.0075035510063171384, | |
0.0074670701026916505, | |
0.007309629917144776, | |
0.007206268787384033, | |
0.007366109848022461, | |
0.007396349906921387, | |
0.007461150169372558, | |
0.007324190139770508, | |
0.007230429172515869, | |
0.007216829776763916, | |
0.007477951049804687, | |
0.007346749782562256, | |
0.007216669082641601, | |
0.007297790050506592, | |
0.007253629207611084, | |
0.0073080301284790036, | |
0.0072565097808837895, | |
0.007310110092163086, | |
0.007262430191040039, | |
0.007368188858032226, | |
0.0071747488975524906, | |
0.007214269161224365, | |
0.0072102689743041995 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 130.31092337873636 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4572818641662598, | |
"mean": 0.00714502912759781, | |
"stdev": 0.0015354432880687182, | |
"p50": 0.006917148113250732, | |
"p90": 0.00731446180343628, | |
"p95": 0.007546494817733764, | |
"p99": 0.012063266520500155, | |
"values": [ | |
0.007895391941070556, | |
0.007855072021484374, | |
0.007556190967559814, | |
0.007491549968719482, | |
0.007380030155181885, | |
0.007385150909423828, | |
0.00709122896194458, | |
0.007044989109039307, | |
0.007059069156646729, | |
0.007015069007873535, | |
0.007063068866729736, | |
0.00702626895904541, | |
0.007028987884521484, | |
0.007066429138183594, | |
0.007059548854827881, | |
0.007161468982696533, | |
0.007035229206085205, | |
0.0191599178314209, | |
0.007036509037017823, | |
0.006807707786560059, | |
0.006708187103271484, | |
0.006727706909179687, | |
0.006749466896057129, | |
0.006757146835327148, | |
0.006802748203277588, | |
0.006706748008728027, | |
0.006718906879425049, | |
0.00676306676864624, | |
0.0068379478454589845, | |
0.006776826858520508, | |
0.0067787480354309084, | |
0.006730587959289551, | |
0.007017309188842773, | |
0.007123548984527588, | |
0.007025468826293946, | |
0.0070544290542602535, | |
0.00707154893875122, | |
0.007092029094696045, | |
0.007105148792266845, | |
0.007050909042358398, | |
0.007030909061431885, | |
0.00699570894241333, | |
0.006916508197784423, | |
0.00682178783416748, | |
0.006684506893157959, | |
0.006834427833557129, | |
0.006917788028717041, | |
0.007008987903594971, | |
0.006852828025817871, | |
0.006809147834777832, | |
0.006764028072357178, | |
0.006919709205627442, | |
0.006812987804412841, | |
0.0067073869705200195, | |
0.00677266788482666, | |
0.006728026866912842, | |
0.006772666931152344, | |
0.006706748008728027, | |
0.006746908187866211, | |
0.006742427825927735, | |
0.006826745986938477, | |
0.00669154691696167, | |
0.0066969871520996095, | |
0.006703066825866699 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.95744204001647 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |