{ "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.225-213.878.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.5.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": "1.22.0", "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.13.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 804.806656, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.339328 }, "latency": { "unit": "s", "values": [ 8.2964326171875 ], "count": 1, "total": 8.2964326171875, "mean": 8.2964326171875, "p50": 8.2964326171875, "p90": 8.2964326171875, "p95": 8.2964326171875, "p99": 8.2964326171875, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.774344673611701e-07, "ram": 5.167070011416647e-07, "gpu": 1.6111124000000015e-06, "total": 3.105253868502836e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1258.328064, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "values": [ 0.007018815994262695, 0.006904672145843506, 0.00698041582107544, 0.007303359985351562, 0.007480160236358642, 0.007394015789031982, 0.006912576198577881, 0.006901343822479248, 0.007015007972717285, 0.007322527885437012, 0.007233151912689209, 0.007298175811767578, 0.006903264045715332, 0.006865536212921143, 0.006807583808898926, 0.0068853440284729, 0.00679145622253418, 0.006910719871520996, 0.007136000156402588, 0.007581408023834228, 0.007420608043670654, 0.007322144031524658, 0.007158559799194336, 0.007108479976654053, 0.0070423040390014645, 0.007239232063293457, 0.006500895977020264, 0.006707039833068848, 0.007628128051757812, 0.008236639976501465, 0.007481503963470459, 0.0075753917694091795, 0.00686575984954834, 0.006649151802062988, 0.0066984319686889645, 0.00685971212387085, 0.0066950078010559085, 0.006438496112823486, 0.006712224006652832, 0.006672607898712158, 0.006627679824829102, 0.006745920181274414, 0.006586656093597412, 0.0066774082183837895, 0.006602303981781006, 0.0066715521812438965, 0.006662752151489258, 0.00671721601486206, 0.006669023990631104, 0.006837408065795899, 0.006680575847625733, 0.006605760097503662, 0.006623936176300049, 0.006806496143341064, 0.006788896083831787, 0.007199967861175537, 0.007355552196502685, 0.0067094721794128415, 0.006691232204437256, 0.00668009614944458, 0.006672639846801758, 0.006615488052368164, 0.0066900157928466795, 0.00667628812789917, 0.0066416640281677245, 0.006694464206695556, 0.006684319972991943, 0.007022208213806153, 0.006613408088684082, 0.006643231868743897, 0.006653024196624756 ], "count": 71, "total": 0.49120451307296775, "mean": 0.0069183734235629245, "p50": 0.006806496143341064, "p90": 0.007394015789031982, "p95": 0.00752844786643982, "p99": 0.007810681629180906, "stdev": 0.0003354952031170208, "stdev_": 4.849336434693961 }, "throughput": { "unit": "tokens/s", "value": 289.08529180982123 }, "energy": { "unit": "kWh", "cpu": 8.022151043997023e-08, "ram": 4.372000733294453e-08, "gpu": 1.5118021042953102e-07, "total": 2.7512172820244576e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7269509.438848533 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1258.328064, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "values": [ 0.007212063789367676, 0.007415616035461426, 0.007624447822570801, 0.007949728012084961, 0.007766560077667236, 0.007727551937103272, 0.007164896011352539, 0.007390463829040527, 0.007696288108825684, 0.00786307191848755, 0.007547679901123047, 0.007618175983428955, 0.007499904155731201, 0.007071199893951416, 0.007361824035644531, 0.0071645441055297856, 0.007248127937316894, 0.007379744052886963, 0.007317215919494629, 0.0078788161277771, 0.0076299839019775394, 0.007603968143463135, 0.007887392044067383, 0.007528543949127197, 0.007292704105377197, 0.007508607864379882, 0.0067309441566467286, 0.007280735969543457, 0.008603775978088379, 0.008862527847290039, 0.0072278399467468266, 0.00740118408203125, 0.006956160068511963, 0.0069901437759399415, 0.007001183986663819, 0.00711894416809082, 0.0069688639640808105, 0.007010240077972412, 0.007131711959838867, 0.0070474882125854494, 0.008030495643615722, 0.007045919895172119, 0.006974688053131103, 0.0069526081085205076, 0.007005887985229492, 0.006912223815917969, 0.007063839912414551, 0.006965248107910156, 0.007476384162902832, 0.00699286413192749, 0.007069056034088135, 0.006983583927154541, 0.007102015972137451, 0.007238976001739502, 0.007049471855163574, 0.007475071907043457, 0.0070653119087219236, 0.007036096096038819, 0.007004928112030029, 0.007061759948730469, 0.00701308822631836, 0.006937088012695313, 0.006943615913391113, 0.007122879981994629, 0.006940159797668457, 0.006944928169250488, 0.00715337610244751, 0.006962431907653809, 0.00702291202545166, 0.006958303928375244, 0.007009503841400147 ], "count": 71, "total": 0.5171955833435059, "mean": 0.0072844448358240265, "p50": 0.007131711959838867, "p90": 0.007766560077667236, "p95": 0.007918560028076171, "p99": 0.008681401538848875, "stdev": 0.0003891736116543977, "stdev_": 5.342529464160241 }, "throughput": { "unit": "tokens/s", "value": 137.27882117826192 }, "energy": { "unit": "kWh", "cpu": 7.453831306291774e-08, "ram": 4.084761054816606e-08, "gpu": 1.3804080016786586e-07, "total": 2.534267237789498e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3945913.7737669884 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.006712255954742431, 0.00690176010131836, 0.007103487968444824, 0.007401472091674805, 0.0072202239036560055, 0.007188479900360107, 0.006675456047058105, 0.006823935985565186, 0.007171072006225586, 0.007318528175354004, 0.0070225920677185055, 0.007068672180175781, 0.006965248107910156, 0.0065781760215759275, 0.006842368125915528, 0.006665215969085693, 0.006746240139007568, 0.006851583957672119, 0.006799424171447754, 0.007321599960327148, 0.007099520206451416, 0.007085055828094483, 0.007314432144165039, 0.007008255958557129, 0.006797311782836914, 0.006979584217071533, 0.006328288078308105, 0.006815743923187256, 0.008029184341430663, 0.0083056640625, 0.006755328178405762, 0.0069632000923156735, 0.006532095909118653, 0.006589344024658203, 0.006590464115142822, 0.0067051520347595215, 0.006560768127441406, 0.006612991809844971, 0.006717440128326416, 0.0066447358131408694, 0.007602047920227051, 0.006627327919006347, 0.006559743881225586, 0.006516736030578613, 0.0066007041931152345, 0.006511616230010986, 0.0066447358131408694, 0.006523903846740723, 0.006968448162078858, 0.00657919979095459, 0.006656864166259766, 0.006567967891693115, 0.006593599796295166, 0.006803423881530762, 0.006598559856414795, 0.007037951946258545, 0.006662176132202148, 0.006619103908538818, 0.006606847763061524, 0.006661119937896728, 0.00657097578048706, 0.006526976108551025, 0.006520832061767578, 0.006721536159515381, 0.0065382399559021, 0.006543360233306885, 0.006700032234191895, 0.006551680088043213, 0.0066202239990234375, 0.006549503803253174, 0.00658022403717041 ], "count": 71, "total": 0.48417801713943487, "mean": 0.0068194086921047154, "p50": 0.006700032234191895, "p90": 0.0072202239036560055, "p95": 0.007361536026000977, "p99": 0.008112128257751464, "stdev": 0.0003463743110467471, "stdev_": 5.079242595443323 }, "throughput": { "unit": "tokens/s", "value": 146.6402799934497 }, "energy": null, "efficiency": null } } }