{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+cu124", "_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": 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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.223-211.872.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 792.317952, "max_global_vram": 1355.28448, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.43197998046875, "mean": 7.43197998046875, "stdev": 0.0, "p50": 7.43197998046875, "p90": 7.43197998046875, "p95": 7.43197998046875, "p99": 7.43197998046875, "values": [ 7.43197998046875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.850943486115052e-07, "ram": 5.236222035649193e-07, "gpu": 1.6300013039999544e-06, "total": 3.138717856176379e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1198.600192, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 72, "total": 0.4904548468589783, "mean": 0.006811872873041364, "stdev": 0.00032948784082035464, "p50": 0.0068838241100311285, "p90": 0.00718110408782959, "p95": 0.007273128080368042, "p99": 0.0075932035446167, "values": [ 0.0076343040466308595, 0.007195615768432617, 0.006982304096221924, 0.006960991859436035, 0.0070594558715820314, 0.0067348480224609375, 0.006970911979675293, 0.007118624210357666, 0.007120480060577392, 0.006912255764007568, 0.007074336051940918, 0.007098591804504394, 0.007169631958007813, 0.006957791805267334, 0.00702620792388916, 0.006890816211700439, 0.006872960090637207, 0.006900512218475342, 0.006840799808502197, 0.007436607837677002, 0.0073027839660644535, 0.006934463977813721, 0.0069062719345092775, 0.007070176124572754, 0.007055424213409424, 0.00684991979598999, 0.006942880153656006, 0.007576416015625, 0.006876832008361817, 0.006931104183197021, 0.006930335998535157, 0.006966047763824463, 0.00724886417388916, 0.007088319778442383, 0.006954239845275879, 0.007, 0.007050975799560547, 0.00673686408996582, 0.006551807880401612, 0.006811679840087891, 0.00685587215423584, 0.006807392120361328, 0.007181312084197998, 0.007219039916992188, 0.007179232120513916, 0.006812320232391357, 0.006900896072387695, 0.006858816146850586, 0.006544928073883057, 0.006424831867218018, 0.0064585919380187986, 0.006480671882629394, 0.006381760120391846, 0.0064468798637390134, 0.006510176181793213, 0.006358431816101074, 0.006346047878265381, 0.00641596794128418, 0.0064683198928833004, 0.006395264148712158, 0.006415103912353516, 0.00643779182434082, 0.006331583976745605, 0.006391712188720703, 0.006351168155670166, 0.006374335765838623, 0.006379168033599853, 0.006389855861663818, 0.0063366079330444336, 0.006347519874572754, 0.006321631908416748, 0.006588160037994385 ] }, "throughput": { "unit": "tokens/s", "value": 293.6050095584124 }, "energy": { "unit": "kWh", "cpu": 7.945577292129548e-08, "ram": 4.34078300154506e-08, "gpu": 1.5478530901333505e-07, "total": 2.7764891195008114e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7203341.752549646 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1217.277952, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 72, "total": 0.5145064640045165, "mean": 0.007145923111173842, "stdev": 0.00035736129855122025, "p50": 0.007244992017745972, "p90": 0.007606163215637207, "p95": 0.007670815920829773, "p99": 0.007792798838615419, "values": [ 0.0076267518997192385, 0.007322080135345459, 0.00744700813293457, 0.007372831821441651, 0.007287680149078369, 0.007258336067199707, 0.00736294412612915, 0.0073089599609375, 0.007585599899291993, 0.007243872165679932, 0.00744649600982666, 0.0074163517951965335, 0.007279200077056885, 0.007392352104187012, 0.007325632095336914, 0.0071222720146179195, 0.007222400188446045, 0.007234848022460937, 0.00768559980392456, 0.007708000183105469, 0.00771676778793335, 0.007658720016479492, 0.0073844799995422365, 0.007311295986175537, 0.007456992149353027, 0.007246111869812012, 0.007260064125061035, 0.007610752105712891, 0.0073619518280029295, 0.007238815784454346, 0.007326303958892822, 0.007479392051696778, 0.007440767765045166, 0.007439807891845703, 0.007513535976409912, 0.007362271785736084, 0.007125887870788574, 0.007101823806762695, 0.007099423885345459, 0.006828127861022949, 0.007030399799346923, 0.0073827199935913084, 0.007516160011291504, 0.007608448028564453, 0.0073438720703125, 0.007091392040252686, 0.007978943824768067, 0.006986976146697998, 0.0068733119964599606, 0.006751999855041504, 0.006649312019348145, 0.00678380823135376, 0.006664031982421875, 0.006780511856079101, 0.006648928165435791, 0.006717120170593262, 0.006646336078643799, 0.006640704154968262, 0.006729504108428955, 0.006669568061828613, 0.006807712078094483, 0.006717855930328369, 0.006717120170593262, 0.006753759860992432, 0.006634047985076904, 0.006645664215087891, 0.006707200050354004, 0.0066423358917236325, 0.006602719783782959, 0.006733248233795166, 0.006755040168762207, 0.006683199882507324 ] }, "throughput": { "unit": "tokens/s", "value": 139.93993280396947 }, "energy": { "unit": "kWh", "cpu": 7.672246888243292e-08, "ram": 4.197985100253526e-08, "gpu": 1.4570469746034857e-07, "total": 2.644070173453168e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3782047.882239053 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 72, "total": 0.4805732808113098, "mean": 0.006674628900157081, "stdev": 0.000299227990662572, "p50": 0.006731744050979614, "p90": 0.007087923288345337, "p95": 0.0071256576299667355, "p99": 0.0072272281789779675, "values": [ 0.0070860800743103025, 0.006811647891998291, 0.006914048194885254, 0.006866943836212158, 0.006804480075836182, 0.006759424209594727, 0.006837247848510742, 0.00679423999786377, 0.007088128089904785, 0.006730751991271973, 0.006927360057830811, 0.00688640022277832, 0.006732736110687256, 0.0068884482383728025, 0.006807551860809326, 0.006642687797546387, 0.006696959972381592, 0.00672051191329956, 0.007135231971740722, 0.007169023990631103, 0.007117824077606201, 0.007153664112091064, 0.006847487926483154, 0.006802432060241699, 0.006949888229370117, 0.0067041277885437015, 0.006763455867767334, 0.007116799831390381, 0.0067983360290527345, 0.0067348480224609375, 0.006821919918060302, 0.006927360057830811, 0.0069212160110473635, 0.006851583957672119, 0.0069959678649902345, 0.0068249602317810056, 0.0066468482017517086, 0.006647808074951172, 0.006605823993682861, 0.006426623821258545, 0.006622208118438721, 0.006913023948669434, 0.0070256638526916505, 0.007095295906066895, 0.006887423992156983, 0.006653952121734619, 0.0073697280883789065, 0.00658739185333252, 0.006416384220123291, 0.006367231845855713, 0.006266880035400391, 0.00639686393737793, 0.006278143882751465, 0.006341631889343262, 0.006242303848266601, 0.006331391811370849, 0.006261760234832763, 0.006253600120544434, 0.006335487842559814, 0.006275072097778321, 0.006409279823303223, 0.006300672054290772, 0.00632313585281372, 0.006368224143981934, 0.006247424125671387, 0.006258687973022461, 0.0063211522102355954, 0.006247424125671387, 0.0062197761535644535, 0.006340608119964599, 0.006362112045288086, 0.006294464111328125 ] }, "throughput": { "unit": "tokens/s", "value": 149.8210634566464 }, "energy": null, "efficiency": null } } }