{ "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_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.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.1", "optimum_benchmark_commit": null, "transformers_version": "4.43.2", "transformers_commit": null, "accelerate_version": "0.33.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": { "load": { "memory": { "unit": "MB", "max_ram": 720.05632, "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.2011611328125, "mean": 7.2011611328125, "stdev": 0.0, "p50": 7.2011611328125, "p90": 7.2011611328125, "p95": 7.2011611328125, "p99": 7.2011611328125, "values": [ 7.2011611328125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.798942340744868e-07, "ram": 5.212006939536688e-07, "gpu": 1.7352791659985822e-06, "total": 3.2363740940267377e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1023.56992, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 76, "total": 0.48889452791213983, "mean": 0.0064328227356860515, "stdev": 0.00022085123086029598, "p50": 0.006326591968536377, "p90": 0.006609472036361694, "p95": 0.0067116799354553225, "p99": 0.0073211280107498165, "values": [ 0.007678847789764404, 0.007201888084411621, 0.006630943775177002, 0.007005824089050293, 0.006663551807403564, 0.00673635196685791, 0.006570047855377197, 0.006310688018798828, 0.006323840141296387, 0.006322144031524658, 0.006336959838867187, 0.006360159873962402, 0.006458720207214355, 0.006360991954803467, 0.006345695972442627, 0.006328800201416016, 0.006323200225830078, 0.006332543849945069, 0.006317376136779785, 0.006299232006072998, 0.006281311988830566, 0.006317823886871338, 0.00631606388092041, 0.006305823802947998, 0.006288352012634277, 0.006319680213928223, 0.006330687999725342, 0.006292223930358887, 0.00629372787475586, 0.006302207946777344, 0.0063088321685791015, 0.006330592155456543, 0.006290847778320312, 0.006296576023101807, 0.006322303771972656, 0.0062960958480834965, 0.006306816101074219, 0.0063021121025085445, 0.006547967910766602, 0.006703455924987793, 0.0065393919944763184, 0.006559360027313233, 0.006454527854919434, 0.006297408103942871, 0.006327648162841797, 0.006320735931396484, 0.006305503845214844, 0.006449344158172607, 0.006624288082122802, 0.006561024188995361, 0.006564000129699707, 0.0065946559906005855, 0.006555456161499024, 0.006510496139526367, 0.006582015991210937, 0.006287839889526367, 0.006485599994659424, 0.006580319881439209, 0.006311776161193848, 0.006323008060455322, 0.00632755184173584, 0.006404255867004395, 0.006298399925231933, 0.006314943790435791, 0.006305408000946045, 0.00631331205368042, 0.006275648117065429, 0.00658131217956543, 0.006325024127960205, 0.006517504215240479, 0.006545887947082519, 0.006535679817199707, 0.006300704002380371, 0.006325632095336914, 0.0063129281997680664, 0.006314623832702637 ] }, "throughput": { "unit": "tokens/s", "value": 310.9055048112876 }, "energy": { "unit": "kWh", "cpu": 7.90517650268696e-08, "ram": 4.322153425669373e-08, "gpu": 1.5935012747998744e-07, "total": 2.816234267635508e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7101681.926763809 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1038.942208, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 76, "total": 0.5112642235755921, "mean": 0.006727160836520947, "stdev": 0.0002120051118579233, "p50": 0.006624719858169556, "p90": 0.006893791913986206, "p95": 0.00696235990524292, "p99": 0.007605104088783264, "values": [ 0.007496992111206055, 0.007929440021514893, 0.006668288230895996, 0.006943583965301514, 0.006986911773681641, 0.006879295825958252, 0.0068633279800415035, 0.0066334400177001955, 0.0066146240234375, 0.006600031852722168, 0.006601088047027588, 0.0067452797889709475, 0.006682528018951416, 0.006574944019317627, 0.006701087951660157, 0.006617023944854737, 0.006632415771484375, 0.0065684161186218264, 0.006581503868103028, 0.006604063987731934, 0.006600575923919678, 0.006567455768585205, 0.006575744152069091, 0.006685535907745361, 0.006602528095245361, 0.006585599899291993, 0.006575168132781983, 0.00659548807144165, 0.00658351993560791, 0.0066121921539306645, 0.006584832191467285, 0.006592383861541748, 0.00668281602859497, 0.0066061758995056155, 0.0067200961112976075, 0.006588128089904785, 0.006609856128692627, 0.00660038423538208, 0.00686300802230835, 0.0068897919654846195, 0.006883488178253174, 0.006955423831939697, 0.006612127780914307, 0.006583295822143555, 0.006579135894775391, 0.006587071895599365, 0.006572415828704834, 0.006983168125152588, 0.006864607810974121, 0.006868383884429932, 0.006925248146057129, 0.006883872032165527, 0.006897791862487793, 0.006840960025787353, 0.006870272159576416, 0.006614496231079101, 0.006881279945373535, 0.006875616073608398, 0.00661513614654541, 0.00666044807434082, 0.006562335968017578, 0.006875872135162353, 0.006613247871398926, 0.006572159767150879, 0.00656217622756958, 0.006588575839996338, 0.006725696086883545, 0.006829055786132812, 0.006728799819946289, 0.006880703926086426, 0.006837791919708252, 0.0068355522155761714, 0.006679488182067871, 0.006595647811889648, 0.006584544181823731, 0.00659276819229126 ] }, "throughput": { "unit": "tokens/s", "value": 148.65112107489986 }, "energy": { "unit": "kWh", "cpu": 7.532267376400639e-08, "ram": 4.117929309984925e-08, "gpu": 1.8681898062388985e-07, "total": 3.033209474877455e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3296837.9146989216 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 76, "total": 0.4809175357818602, "mean": 0.006327862312919215, "stdev": 0.00018955158131346242, "p50": 0.006238719940185547, "p90": 0.006490623950958252, "p95": 0.006550783991813659, "p99": 0.007060223937034607, "values": [ 0.006948863983154297, 0.007394303798675537, 0.006281216144561768, 0.006540287971496582, 0.00658739185333252, 0.006466559886932373, 0.006437888145446777, 0.006246335983276367, 0.006230016231536865, 0.006217728137969971, 0.006189055919647217, 0.006335487842559814, 0.006296576023101807, 0.006188032150268555, 0.006315008163452148, 0.006232063770294189, 0.006245376110076905, 0.006182911872863769, 0.00619212818145752, 0.006212607860565185, 0.006213632106781006, 0.006177792072296143, 0.006174719810485839, 0.0062975997924804685, 0.006210559844970703, 0.006187007904052734, 0.006188032150268555, 0.006199295997619629, 0.006200319766998291, 0.006220799922943115, 0.006202367782592774, 0.006207488059997559, 0.006296576023101807, 0.0062228479385375976, 0.006337535858154297, 0.006201344013214111, 0.0062269439697265625, 0.0062156801223754886, 0.006464511871337891, 0.006490111827850342, 0.006484000205993652, 0.006535136222839356, 0.006229055881500244, 0.0061983041763305664, 0.006194176197052002, 0.006177792072296143, 0.006187039852142334, 0.006582272052764892, 0.00643071985244751, 0.006469632148742676, 0.006519743919372559, 0.006486015796661377, 0.006491136074066162, 0.006441984176635742, 0.006454304218292236, 0.006228991985321045, 0.006470655918121338, 0.006458367824554443, 0.006231040000915527, 0.006277120113372803, 0.006178815841674804, 0.006463488101959228, 0.006227968215942382, 0.0061859841346740725, 0.006177792072296143, 0.006202367782592774, 0.006325247764587402, 0.00643174409866333, 0.006298624038696289, 0.006482944011688232, 0.00643174409866333, 0.0064143362045288085, 0.006273024082183838, 0.006210559844970703, 0.006202367782592774, 0.006188032150268555 ] }, "throughput": { "unit": "tokens/s", "value": 158.03125140039162 }, "energy": null, "efficiency": null } } }