{ "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": "warn", "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.34.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.38816, "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.4330224609375, "mean": 7.4330224609375, "stdev": 0.0, "p50": 7.4330224609375, "p90": 7.4330224609375, "p95": 7.4330224609375, "p99": 7.4330224609375, "values": [ 7.4330224609375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.780058562503612e-07, "ram": 5.200251957339598e-07, "gpu": 0.0, "total": 1.4980310519843209e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1194.139648, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 69, "total": 0.48568886613845835, "mean": 0.00703896907447041, "stdev": 0.0004956480279149278, "p50": 0.007193376064300537, "p90": 0.007490732955932618, "p95": 0.0075848320960998535, "p99": 0.008200293350219719, "values": [ 0.007853792190551758, 0.007524703979492188, 0.007634431838989258, 0.007545536041259766, 0.00738809585571289, 0.007368832111358642, 0.0074700798988342285, 0.00759987211227417, 0.007353663921356201, 0.007426784038543701, 0.007413599967956543, 0.0073937602043151855, 0.007266816139221192, 0.0073149437904357914, 0.007193376064300537, 0.0071682558059692385, 0.007369408130645752, 0.007023903846740722, 0.007412992000579834, 0.007373472213745117, 0.0074189119338989255, 0.00703007984161377, 0.0073528318405151364, 0.007369855880737305, 0.007211103916168213, 0.0073705601692199705, 0.007389952182769775, 0.007370304107666015, 0.007196896076202393, 0.007252863883972168, 0.007562272071838379, 0.0074150080680847165, 0.007387616157531738, 0.007482240200042725, 0.007249407768249512, 0.00722163200378418, 0.006965472221374512, 0.007250688076019287, 0.0068672637939453125, 0.00893660831451416, 0.007057504177093506, 0.007164095878601074, 0.006913280010223389, 0.006929344177246094, 0.006883296012878418, 0.006801152229309082, 0.006685279846191407, 0.00671011209487915, 0.006678592205047607, 0.006649983882904053, 0.006633279800415039, 0.0065981121063232425, 0.00660643196105957, 0.006384928226470948, 0.006311103820800781, 0.006312640190124512, 0.006387904167175293, 0.006349535942077636, 0.006321343898773193, 0.006329728126525879, 0.006337728023529053, 0.006385824203491211, 0.006421440124511719, 0.006339072227478027, 0.006328896045684814, 0.006318880081176758, 0.006299392223358154, 0.006557119846343994, 0.00659497594833374 ] }, "throughput": { "unit": "tokens/s", "value": 284.1325169695356 }, "energy": { "unit": "kWh", "cpu": 7.921268590740791e-08, "ram": 4.33099133166236e-08, "gpu": 1.493853046933332e-07, "total": 2.719079039173647e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7355431.641324476 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1212.547072, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 69, "total": 0.5151950407028197, "mean": 0.007466594792794491, "stdev": 0.0005597567402460155, "p50": 0.007614880084991455, "p90": 0.007960204696655274, "p95": 0.008089932441711425, "p99": 0.008977202110290522, "values": [ 0.008000576019287109, 0.007906464099884034, 0.008070079803466797, 0.00787337589263916, 0.007786208152770996, 0.007785696029663086, 0.008063872337341309, 0.007763775825500488, 0.00838377571105957, 0.007950111865997315, 0.007794688224792481, 0.007697440147399902, 0.007723775863647461, 0.007844511985778808, 0.007667935848236084, 0.007823808193206787, 0.007723616123199463, 0.007722208023071289, 0.007887392044067383, 0.007787487983703613, 0.0075807681083679196, 0.007855135917663575, 0.007674464225769043, 0.007761663913726806, 0.007664224147796631, 0.007801055908203125, 0.007614880084991455, 0.007753312110900879, 0.007599743843078613, 0.007798240184783935, 0.00779801607131958, 0.00787667179107666, 0.007666687965393066, 0.0075784001350402835, 0.007804063796997071, 0.007586400032043457, 0.007430528163909912, 0.008103167533874512, 0.009604607582092285, 0.008681952476501465, 0.007375264167785644, 0.007607135772705078, 0.0071485438346862796, 0.007151999950408936, 0.007217504024505615, 0.0070804481506347655, 0.007055168151855469, 0.007244927883148193, 0.007032447814941406, 0.007035744190216064, 0.006969024181365966, 0.006998879909515381, 0.006929696083068848, 0.006699615955352783, 0.006696415901184082, 0.006699840068817139, 0.006685472011566162, 0.0066971201896667484, 0.006702527999877929, 0.006674655914306641, 0.006805471897125244, 0.006777120113372803, 0.006718656063079834, 0.006729631900787353, 0.006676224231719971, 0.00668726396560669, 0.006671232223510742, 0.006940351963043213, 0.006995872020721435 ] }, "throughput": { "unit": "tokens/s", "value": 133.92986063272548 }, "energy": { "unit": "kWh", "cpu": 7.329620767343176e-08, "ram": 4.0074616977255624e-08, "gpu": 1.3540837043487183e-07, "total": 2.487791950855594e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4019628.730031396 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 69, "total": 0.4818916759490966, "mean": 0.006983937332595604, "stdev": 0.0005014504858237033, "p50": 0.007112703800201416, "p90": 0.00741519365310669, "p95": 0.007604889488220214, "p99": 0.008423874092102046, "values": [ 0.007453695774078369, 0.007352352142333984, 0.007530528068542481, 0.007270400047302246, 0.00724889612197876, 0.007256127834320068, 0.007504896163940429, 0.00724070405960083, 0.00785920000076294, 0.00740556812286377, 0.007235583782196045, 0.0071485438346862796, 0.007202816009521484, 0.007293951988220215, 0.007156735897064209, 0.007271423816680909, 0.007204864025115967, 0.0071905279159545895, 0.007358463764190673, 0.007238656044006348, 0.007047167778015137, 0.007324672222137451, 0.007143487930297851, 0.007234560012817383, 0.007132192134857177, 0.007256063938140869, 0.007108607769012451, 0.007233535766601563, 0.007085055828094483, 0.007264256000518799, 0.00727347183227539, 0.0073431038856506346, 0.007112703800201416, 0.007076863765716553, 0.007296000003814697, 0.00709119987487793, 0.006913023948669434, 0.007654463768005371, 0.008957951545715333, 0.0081725435256958, 0.006874112129211426, 0.007122943878173828, 0.006716415882110595, 0.006722559928894043, 0.0067686400413513184, 0.00667955207824707, 0.0066447358131408694, 0.006822912216186523, 0.006614016056060791, 0.00662937593460083, 0.006545407772064209, 0.006582272052764892, 0.00653107213973999, 0.006284287929534912, 0.006299647808074951, 0.006313024044036865, 0.006294528007507324, 0.006288383960723877, 0.006312960147857666, 0.00628326416015625, 0.006401023864746094, 0.006391808032989502, 0.006325247764587402, 0.006345727920532227, 0.006270976066589356, 0.006292479991912842, 0.0062863359451293946, 0.006515711784362793, 0.00658739185333252 ] }, "throughput": { "unit": "tokens/s", "value": 143.18570633971405 }, "energy": null, "efficiency": null } } }