{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+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-212.873.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.34.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 803.966976, "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.82685400390625, "mean": 7.82685400390625, "stdev": 0.0, "p50": 7.82685400390625, "p90": 7.82685400390625, "p95": 7.82685400390625, "p99": 7.82685400390625, "values": [ 7.82685400390625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.231080631944148e-07, "ram": 4.904862433842599e-07, "gpu": 1.5861123800000893e-06, "total": 2.9997066865787642e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1207.873536, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.4916688628196716, "mean": 0.006924913560840445, "stdev": 0.00035478892668435987, "p50": 0.006987008094787597, "p90": 0.007342591762542725, "p95": 0.007403903961181641, "p99": 0.007499705457687378, "values": [ 0.007509696006774902, 0.0074954237937927244, 0.007400320053100586, 0.007086400032043457, 0.006998335838317871, 0.007376319885253906, 0.006843039989471436, 0.006915167808532715, 0.0071599998474121095, 0.007133120059967041, 0.006930784225463867, 0.007081791877746582, 0.007101664066314697, 0.007068416118621826, 0.007010303974151612, 0.007288959980010987, 0.007362656116485596, 0.0070562238693237305, 0.006926752090454101, 0.006929791927337646, 0.007003647804260254, 0.007032192230224609, 0.007158336162567139, 0.007184832096099853, 0.0073352642059326175, 0.007342591762542725, 0.007289055824279785, 0.007424895763397217, 0.007146048069000244, 0.0072873601913452145, 0.007407487869262696, 0.007219007968902588, 0.007269983768463135, 0.007313727855682373, 0.007330143928527832, 0.007194975852966309, 0.0071476798057556155, 0.00696672010421753, 0.0070136961936950685, 0.0068644161224365235, 0.006879039764404297, 0.006843232154846192, 0.0069539198875427245, 0.006668223857879639, 0.006893824100494385, 0.006987008094787597, 0.0070953922271728516, 0.007289728164672851, 0.006946368217468262, 0.006946432113647461, 0.006830304145812988, 0.006851071834564209, 0.006673632144927978, 0.006410751819610596, 0.006355167865753174, 0.006427680015563965, 0.006346208095550537, 0.006341983795166015, 0.0063935680389404295, 0.006446591854095459, 0.006375679969787598, 0.006383264064788818, 0.006368832111358642, 0.006432223796844483, 0.00638486385345459, 0.006385727882385254, 0.006384416103363037, 0.006423967838287354, 0.006344607830047607, 0.006381440162658692, 0.006616479873657226 ] }, "throughput": { "unit": "tokens/s", "value": 288.8122692692888 }, "energy": { "unit": "kWh", "cpu": 7.946491520320584e-08, "ram": 4.344694540101865e-08, "gpu": 1.4853665872483199e-07, "total": 2.7144851932905646e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7367879.570474104 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1226.21952, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.5160339517593384, "mean": 0.007268083827596318, "stdev": 0.0003894384415837444, "p50": 0.0073810238838195805, "p90": 0.0077153282165527345, "p95": 0.007812016010284424, "p99": 0.007893260955810548, "values": [ 0.007868224143981934, 0.007823232173919678, 0.007675871849060058, 0.0073556160926818845, 0.0077272958755493166, 0.00755344009399414, 0.007256224155426026, 0.0073649601936340335, 0.00764358377456665, 0.007397312164306641, 0.007284863948822022, 0.0074923839569091795, 0.007483903884887695, 0.007417984008789062, 0.0076208958625793456, 0.0077153282165527345, 0.0075606398582458495, 0.007530943870544433, 0.007272352218627929, 0.007450496196746826, 0.0073129281997680665, 0.0076518402099609376, 0.007408639907836914, 0.0075697598457336425, 0.007606527805328369, 0.007813055992126465, 0.0073810238838195805, 0.007625664234161377, 0.007680768013000488, 0.0076529598236083985, 0.0075392317771911625, 0.007601024150848389, 0.007605247974395752, 0.007810976028442383, 0.007951680183410645, 0.007458879947662354, 0.0074527359008789065, 0.007489759922027588, 0.007315936088562011, 0.0073842558860778805, 0.007209440231323242, 0.006983168125152588, 0.007219967842102051, 0.006743519783020019, 0.007236735820770264, 0.007383008003234864, 0.007421184062957764, 0.007741983890533447, 0.007224991798400879, 0.007127359867095947, 0.007210175991058349, 0.006967743873596191, 0.0070273919105529785, 0.006707104206085205, 0.006688479900360107, 0.0067067198753356936, 0.006731167793273925, 0.006683487892150879, 0.006678880214691162, 0.006649600028991699, 0.006810368061065674, 0.006678976058959961, 0.006761824131011963, 0.006837535858154297, 0.006690559864044189, 0.006682464122772217, 0.006647424221038818, 0.006726208209991455, 0.006656799793243408, 0.006661664009094239, 0.006729568004608154 ] }, "throughput": { "unit": "tokens/s", "value": 137.58784622201 }, "energy": { "unit": "kWh", "cpu": 7.51395060990996e-08, "ram": 4.1085748578514385e-08, "gpu": 1.3992677550893306e-07, "total": 2.56152030186547e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3903931.58028743 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.4819996800422668, "mean": 0.006788727887919252, "stdev": 0.00033227794135614605, "p50": 0.006866943836212158, "p90": 0.007175168037414551, "p95": 0.007268352031707764, "p99": 0.0073377791404724115, "values": [ 0.007305215835571289, 0.007286784172058106, 0.007135231971740722, 0.006855679988861084, 0.007192575931549072, 0.007029856204986572, 0.006749184131622315, 0.00682700777053833, 0.007108607769012451, 0.006882304191589355, 0.006759456157684326, 0.00694271993637085, 0.006968319892883301, 0.006896639823913574, 0.007054336071014404, 0.007175168037414551, 0.007065599918365479, 0.007021567821502686, 0.006777791976928711, 0.006914048194885254, 0.006796288013458252, 0.007121920108795166, 0.006885183811187744, 0.007038943767547608, 0.007064576148986816, 0.007268352031707764, 0.006866943836212158, 0.007109632015228271, 0.007146495819091797, 0.00708403205871582, 0.007044095993041993, 0.0070830078125, 0.007088128089904785, 0.007268352031707764, 0.007413760185241699, 0.00692633581161499, 0.006938623905181885, 0.006967296123504638, 0.0068351998329162595, 0.006872064113616944, 0.006713344097137451, 0.006510591983795166, 0.006740960121154785, 0.006343679904937744, 0.006785024166107178, 0.006889472007751465, 0.00688640022277832, 0.007268352031707764, 0.0067573761940002445, 0.006691840171813965, 0.006755328178405762, 0.006569983959197998, 0.006624256134033203, 0.006316031932830811, 0.006308864116668702, 0.00632422399520874, 0.006336512088775635, 0.006301695823669433, 0.006296576023101807, 0.006266880035400391, 0.0064225602149963375, 0.0062873601913452145, 0.006347775936126709, 0.0064245758056640625, 0.006308864116668702, 0.006301695823669433, 0.00626585578918457, 0.006333439826965332, 0.006276095867156982, 0.006257631778717041, 0.006319104194641113 ] }, "throughput": { "unit": "tokens/s", "value": 147.30300234592264 }, "energy": null, "efficiency": null } } }