{ "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.224-212.876.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.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "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": 800.530432, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.97512109375, "mean": 7.97512109375, "stdev": 0.0, "p50": 7.97512109375, "p90": 7.97512109375, "p95": 7.97512109375, "p99": 7.97512109375, "values": [ 7.97512109375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 2.4918459868045616e-06, "ram": 1.3465446340846284e-06, "gpu": 3.4975027979999417e-06, "total": 7.335893418889132e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1207.590912, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 76, "total": 0.491967586517334, "mean": 0.0064732577173333425, "stdev": 0.000321917235173787, "p50": 0.006342623949050903, "p90": 0.006666399955749512, "p95": 0.007061072111129761, "p99": 0.007818583965301515, "values": [ 0.007794816017150879, 0.007036640167236328, 0.007134367942810058, 0.006524352073669434, 0.006411935806274414, 0.006306560039520264, 0.006289663791656494, 0.00630953598022461, 0.0062964801788330076, 0.0062873601913452145, 0.006254496097564698, 0.0062624640464782715, 0.006292384147644043, 0.006301536083221436, 0.006286719799041748, 0.006246016025543213, 0.006273471832275391, 0.006260191917419434, 0.006262559890747071, 0.006241600036621094, 0.006486368179321289, 0.006532159805297852, 0.0062549118995666505, 0.0062436480522155766, 0.006302656173706055, 0.006283552169799805, 0.006336927890777588, 0.006296288013458252, 0.006244895935058593, 0.006302656173706055, 0.006277376174926757, 0.006258143901824951, 0.006304416179656982, 0.006503680229187012, 0.006295199871063232, 0.0062585601806640625, 0.006275872230529785, 0.006339168071746826, 0.007750304222106934, 0.006674655914306641, 0.006292448043823242, 0.006690336227416992, 0.006652224063873291, 0.0063415999412536625, 0.006343647956848144, 0.006513984203338623, 0.00625980806350708, 0.00624022388458252, 0.0065792641639709475, 0.006535359859466553, 0.006454304218292236, 0.006531295776367188, 0.006304160118103027, 0.006552800178527832, 0.0066581439971923825, 0.006493728160858154, 0.006540383815765381, 0.006503712177276611, 0.006554687976837158, 0.006587232112884521, 0.006481503963470459, 0.006480800151824951, 0.007889887809753419, 0.006679840087890625, 0.006578752040863037, 0.006552639961242676, 0.006263423919677735, 0.00624835205078125, 0.0062979841232299804, 0.0064728641510009765, 0.0064694080352783205, 0.006512864112854004, 0.006532608032226562, 0.006488160133361816, 0.006541567802429199, 0.00655299186706543 ] }, "throughput": { "unit": "tokens/s", "value": 308.96344427082374 }, "energy": { "unit": "kWh", "cpu": 7.903065710540773e-08, "ram": 4.306420509493339e-08, "gpu": 1.6138717841059543e-07, "total": 2.834820406109365e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7055120.654873829 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1225.936896, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 76, "total": 0.5182727680206299, "mean": 0.006819378526587236, "stdev": 0.00034343982539088196, "p50": 0.0067708961963653565, "p90": 0.007040752172470093, "p95": 0.007531751871109009, "p99": 0.008166271924972535, "values": [ 0.007860479831695556, 0.007422175884246826, 0.00787721586227417, 0.00657916784286499, 0.006610559940338135, 0.006602272033691407, 0.006608416080474853, 0.006580639839172364, 0.006747263908386231, 0.006584959983825684, 0.006617728233337402, 0.006613152027130127, 0.006568319797515869, 0.00658073616027832, 0.006606847763061524, 0.006599999904632568, 0.006584320068359375, 0.006553023815155029, 0.0065799360275268556, 0.006755008220672608, 0.006848000049591065, 0.006965216159820557, 0.006600031852722168, 0.006585887908935547, 0.0065456957817077634, 0.006594367980957031, 0.006582816123962402, 0.006574975967407227, 0.006572959899902343, 0.006626272201538086, 0.006591104030609131, 0.006581215858459472, 0.006591008186340332, 0.006890880107879639, 0.006672863960266113, 0.006586559772491455, 0.00656387186050415, 0.006616543769836425, 0.007041344165802002, 0.006835775852203369, 0.007272096157073975, 0.0068607358932495114, 0.006963647842407226, 0.006577951908111572, 0.006902656078338623, 0.006823200225830078, 0.006600128173828125, 0.006735968112945557, 0.006832608222961426, 0.006852352142333985, 0.0068130559921264645, 0.006897056102752685, 0.008109375953674317, 0.006805408000946045, 0.007040160179138184, 0.006867712020874024, 0.0068494720458984375, 0.007039680004119873, 0.00686243200302124, 0.006910079956054687, 0.006958176136016845, 0.007086719989776611, 0.008336959838867187, 0.0068772158622741695, 0.006820352077484131, 0.006821023941040039, 0.006582208156585693, 0.0065838079452514645, 0.00656547212600708, 0.006825183868408203, 0.006852608203887939, 0.00684496021270752, 0.006886496067047119, 0.006995999813079834, 0.006786784172058105, 0.006833407878875732 ] }, "throughput": { "unit": "tokens/s", "value": 146.64092865665444 }, "energy": { "unit": "kWh", "cpu": 7.20409435011303e-08, "ram": 3.9494215827274145e-08, "gpu": 1.448683408552308e-07, "total": 2.564035001836353e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3900102.764914689 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 76, "total": 0.48786339139938356, "mean": 0.00641925514999189, "stdev": 0.0003133049350307412, "p50": 0.006383103847503662, "p90": 0.006632447957992554, "p95": 0.006991103887557983, "p99": 0.0077053200006484985, "values": [ 0.007268352031707764, 0.0068986878395080565, 0.007371776103973389, 0.006198272228240966, 0.00622489595413208, 0.006217728137969971, 0.006230016231536865, 0.006200319766998291, 0.00636521577835083, 0.006198239803314209, 0.006237184047698975, 0.006235136032104492, 0.006189055919647217, 0.006180863857269287, 0.006217728137969971, 0.0062228479385375976, 0.0061972479820251464, 0.00617574405670166, 0.0061931519508361815, 0.006367231845855713, 0.006459392070770263, 0.006559743881225586, 0.006221824169158936, 0.00620851182937622, 0.006165503978729248, 0.006161407947540283, 0.006206463813781738, 0.006198272228240966, 0.006196224212646485, 0.006246399879455566, 0.006202367782592774, 0.006201344013214111, 0.006206463813781738, 0.006499328136444092, 0.006295551776885986, 0.006208479881286621, 0.0061859841346740725, 0.00623308801651001, 0.006615039825439453, 0.0064430079460144046, 0.00684441614151001, 0.006464511871337891, 0.006555647850036621, 0.006198272228240966, 0.006511616230010986, 0.006401055812835693, 0.006221824169158936, 0.0063539199829101565, 0.006442016124725342, 0.006463488101959228, 0.006426623821258545, 0.0065075201988220215, 0.007670752048492432, 0.006406144142150879, 0.006649856090545654, 0.006478847980499268, 0.006423552036285401, 0.0066499199867248535, 0.006468607902526856, 0.006498303890228272, 0.006558720111846924, 0.006597631931304931, 0.007809023857116699, 0.006475776195526123, 0.00643174409866333, 0.006423552036285401, 0.006202367782592774, 0.006200352191925049, 0.006177792072296143, 0.006415359973907471, 0.006462463855743408, 0.006440959930419922, 0.0064880638122558594, 0.006599679946899414, 0.006398975849151611, 0.00643993616104126 ] }, "throughput": { "unit": "tokens/s", "value": 155.78131366242133 }, "energy": null, "efficiency": null } } }