{ "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 7763 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 1082015.236096, "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.3.1", "optimum_benchmark_commit": "25912a6d02929e242ccb030ce6895e556366bb93", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "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": { "load": { "memory": { "unit": "MB", "max_ram": 901.328896, "max_global_vram": 3298.361344, "max_process_vram": 41081.81504, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.036126953125, "mean": 7.036126953125, "stdev": 0.0, "p50": 7.036126953125, "p90": 7.036126953125, "p95": 7.036126953125, "p99": 7.036126953125, "values": [ 7.036126953125 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1055.776768, "max_global_vram": 3392.745472, "max_process_vram": 276492.275712, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 59, "total": 0.5164675359725951, "mean": 0.00875368705038297, "stdev": 0.0002905996786860346, "p50": 0.008626215934753418, "p90": 0.008983750724792482, "p95": 0.009137639141082763, "p99": 0.009813339691162111, "values": [ 0.008887495040893555, 0.008905895233154297, 0.00892797565460205, 0.00876877498626709, 0.008742375373840332, 0.008860774993896484, 0.008781415939331055, 0.008705415725708009, 0.00869709587097168, 0.008737895965576172, 0.008867815017700195, 0.009181413650512695, 0.008792136192321777, 0.008985415458679199, 0.009027654647827149, 0.008983334541320801, 0.008979816436767579, 0.009306855201721191, 0.00913277530670166, 0.008907496452331543, 0.008849735260009766, 0.008600935935974122, 0.008581416130065918, 0.008603655815124511, 0.008956615447998046, 0.00870845603942871, 0.00857565689086914, 0.008569255828857422, 0.008620136260986328, 0.010512770652770996, 0.008811816215515137, 0.008614056587219239, 0.008574216842651368, 0.008588616371154784, 0.008588295936584472, 0.00857453727722168, 0.00862109661102295, 0.008577735900878906, 0.008615976333618163, 0.00859549617767334, 0.008595656394958497, 0.00860893726348877, 0.008588456153869628, 0.008576135635375976, 0.008561416625976563, 0.00871773624420166, 0.008561257362365723, 0.008543496131896972, 0.00859229564666748, 0.008587335586547852, 0.008605095863342285, 0.008626215934753418, 0.008640617370605468, 0.00872717571258545, 0.008664615631103515, 0.008575817108154297, 0.008615816116333008, 0.00857741641998291, 0.00858173656463623 ] }, "throughput": { "unit": "tokens/s", "value": 228.47515435367328 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1055.776768, "max_global_vram": 3394.134016, "max_process_vram": 303367.233536, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 59, "total": 0.4910965576171875, "mean": 0.008323670468087923, "stdev": 0.0005009376564760054, "p50": 0.0081815767288208, "p90": 0.008455784797668457, "p95": 0.008579063987731932, "p99": 0.010744959354400637, "values": [ 0.00830221652984619, 0.008335657119750976, 0.00826893711090088, 0.008191818237304688, 0.008207818031311036, 0.0081815767288208, 0.00825629711151123, 0.008184137344360352, 0.0081769380569458, 0.008512456893920899, 0.008409417152404786, 0.00830429744720459, 0.008322216987609864, 0.00843005657196045, 0.00855677604675293, 0.008449256896972656, 0.008347657203674317, 0.00877965545654297, 0.011434368133544922, 0.008275656700134278, 0.008308616638183594, 0.00812445831298828, 0.008320297241210937, 0.010245732307434082, 0.008125576972961426, 0.008236296653747558, 0.008114216804504394, 0.008170377731323243, 0.008249736785888672, 0.00848189640045166, 0.00809853744506836, 0.008327656745910645, 0.008128776550292968, 0.008126217842102051, 0.008168136596679688, 0.00832845687866211, 0.008144936561584472, 0.008126697540283202, 0.00815917682647705, 0.008184138298034669, 0.008131497383117676, 0.008166377067565917, 0.008111497879028321, 0.008155977249145508, 0.008131016731262207, 0.008157576560974121, 0.008151177406311036, 0.008157097816467285, 0.008268136978149414, 0.00814253807067871, 0.008179817199707031, 0.008160778045654297, 0.008176616668701172, 0.008195016860961914, 0.008120938301086426, 0.00817901611328125, 0.00814253807067871, 0.008109577178955078, 0.008162217140197754 ] }, "throughput": { "unit": "tokens/s", "value": 120.13930679186483 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 59, "total": 0.4591088080406191, "mean": 0.00778150522102744, "stdev": 0.00047454180682608113, "p50": 0.007661098003387451, "p90": 0.00788842601776123, "p95": 0.00800296902656555, "p99": 0.010081098594665529, "values": [ 0.0077436590194702145, 0.007761738777160645, 0.007748457908630371, 0.007675339221954345, 0.007620139122009277, 0.007649259090423584, 0.007706058979034424, 0.007662539005279541, 0.007635979175567627, 0.00795485782623291, 0.00782253885269165, 0.007737258911132813, 0.0078068580627441405, 0.007719499111175537, 0.00798829698562622, 0.007877418041229248, 0.007788457870483398, 0.00813501739501953, 0.01077357006072998, 0.007645577907562256, 0.007725099086761475, 0.007597418785095214, 0.007802058219909668, 0.0095796537399292, 0.00761069917678833, 0.007722699165344239, 0.007581899166107178, 0.007626698970794678, 0.007744778156280518, 0.00793245792388916, 0.007579019069671631, 0.007790058135986328, 0.007615979194641113, 0.007618059158325195, 0.007642858982086181, 0.0077994980812072755, 0.007612779140472412, 0.007594859123229981, 0.007639819145202636, 0.007676778793334961, 0.0075961389541625976, 0.007661098003387451, 0.0076009387969970706, 0.007620298862457275, 0.00762733793258667, 0.007642378807067871, 0.007619019031524658, 0.007644618988037109, 0.0077474980354309084, 0.007639499187469483, 0.0076647791862487795, 0.007656458854675293, 0.00766221809387207, 0.007662539005279541, 0.007623498916625977, 0.00765357780456543, 0.007609738826751709, 0.007601259231567382, 0.007630218982696533 ] }, "throughput": { "unit": "tokens/s", "value": 128.5098411677174 }, "energy": null, "efficiency": null } } }