{ "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", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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": 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", "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.2.0", "optimum_benchmark_commit": "c08a62a8b686d201c33b94256f220dd9ac7afa59", "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": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1051.87328, "max_global_vram": 1118.396416, "max_process_vram": 301873.123328, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 55, "total": 0.4979024534225464, "mean": 0.009052771880409935, "stdev": 0.000585037752185243, "p50": 0.009160000801086426, "p90": 0.009378400993347169, "p95": 0.009965456962585448, "p99": 0.011057117862701417, "values": [ 0.011818561553955078, 0.010408480644226075, 0.010032320976257324, 0.009926561355590821, 0.009415841102600098, 0.008849600791931152, 0.008535361289978028, 0.008461280822753907, 0.008720480918884277, 0.008481600761413573, 0.008719841003417968, 0.009936800956726074, 0.009141600608825684, 0.009322240829467773, 0.009160000801086426, 0.009163681030273438, 0.0091712007522583, 0.00918048095703125, 0.009175841331481933, 0.009143040657043458, 0.009163201332092285, 0.00916352081298828, 0.009168801307678222, 0.009184000968933105, 0.00866576099395752, 0.00883872127532959, 0.009171521186828614, 0.00920608139038086, 0.009219680786132813, 0.009210881233215331, 0.009189600944519044, 0.009252321243286133, 0.008925761222839355, 0.009051680564880371, 0.00918656063079834, 0.009113121032714843, 0.008561120986938477, 0.008595041275024414, 0.008618721008300781, 0.008913281440734864, 0.009186881065368652, 0.009181441307067871, 0.00921552085876465, 0.009195040702819825, 0.00881696128845215, 0.008886080741882324, 0.009174720764160156, 0.008652481079101562, 0.008711840629577637, 0.00873296070098877, 0.008308000564575195, 0.008217281341552734, 0.008136800765991211, 0.008164481163024902, 0.008157759666442872 ] }, "throughput": { "unit": "tokens/s", "value": 220.92680854225108 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1051.87328, "max_global_vram": 1118.408704, "max_process_vram": 280310.72256, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 55, "total": 0.5065355739593508, "mean": 0.009209737708351831, "stdev": 0.0006263579759153149, "p50": 0.009292000770568848, "p90": 0.009659937286376954, "p95": 0.010073089122772216, "p99": 0.01142772602081299, "values": [ 0.010060641288757324, 0.01072352123260498, 0.010079360961914063, 0.009797281265258789, 0.009315840721130371, 0.008835041046142578, 0.008748001098632812, 0.008566720962524414, 0.008834240913391113, 0.008644480705261231, 0.012254401206970215, 0.009349600791931152, 0.009430880546569825, 0.009354400634765624, 0.00931808090209961, 0.0093110408782959, 0.009321281433105469, 0.009292000770568848, 0.009275680541992187, 0.009282240867614746, 0.009302400588989257, 0.009292961120605469, 0.009353601455688476, 0.00896864128112793, 0.008594720840454102, 0.009302560806274413, 0.0094539213180542, 0.00930704116821289, 0.009351361274719238, 0.009347360610961914, 0.00927104091644287, 0.009327840805053712, 0.009045600891113281, 0.009305920600891113, 0.009337921142578125, 0.00921920108795166, 0.008487041473388673, 0.008997441291809082, 0.008978561401367187, 0.009277761459350586, 0.010070401191711426, 0.009313760757446289, 0.009344961166381836, 0.008972161293029786, 0.00917440128326416, 0.009440481185913086, 0.009065441131591797, 0.008696161270141601, 0.008825280189514161, 0.008445120811462403, 0.008632801055908202, 0.00824160099029541, 0.008258400917053222, 0.008230239868164062, 0.008506720542907714 ] }, "throughput": { "unit": "tokens/s", "value": 108.58072527876142 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9845089054107664, "mean": 0.018231646396495677, "stdev": 0.000946163867481928, "p50": 0.018436402320861814, "p90": 0.019139937591552737, "p95": 0.020021378707885742, "p99": 0.020714875011444093, "values": [ 0.021068321228027344, 0.020174882888793946, 0.019878881454467773, 0.018791841506958007, 0.017805442810058594, 0.017327682495117187, 0.01706624221801758, 0.01759456253051758, 0.017143362045288085, 0.02040144157409668, 0.019938722610473632, 0.018618082046508787, 0.018706722259521483, 0.018497762680053712, 0.01851824188232422, 0.018527841567993163, 0.018507362365722656, 0.018482561111450194, 0.018455362319946288, 0.01849856185913086, 0.018487361907958983, 0.0185452823638916, 0.01819744110107422, 0.017330081939697265, 0.018133121490478514, 0.018653282165527342, 0.01854768180847168, 0.01859840202331543, 0.018585281372070314, 0.018503522872924803, 0.0185968017578125, 0.01805904197692871, 0.018343681335449218, 0.018544641494750977, 0.018417442321777344, 0.01707280158996582, 0.017580482482910158, 0.01767152214050293, 0.018178882598876952, 0.019289121627807618, 0.01852768135070801, 0.01858928108215332, 0.018233762741088868, 0.01798608207702637, 0.018334882736206055, 0.018321762084960936, 0.017400802612304686, 0.01752000045776367, 0.0172528018951416, 0.01693120193481445, 0.016524322509765627, 0.016432161331176757, 0.01642112159729004, 0.016693281173706054 ] }, "throughput": { "unit": "tokens/s", "value": 54.84968160594706 }, "energy": null, "efficiency": null } } }