{ "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": 1041.44896, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 74, "total": 0.49176995038986215, "mean": 0.006645539870133271, "stdev": 0.0003588633126310971, "p50": 0.00671561598777771, "p90": 0.007092009401321411, "p95": 0.007188164901733398, "p99": 0.007482690272331236, "values": [ 0.007747615814208984, 0.007246751785278321, 0.00717574405670166, 0.007114175796508789, 0.007384704113006592, 0.007108607769012451, 0.006772928237915039, 0.006989855766296387, 0.0069827837944030765, 0.006841087818145752, 0.006958335876464844, 0.00696124792098999, 0.006876224040985107, 0.006901535987854004, 0.006711967945098877, 0.0067448000907897945, 0.006784895896911621, 0.007006175994873047, 0.007040832042694092, 0.006802976131439209, 0.006889952182769775, 0.006867167949676514, 0.006845215797424317, 0.0069574079513549806, 0.006838143825531006, 0.006782623767852783, 0.006788864135742188, 0.007053279876708984, 0.007032832145690918, 0.006913568019866943, 0.007211232185363769, 0.006719264030456543, 0.006728447914123535, 0.006541728019714355, 0.006348320007324219, 0.006659327983856201, 0.0069920320510864255, 0.007147071838378906, 0.006822879791259766, 0.00673747205734253, 0.006757599830627441, 0.006522304058074952, 0.006513696193695068, 0.006310239791870117, 0.006288415908813476, 0.006250527858734131, 0.00630841588973999, 0.006227488040924072, 0.006232863903045655, 0.006233727931976319, 0.006411263942718506, 0.006275424003601074, 0.0062512001991271975, 0.0062451519966125486, 0.006289184093475342, 0.006263840198516846, 0.006265600204467773, 0.006255616188049316, 0.006239327907562256, 0.006291903972625732, 0.006266751766204834, 0.006244351863861084, 0.006211296081542968, 0.006187583923339844, 0.0063006081581115725, 0.006273280143737793, 0.006246335983276367, 0.006576608180999756, 0.006283040046691894, 0.006467455863952636, 0.006439871788024902, 0.006284416198730469, 0.006279903888702393, 0.00624457597732544 ] }, "throughput": { "unit": "tokens/s", "value": 300.9537282273339 }, "energy": { "unit": "kWh", "cpu": 7.810599404817437e-08, "ram": 4.270555517194534e-08, "gpu": 1.483937590657913e-07, "total": 2.69205308285911e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7429274.009247578 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1041.44896, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 74, "total": 0.5173576984405518, "mean": 0.006991320249196645, "stdev": 0.0003531104901945994, "p50": 0.006985904216766358, "p90": 0.0074218335628509526, "p95": 0.007501915240287781, "p99": 0.007715249881744384, "values": [ 0.007459839820861816, 0.0075279359817504886, 0.007487904071807861, 0.007425375938415527, 0.0076787199974060055, 0.007348800182342529, 0.007201856136322022, 0.007367040157318115, 0.007230688095092774, 0.007279039859771729, 0.007336832046508789, 0.0073220481872558595, 0.00727347183227539, 0.007096447944641113, 0.007089568138122559, 0.007261472225189209, 0.007264927864074707, 0.007366752147674561, 0.007192319869995118, 0.007635327816009521, 0.0072676482200622556, 0.007146336078643799, 0.007216224193572998, 0.007117216110229492, 0.007302080154418945, 0.007103839874267578, 0.007413568019866944, 0.007323808193206787, 0.0073029761314392086, 0.007385280132293701, 0.007377312183380127, 0.006765888214111328, 0.007149312019348144, 0.006618656158447265, 0.006692512035369873, 0.007388959884643555, 0.007429408073425293, 0.007814015865325928, 0.006972224235534668, 0.0069995841979980464, 0.007028384208679199, 0.0068345279693603515, 0.006784704208374024, 0.0066574721336364745, 0.006607456207275391, 0.00662556791305542, 0.006589151859283447, 0.006613952159881592, 0.006591968059539795, 0.006800288200378418, 0.0066962561607360836, 0.006605599880218506, 0.006593535900115967, 0.006590943813323974, 0.006559936046600342, 0.006585216045379639, 0.0065978879928588864, 0.006593023777008057, 0.00658406400680542, 0.006565663814544678, 0.006581791877746582, 0.006606847763061524, 0.006606751918792724, 0.006819168090820313, 0.006577184200286865, 0.006660607814788819, 0.006784863948822021, 0.006677536010742188, 0.006883008003234863, 0.006832032203674316, 0.0068089599609375, 0.006582911968231201, 0.0066080961227416996, 0.006589119911193848 ] }, "throughput": { "unit": "tokens/s", "value": 143.03450054586006 }, "energy": { "unit": "kWh", "cpu": 7.383839778455772e-08, "ram": 4.037057366269026e-08, "gpu": 1.3841202593420835e-07, "total": 2.5262099738145627e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3958499.1365147913 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.9962291202545166, "mean": 0.013646974250061871, "stdev": 0.0006775282714783213, "p50": 0.013750240325927735, "p90": 0.014450265502929688, "p95": 0.01469808597564697, "p99": 0.015043420028686524, "values": [ 0.01475276756286621, 0.014767104148864747, 0.014576640129089356, 0.015064064025878907, 0.014547967910766601, 0.014005248069763183, 0.01435750389099121, 0.01427558422088623, 0.014144512176513671, 0.014312447547912598, 0.014299136161804199, 0.014212160110473633, 0.014064576148986816, 0.013829119682312012, 0.013981696128845214, 0.014105600357055664, 0.014400511741638184, 0.014287872314453125, 0.014452735900878906, 0.014186495780944825, 0.014071807861328126, 0.014043135643005371, 0.01417625617980957, 0.014125056266784668, 0.01396019172668457, 0.01415891170501709, 0.014440383911132813, 0.014392319679260255, 0.01430835247039795, 0.01466163158416748, 0.013586432456970214, 0.013842432022094727, 0.013287424087524414, 0.013041664123535156, 0.013981696128845214, 0.014404607772827148, 0.015035391807556153, 0.01392848014831543, 0.013750240325927735, 0.013840383529663085, 0.013399040222167969, 0.013321215629577637, 0.013002752304077148, 0.012924927711486817, 0.012900351524353027, 0.012911616325378418, 0.012860416412353515, 0.012868608474731445, 0.012963839530944824, 0.013224960327148438, 0.012889087677001953, 0.012899392127990723, 0.01286240005493164, 0.012873727798461914, 0.01287168025970459, 0.012880895614624023, 0.01287782382965088, 0.012851200103759765, 0.012875776290893554, 0.012881919860839844, 0.012895232200622558, 0.012837887763977051, 0.013026304244995117, 0.012905471801757813, 0.012955648422241211, 0.01305395221710205, 0.013289471626281739, 0.013154303550720215, 0.013360128402709961, 0.013272064208984375, 0.012905471801757813, 0.012907520294189453, 0.01286348819732666 ] }, "throughput": { "unit": "tokens/s", "value": 73.27631617649358 }, "energy": null, "efficiency": null } } }