{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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.33.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": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.232512, "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.3702421875, "mean": 7.3702421875, "stdev": 0.0, "p50": 7.3702421875, "p90": 7.3702421875, "p95": 7.3702421875, "p99": 7.3702421875, "values": [ 7.3702421875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0140203090276067e-06, "ram": 5.40331722299215e-07, "gpu": 1.6733346719997443e-06, "total": 3.227686703326566e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1193.230336, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 70, "total": 0.4897297306060793, "mean": 0.006996139008658273, "stdev": 0.000410524576066269, "p50": 0.007070127964019775, "p90": 0.007355996656417847, "p95": 0.00742437596321106, "p99": 0.008166970672607424, "values": [ 0.008041760444641114, 0.00735430383682251, 0.007420767784118652, 0.007317696094512939, 0.007227712154388428, 0.006951583862304688, 0.007094592094421387, 0.007291647911071777, 0.007209792137145996, 0.00709494400024414, 0.0072197442054748534, 0.0073712320327758785, 0.007262368202209473, 0.00713263988494873, 0.007235616207122803, 0.00728169584274292, 0.007247392177581787, 0.00708460807800293, 0.007427328109741211, 0.007290719985961914, 0.0072271361351013185, 0.0072501440048217776, 0.007120800018310547, 0.007329152107238769, 0.0071866240501403805, 0.006959936141967773, 0.0070700798034667965, 0.007244768142700195, 0.007040256023406982, 0.007067327976226807, 0.007066912174224853, 0.007113152027130127, 0.007374080181121826, 0.007266623973846436, 0.007129792213439941, 0.007233695983886719, 0.007070176124572754, 0.006982656002044678, 0.006823840141296386, 0.007092512130737304, 0.006649600028991699, 0.006619264125823974, 0.008445664405822754, 0.008041215896606444, 0.007301792144775391, 0.007047391891479492, 0.006908671855926514, 0.006915743827819824, 0.006723008155822754, 0.006728256225585937, 0.00669049596786499, 0.006719327926635742, 0.006504032135009765, 0.006467711925506592, 0.006497856140136719, 0.00646127986907959, 0.006528448104858398, 0.006514400005340576, 0.006494527816772461, 0.0065084161758422856, 0.00649183988571167, 0.006412032127380371, 0.006387487888336181, 0.006442944049835205, 0.006516064167022705, 0.00647276782989502, 0.00649561595916748, 0.006548031806945801, 0.006469855785369873, 0.006518176078796387 ] }, "throughput": { "unit": "tokens/s", "value": 285.87196416835667 }, "energy": { "unit": "kWh", "cpu": 8.091220777116454e-08, "ram": 4.409753855165658e-08, "gpu": 1.5496800001360733e-07, "total": 2.7997774633642844e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7143424.883478949 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1211.63776, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 70, "total": 0.5158373103141785, "mean": 0.007369104433059692, "stdev": 0.00043647585925636276, "p50": 0.007468400001525878, "p90": 0.007745004606246948, "p95": 0.0077970111846923824, "p99": 0.008619238710403442, "values": [ 0.007798048019409179, 0.007732800006866455, 0.007665567874908448, 0.007558271884918213, 0.007724095821380615, 0.007398111820220947, 0.007523839950561524, 0.0075771198272705075, 0.007782911777496338, 0.007508512020111084, 0.007597311973571778, 0.007521344184875488, 0.007742623805999756, 0.0076474881172180174, 0.008457632064819335, 0.007614463806152344, 0.007699967861175537, 0.007680191993713379, 0.00772054386138916, 0.007660223960876465, 0.007605343818664551, 0.007641119956970215, 0.00776643180847168, 0.007453983783721924, 0.0075912318229675296, 0.007394144058227539, 0.007451488018035889, 0.007548064231872559, 0.007479455947875977, 0.007470623970031738, 0.00746617603302002, 0.00760748815536499, 0.007680607795715332, 0.0076603198051452635, 0.007738239765167236, 0.007376575946807861, 0.007482495784759522, 0.007364799976348877, 0.007183231830596924, 0.0071487360000610355, 0.006814559936523437, 0.00821884822845459, 0.008978943824768066, 0.0077957439422607425, 0.007553728103637696, 0.00723308801651001, 0.007214335918426513, 0.00721120023727417, 0.007069983959197998, 0.007072768211364746, 0.007069759845733643, 0.0070013761520385746, 0.00683244800567627, 0.00681932783126831, 0.006789984226226807, 0.006830399990081787, 0.006847487926483154, 0.006844543933868409, 0.006873472213745117, 0.006817440032958985, 0.006881824016571045, 0.006740096092224121, 0.006728928089141845, 0.00679417610168457, 0.006819680213928223, 0.00680294418334961, 0.006804224014282227, 0.0068211197853088375, 0.00679804801940918, 0.007035200119018555 ] }, "throughput": { "unit": "tokens/s", "value": 135.7017001297666 }, "energy": { "unit": "kWh", "cpu": 7.554356524601515e-08, "ram": 4.144469249165852e-08, "gpu": 1.496155769863923e-07, "total": 2.66603834724066e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3750883.782429448 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 70, "total": 0.48187299299240116, "mean": 0.006883899899891445, "stdev": 0.00037856204682235213, "p50": 0.006951424121856689, "p90": 0.0072185567378997804, "p95": 0.0072543233633041385, "p99": 0.0080650137424469, "values": [ 0.007218143939971924, 0.007194591999053955, 0.007136256217956543, 0.007031807899475098, 0.007171072006225586, 0.006879231929779053, 0.006977536201477051, 0.006998015880584717, 0.007250944137573242, 0.006970367908477783, 0.007054336071014404, 0.006988863945007324, 0.007225344181060791, 0.007126016139984131, 0.007928832054138184, 0.0070553598403930665, 0.0071792640686035155, 0.007153664112091064, 0.007180319786071777, 0.007077951908111572, 0.007073791980743408, 0.007134208202362061, 0.007222271919250488, 0.00693555212020874, 0.0070767998695373535, 0.006884352207183838, 0.006940671920776367, 0.007045119762420654, 0.0069632000923156735, 0.006957056045532227, 0.006945792198181152, 0.007062528133392334, 0.007087103843688965, 0.007129087924957276, 0.007185408115386963, 0.0068351998329162595, 0.006987775802612305, 0.006866943836212158, 0.006689792156219483, 0.0067348480224609375, 0.0064143362045288085, 0.007643136024475097, 0.008368127822875977, 0.00725708818435669, 0.007072768211364746, 0.006763519763946534, 0.006772736072540283, 0.006804480075836182, 0.006659071922302246, 0.006628352165222168, 0.006673376083374024, 0.0065812478065490725, 0.006440959930419922, 0.006428671836853027, 0.00638976001739502, 0.006441984176635742, 0.006446080207824707, 0.006406144142150879, 0.0064778242111206055, 0.006426623821258545, 0.006472703933715821, 0.006352896213531494, 0.006341631889343262, 0.0063846721649169925, 0.006429696083068847, 0.006415359973907471, 0.006393856048583985, 0.006429696083068847, 0.006409279823303223, 0.006591487884521485 ] }, "throughput": { "unit": "tokens/s", "value": 145.26649349095987 }, "energy": null, "efficiency": null } } }