{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+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.293824, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.219-208.866.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.3.0", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1029.722112, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 72, "total": 0.4872512011528014, "mean": 0.00676737779378891, "stdev": 0.000403012217076752, "p50": 0.006822304010391236, "p90": 0.0072958177089691165, "p95": 0.007332617735862732, "p99": 0.00760452877044678, "values": [ 0.00787007999420166, 0.007310239791870117, 0.007362720012664795, 0.007295936107635498, 0.007207295894622803, 0.006815264225006104, 0.006918432235717774, 0.007107903957366943, 0.007301184177398681, 0.0071842560768127445, 0.007283552169799805, 0.007496064186096192, 0.00705628776550293, 0.006804384231567383, 0.006900159835815429, 0.006988863945007324, 0.007227168083190918, 0.007146560192108155, 0.007233856201171875, 0.007075679779052734, 0.0070421438217163086, 0.006865632057189941, 0.006943871974945068, 0.0072947521209716796, 0.00711190414428711, 0.0071209602355957035, 0.0073229122161865235, 0.007344480037689209, 0.007089951992034912, 0.007018112182617188, 0.0070380158424377445, 0.006931551933288574, 0.006829343795776367, 0.00639244794845581, 0.006845952033996582, 0.007107776165008545, 0.006992767810821534, 0.006898560047149658, 0.006643231868743897, 0.00691487979888916, 0.006501344203948975, 0.006325376033782959, 0.006402495861053467, 0.006514560222625732, 0.0066425280570983885, 0.006397791862487793, 0.006318528175354004, 0.006305439949035645, 0.006401919841766358, 0.006339968204498291, 0.006323520183563232, 0.00634768009185791, 0.006373760223388672, 0.00632531213760376, 0.006313951969146728, 0.006344960212707519, 0.006356863975524902, 0.006417247772216797, 0.006632639884948731, 0.006378335952758789, 0.0063506560325622555, 0.006333087921142578, 0.006357503890991211, 0.006349376201629639, 0.006310368061065674, 0.0063324799537658695, 0.006340767860412598, 0.006318304061889648, 0.006298751831054688, 0.006327744007110596, 0.00632316780090332, 0.006309631824493408 ] }, "throughput": { "unit": "tokens/s", "value": 295.5354438517674 }, "energy": { "unit": "kWh", "cpu": 7.915421878850018e-08, "ram": 4.3148626972175763e-08, "gpu": 1.4940197137332824e-07, "total": 2.717048171340042e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7360929.486257892 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1029.722112, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 72, "total": 0.5149121608734131, "mean": 0.007151557789908515, "stdev": 0.000430990520647158, "p50": 0.007161375999450684, "p90": 0.007691113471984864, "p95": 0.007769840025901795, "p99": 0.007868115496635438, "values": [ 0.007719967842102051, 0.007739007949829102, 0.007691167831420899, 0.007653535842895508, 0.007538976192474366, 0.007199999809265137, 0.007473055839538574, 0.007617695808410645, 0.007602560043334961, 0.007673279762268066, 0.007669727802276611, 0.007755296230316162, 0.0074011201858520505, 0.007229311943054199, 0.007284351825714111, 0.007608223915100098, 0.007895584106445313, 0.007637279987335205, 0.007420256137847901, 0.007369952201843262, 0.0073928642272949215, 0.007291647911071777, 0.007557727813720703, 0.007575007915496826, 0.007690624237060547, 0.007856895923614502, 0.007787615776062012, 0.007598656177520752, 0.007257023811340332, 0.007678656101226806, 0.007246719837188721, 0.007687903881072998, 0.006943168163299561, 0.006774400234222412, 0.007439328193664551, 0.007292479991912842, 0.007520287990570068, 0.007122752189636231, 0.006947135925292969, 0.006979296207427979, 0.006691232204437256, 0.006697824001312256, 0.006685984134674072, 0.0078111357688903805, 0.006833536148071289, 0.006698560237884521, 0.006696800231933594, 0.006868768215179444, 0.006655007839202881, 0.006680255889892578, 0.006760640144348145, 0.006671487808227539, 0.006671072006225586, 0.006681280136108398, 0.006688255786895752, 0.006677792072296142, 0.007063744068145752, 0.006704671859741211, 0.006896607875823975, 0.006695456027984619, 0.00667628812789917, 0.006762944221496582, 0.006638495922088623, 0.00679088020324707, 0.006679999828338623, 0.00666812801361084, 0.006678175926208496, 0.006671487808227539, 0.006681663990020752, 0.006668288230895996, 0.006671264171600342, 0.006673888206481933 ] }, "throughput": { "unit": "tokens/s", "value": 139.829674789329 }, "energy": { "unit": "kWh", "cpu": 7.403194496774268e-08, "ram": 4.060994211450055e-08, "gpu": 1.37389568601034e-07, "total": 2.520314556832773e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3967758.696187032 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 143, "total": 0.9961400961875913, "mean": 0.0069660146586544855, "stdev": 0.0004993491866732639, "p50": 0.006838272094726563, "p90": 0.0077115392684936526, "p95": 0.00786148180961609, "p99": 0.00794107894897461, "values": [ 0.007134208202362061, 0.007931903839111328, 0.007203839778900147, 0.007933951854705811, 0.007161856174468994, 0.007862304210662842, 0.007124959945678711, 0.007771135807037354, 0.007000063896179199, 0.00738918399810791, 0.006714367866516113, 0.0074403839111328125, 0.006913023948669434, 0.007714816093444824, 0.0070830078125, 0.007872511863708496, 0.007083072185516358, 0.0077413759231567385, 0.007137279987335205, 0.007854080200195313, 0.007090176105499267, 0.008111104011535645, 0.007230463981628418, 0.007617536067962646, 0.006895616054534912, 0.007346176147460938, 0.006691840171813965, 0.007473152160644531, 0.006781951904296875, 0.007525375843048096, 0.0070594558715820314, 0.007814144134521485, 0.007315455913543701, 0.007762944221496582, 0.007108607769012451, 0.007797760009765625, 0.006900735855102539, 0.007629824161529541, 0.006803455829620361, 0.00764415979385376, 0.006889472007751465, 0.00740556812286377, 0.006773759841918945, 0.0074967041015625, 0.007014400005340577, 0.007873536109924317, 0.007051328182220459, 0.007673791885375977, 0.007150591850280762, 0.0076984319686889645, 0.007270400047302246, 0.007946239948272706, 0.007243775844573975, 0.007927807807922363, 0.007066624164581299, 0.007659520149230957, 0.006770688056945801, 0.007539711952209473, 0.007175168037414551, 0.007576576232910156, 0.006790143966674805, 0.00742195177078247, 0.00714035177230835, 0.007412735939025879, 0.006543360233306885, 0.006821919918060302, 0.006347743988037109, 0.007304192066192627, 0.006922239780426025, 0.007659520149230957, 0.006750207901000976, 0.007570432186126709, 0.007006207942962647, 0.00744755220413208, 0.006702079772949219, 0.007108607769012451, 0.0065413122177124024, 0.007350272178649903, 0.006530079841613769, 0.006978528022766113, 0.006299647808074951, 0.006743040084838867, 0.006306816101074219, 0.006819839954376221, 0.006294528007507324, 0.006931456089019775, 0.007387135982513428, 0.007096320152282715, 0.006436863899230957, 0.006820864200592041, 0.006301695823669433, 0.0067420158386230465, 0.006304768085479737, 0.006722559928894043, 0.006459392070770263, 0.006838272094726563, 0.006262784004211426, 0.006758399963378906, 0.006281216144561768, 0.006748159885406494, 0.006368256092071533, 0.006766592025756836, 0.0062791681289672855, 0.006792255878448486, 0.006260672092437744, 0.006761472225189209, 0.006292479991912842, 0.0067276802062988285, 0.006296576023101807, 0.0067645440101623535, 0.006281216144561768, 0.006778880119323731, 0.006625279903411865, 0.006883327960968018, 0.006311935901641846, 0.007051263809204102, 0.006500351905822754, 0.006801407814025879, 0.006299647808074951, 0.006772736072540283, 0.0062863359451293946, 0.006748159885406494, 0.006371327877044678, 0.006774784088134766, 0.006247424125671387, 0.006766592025756836, 0.006376448154449463, 0.006751232147216797, 0.006280191898345947, 0.006758399963378906, 0.006277120113372803, 0.0067573761940002445, 0.006268928050994873, 0.006754303932189941, 0.00626585578918457, 0.006730751991271973, 0.0062904319763183595, 0.00674508810043335, 0.006277120113372803, 0.006739967823028564, 0.0062576642036437985, 0.006749184131622315, 0.006273087978363037 ] }, "throughput": { "unit": "tokens/s", "value": 143.55410503732045 }, "energy": null, "efficiency": null } } }