{ "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", "numactl": false, "numactl_kwargs": {}, "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.41.1", "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": 1062.52288, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.0096 }, "latency": { "unit": "s", "count": 57, "total": 0.4983152017593383, "mean": 0.008742371960690148, "stdev": 0.0004222156358587417, "p50": 0.008882847785949707, "p90": 0.009197088050842284, "p95": 0.009360461044311524, "p99": 0.009670699615478515, "values": [ 0.009965824127197266, 0.009438816070556641, 0.009359840393066407, 0.0093024320602417, 0.008792223930358887, 0.008888544082641602, 0.008867775917053223, 0.009094623565673829, 0.009240960121154785, 0.008882847785949707, 0.009085887908935547, 0.009070976257324219, 0.009018943786621094, 0.008963199615478515, 0.008942912101745606, 0.008921024322509765, 0.009003647804260254, 0.009167840003967285, 0.008854751586914062, 0.008989919662475586, 0.00901625633239746, 0.008969984054565429, 0.008952192306518555, 0.008916192054748535, 0.008904128074645997, 0.008988224029541015, 0.009362943649291992, 0.008916576385498047, 0.00898316764831543, 0.008892095565795899, 0.008748096466064453, 0.008530303955078125, 0.008467424392700195, 0.008783040046691894, 0.009136832237243653, 0.00889129638671875, 0.008881248474121094, 0.008704352378845214, 0.008384639739990235, 0.008394880294799805, 0.008116703987121582, 0.008188672065734863, 0.008260224342346191, 0.008084320068359374, 0.008349696159362792, 0.008397120475769043, 0.008442367553710937, 0.008331263542175293, 0.008096799850463868, 0.00808944034576416, 0.00808454418182373, 0.00813270378112793, 0.008184127807617188, 0.00816476821899414, 0.008204480171203614, 0.008236127853393555, 0.008274975776672364 ] }, "throughput": { "unit": "tokens/s", "value": 228.7708655034296 }, "energy": { "unit": "kWh", "cpu": 1.0115508053262356e-07, "ram": 5.5303959849833655e-08, "gpu": 1.8881135632203396e-07, "total": 3.4527039670449115e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5792561.479609714 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1062.52288, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.46016 }, "latency": { "unit": "s", "count": 57, "total": 0.5100413417816163, "mean": 0.00894809371546695, "stdev": 0.0004090606588458568, "p50": 0.009119135856628418, "p90": 0.009317683219909669, "p95": 0.009487904357910157, "p99": 0.009697022323608398, "values": [ 0.009783647537231445, 0.009628959655761719, 0.009589920043945313, 0.009151007652282715, 0.00928268814086914, 0.00912390422821045, 0.009194463729858398, 0.00926915168762207, 0.009199456214904785, 0.009235456466674804, 0.00931158447265625, 0.009315072059631347, 0.009132287979125976, 0.00904854393005371, 0.00913539218902588, 0.009230655670166016, 0.009377887725830078, 0.009273856163024903, 0.00925881576538086, 0.009074175834655761, 0.00932159996032715, 0.009180800437927246, 0.009077343940734863, 0.00914080047607422, 0.009304479598999023, 0.009302080154418945, 0.0092325439453125, 0.009272255897521973, 0.009201888084411622, 0.00879535961151123, 0.009007488250732422, 0.008488927841186523, 0.008744895935058594, 0.008985856056213378, 0.009462400436401367, 0.009263232231140136, 0.008924575805664062, 0.00869379234313965, 0.008495903968811036, 0.008454015731811523, 0.008355551719665528, 0.008474783897399902, 0.008245311737060546, 0.009119135856628418, 0.008650624275207519, 0.008602815628051758, 0.008648703575134278, 0.00825654411315918, 0.008229951858520507, 0.008270624160766602, 0.008840383529663086, 0.008441120147705079, 0.008228639602661132, 0.008371711730957031, 0.00836348819732666, 0.008482687950134278, 0.008492095947265625 ] }, "throughput": { "unit": "tokens/s", "value": 111.75564671070454 }, "energy": { "unit": "kWh", "cpu": 9.499782324481336e-08, "ram": 5.193595891701306e-08, "gpu": 1.7821534895665087e-07, "total": 3.2514913111847746e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3075511.832247896 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.9905848293304443, "mean": 0.017689014809472218, "stdev": 0.0007720959012951471, "p50": 0.01807360076904297, "p90": 0.018507776260375978, "p95": 0.018618112087249755, "p99": 0.019045069408416746, "values": [ 0.019127296447753905, 0.018977792739868164, 0.018549760818481444, 0.018060287475585936, 0.018084863662719726, 0.018099199295043944, 0.018381824493408205, 0.018515968322753908, 0.018127872467041017, 0.018440191268920898, 0.01843507194519043, 0.01818726348876953, 0.018066432952880858, 0.018099199295043944, 0.018145280838012694, 0.01841766357421875, 0.018499584197998048, 0.01808076858520508, 0.018176000595092775, 0.018361343383789062, 0.018177087783813477, 0.018085823059082032, 0.018095104217529297, 0.018249727249145507, 0.018300928115844727, 0.01863884735107422, 0.018198528289794923, 0.018268159866333008, 0.017737728118896484, 0.017789951324462892, 0.017146879196166993, 0.017146879196166993, 0.01782067108154297, 0.018611200332641603, 0.01822105598449707, 0.017869823455810546, 0.017473535537719728, 0.016912384033203123, 0.01685606384277344, 0.016521215438842773, 0.016675840377807616, 0.016545791625976563, 0.01722265625, 0.016974847793579103, 0.017062911987304686, 0.017137664794921875, 0.01662259292602539, 0.01635430335998535, 0.0163768310546875, 0.016542720794677734, 0.016995328903198242, 0.016458751678466797, 0.01655705642700195, 0.016587776184082033, 0.016738304138183592, 0.016776191711425782 ] }, "throughput": { "unit": "tokens/s", "value": 56.532260884564025 }, "energy": null, "efficiency": null } } }