{ "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.0", "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": 1094.520832, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 55, "total": 0.4917849264144898, "mean": 0.008941544116627087, "stdev": 0.00034248993424507265, "p50": 0.008967040061950683, "p90": 0.00930953598022461, "p95": 0.009467020416259764, "p99": 0.009835646686553956, "values": [ 0.009935456275939942, 0.00975062370300293, 0.009658271789550782, 0.009359968185424805, 0.009363903999328613, 0.009207903861999512, 0.008986847877502441, 0.009077055931091309, 0.009022432327270508, 0.009159584045410157, 0.009061887741088867, 0.008957088470458984, 0.009061663627624512, 0.008923583984375, 0.009018239974975585, 0.008941887855529785, 0.009085087776184083, 0.00912723159790039, 0.008941247940063476, 0.009044032096862793, 0.009001983642578124, 0.009039584159851075, 0.009187104225158692, 0.008905535697937011, 0.008949824333190918, 0.009000384330749511, 0.009206015586853028, 0.009175456047058106, 0.009083295822143555, 0.009192031860351562, 0.008767744064331055, 0.008931391716003418, 0.008588352203369141, 0.009233887672424317, 0.009385055541992187, 0.009150272369384765, 0.008967040061950683, 0.008839200019836426, 0.00882051181793213, 0.008832480430603027, 0.008759936332702637, 0.008466879844665527, 0.008498399734497071, 0.008478367805480957, 0.008489439964294434, 0.008450624465942382, 0.00845587158203125, 0.008440608024597169, 0.008453408241271972, 0.008450336456298828, 0.008434016227722168, 0.008437151908874512, 0.008438207626342774, 0.008826687812805175, 0.008763839721679687 ] }, "throughput": { "unit": "tokens/s", "value": 223.67501338845221 }, "energy": { "unit": "kWh", "cpu": 1.0611159313056204e-07, "ram": 5.8014828672574883e-08, "gpu": 1.8174369698214203e-07, "total": 3.4587011878527897e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5782517.457779081 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1094.520832, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 55, "total": 0.5100648984909056, "mean": 0.009273907245289195, "stdev": 0.0003497514069055077, "p50": 0.009321056365966796, "p90": 0.00970993251800537, "p95": 0.00987090244293213, "p99": 0.010090029544830322, "values": [ 0.010080063819885254, 0.010101728439331055, 0.009867072105407715, 0.009726592063903809, 0.009713631629943847, 0.009633312225341797, 0.009471391677856445, 0.009426112174987794, 0.009358847618103027, 0.009448960304260253, 0.009405344009399415, 0.00938976001739502, 0.009449824333190918, 0.00927500820159912, 0.009335871696472167, 0.00938486385345459, 0.009536319732666016, 0.009337887763977051, 0.009412832260131836, 0.009409952163696288, 0.00927126407623291, 0.009293984413146973, 0.009321056365966796, 0.009322336196899414, 0.009339263916015625, 0.009359264373779297, 0.009630784034729004, 0.009422431945800782, 0.009304672241210938, 0.009244832038879394, 0.009198847770690919, 0.008980704307556151, 0.009516448020935058, 0.009704383850097656, 0.009879839897155763, 0.009316512107849121, 0.009194720268249511, 0.009155167579650878, 0.009122336387634277, 0.00915436840057373, 0.009199551582336426, 0.008745408058166504, 0.008701824188232421, 0.008728032112121581, 0.008764543533325196, 0.008744799613952636, 0.008725791931152345, 0.008770784378051759, 0.008786304473876953, 0.008725088119506836, 0.00870639991760254, 0.00874630355834961, 0.008933952331542969, 0.009105792045593262, 0.00918172836303711 ] }, "throughput": { "unit": "tokens/s", "value": 107.82941575224007 }, "energy": { "unit": "kWh", "cpu": 1.0164590065910337e-07, "ram": 5.55743605855412e-08, "gpu": 1.7440181210557827e-07, "total": 3.316220733502227e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3015480.8149453616 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9837393894195556, "mean": 0.018217396100362142, "stdev": 0.0006456137655613507, "p50": 0.01834547233581543, "p90": 0.01893693370819092, "p95": 0.01920332775115967, "p99": 0.019735316524505615, "values": [ 0.019893247604370116, 0.019595264434814453, 0.019099647521972657, 0.019154943466186524, 0.018874368667602538, 0.018490367889404297, 0.018550783157348632, 0.01839923286437988, 0.018614336013793944, 0.018536384582519532, 0.018383935928344728, 0.01855891227722168, 0.01822208023071289, 0.018361343383789062, 0.018342912673950194, 0.018689023971557618, 0.018514944076538087, 0.01840947151184082, 0.018490367889404297, 0.018297855377197265, 0.01838489532470703, 0.018523136138916017, 0.018280448913574218, 0.018325504302978517, 0.018348031997680665, 0.018891775131225585, 0.01863372802734375, 0.018408447265625, 0.018507776260375978, 0.01799782371520996, 0.018035711288452147, 0.018051071166992186, 0.018956287384033203, 0.019293184280395507, 0.018545663833618165, 0.01825279998779297, 0.018028543472290038, 0.017970176696777345, 0.01801318359375, 0.01798246383666992, 0.01726361656188965, 0.01722777557373047, 0.017229824066162108, 0.017278976440429687, 0.01722265625, 0.01720729637145996, 0.01721855926513672, 0.017262592315673828, 0.01722675132751465, 0.017159168243408202, 0.017201152801513672, 0.0173885440826416, 0.017967103958129883, 0.017975296020507812 ] }, "throughput": { "unit": "tokens/s", "value": 54.89258698064544 }, "energy": null, "efficiency": null } } }