{ "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.179264, "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.439029296875, "mean": 7.439029296875, "stdev": 0.0, "p50": 7.439029296875, "p90": 7.439029296875, "p95": 7.439029296875, "p99": 7.439029296875, "values": [ 7.439029296875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0225656187504879e-06, "ram": 5.227145173285947e-07, "gpu": 1.7988903280002477e-06, "total": 3.3441704640793303e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1229.725696, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.49019532918930064, "mean": 0.006904159566046487, "stdev": 0.00039791946860698324, "p50": 0.007026656150817871, "p90": 0.007339935779571533, "p95": 0.007403552055358887, "p99": 0.007601647901535034, "values": [ 0.0077480320930480955, 0.0075062718391418455, 0.007538911819458008, 0.007218592166900635, 0.006989888191223145, 0.006884448051452637, 0.007163424015045166, 0.0073348798751831056, 0.00727126407623291, 0.007207776069641113, 0.007083615779876709, 0.007084735870361328, 0.006987391948699951, 0.007071199893951416, 0.007300064086914062, 0.007165599822998047, 0.007257823944091797, 0.006958176136016845, 0.007037568092346192, 0.007097663879394531, 0.007313344001770019, 0.00710700798034668, 0.007367167949676514, 0.007026656150817871, 0.0073227200508117676, 0.007158976078033447, 0.0071991682052612305, 0.007137311935424805, 0.007198080062866211, 0.0071991682052612305, 0.007227712154388428, 0.0073623361587524415, 0.007411871910095215, 0.007191679954528809, 0.007307807922363282, 0.007339935779571533, 0.0072828478813171385, 0.007009600162506104, 0.006906112194061279, 0.00667193603515625, 0.007071584224700928, 0.007174496173858643, 0.007395232200622558, 0.006928415775299073, 0.006680607795715332, 0.00664134407043457, 0.006714591979980469, 0.006649631977081299, 0.006535711765289306, 0.006415584087371826, 0.006359456062316894, 0.006398240089416504, 0.006388480186462402, 0.006388576030731201, 0.006371039867401123, 0.006368319988250732, 0.006356160163879395, 0.006361728191375733, 0.006352992057800293, 0.00636518383026123, 0.00637500810623169, 0.006344927787780762, 0.006379199981689453, 0.006367616176605225, 0.006394207954406738, 0.006381855964660644, 0.006390431880950928, 0.006398943901062012, 0.006339968204498291, 0.00660694408416748, 0.0066500802040100095 ] }, "throughput": { "unit": "tokens/s", "value": 289.6804427631813 }, "energy": { "unit": "kWh", "cpu": 8.000337895227635e-08, "ram": 4.3608787583427683e-08, "gpu": 1.663759720268441e-07, "total": 2.8998813856254813e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6896833.815044528 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1248.673792, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.5166842236518859, "mean": 0.0072772425866462825, "stdev": 0.0004354526584928609, "p50": 0.007469759941101074, "p90": 0.007746592044830323, "p95": 0.007786688089370728, "p99": 0.00793777289390564, "values": [ 0.007902944087982177, 0.008019040107727051, 0.007724768161773682, 0.007712224006652832, 0.0072336320877075195, 0.007522655963897705, 0.00775107192993164, 0.0077420158386230465, 0.007732800006866455, 0.00783686399459839, 0.007482912063598633, 0.007469759941101074, 0.007358816146850586, 0.007745823860168457, 0.0074966721534729, 0.0076112642288208, 0.00759827184677124, 0.00737334394454956, 0.007522463798522949, 0.007397535800933838, 0.007706624031066894, 0.007775008201599121, 0.0076685757637023925, 0.007594240188598633, 0.007579328060150147, 0.007548160076141357, 0.007682591915130615, 0.0075914239883422855, 0.007580671787261963, 0.0075541439056396485, 0.0077482562065124515, 0.007683104038238526, 0.007687903881072998, 0.007746592044830323, 0.007685088157653809, 0.007523871898651123, 0.007334432125091553, 0.007616000175476074, 0.007026303768157959, 0.007206048011779785, 0.007596799850463867, 0.007598720073699951, 0.007798367977142334, 0.006962687969207764, 0.0070392642021179196, 0.007085792064666748, 0.007034207820892334, 0.007220895767211914, 0.006700767993927002, 0.006692639827728272, 0.006713920116424561, 0.006671487808227539, 0.0066960639953613284, 0.006778207778930664, 0.0066984639167785645, 0.006674272060394287, 0.006717631816864014, 0.006752992153167724, 0.006661312103271484, 0.006663839817047119, 0.006775904178619385, 0.006695551872253418, 0.006681727886199951, 0.006681536197662354, 0.00669974422454834, 0.006731488227844238, 0.00665561580657959, 0.006669888019561768, 0.006688447952270507, 0.006909791946411133, 0.006962944030761719 ] }, "throughput": { "unit": "tokens/s", "value": 137.41468531432454 }, "energy": { "unit": "kWh", "cpu": 7.526228362889373e-08, "ram": 4.128214325277003e-08, "gpu": 1.5083928896017056e-07, "total": 2.673837158418342e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3739943.5371431937 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.48300863933563254, "mean": 0.006802938582192005, "stdev": 0.00037025534286470917, "p50": 0.006947840213775635, "p90": 0.007193600177764893, "p95": 0.007257071971893311, "p99": 0.00739420142173767, "values": [ 0.007362559795379638, 0.007468031883239746, 0.007189504146575928, 0.007180287837982178, 0.0067573761940002445, 0.006985727787017822, 0.007193600177764893, 0.00718236780166626, 0.007209983825683594, 0.007275519847869873, 0.006947840213775635, 0.00695091199874878, 0.006852608203887939, 0.007138304233551026, 0.007002111911773682, 0.007053311824798584, 0.007063551902770996, 0.006874112129211426, 0.006982656002044678, 0.00687718391418457, 0.007188543796539306, 0.007238624095916748, 0.007147520065307617, 0.007030784130096435, 0.007069695949554444, 0.007024640083312988, 0.007151648044586182, 0.00707583999633789, 0.007060480117797851, 0.007047167778015137, 0.007166975975036621, 0.007153664112091064, 0.007166975975036621, 0.007214079856872559, 0.007095295906066895, 0.007024640083312988, 0.006879231929779053, 0.007102464199066162, 0.006619135856628418, 0.006756351947784424, 0.007081984043121338, 0.007076863765716553, 0.007290880203247071, 0.006553567886352539, 0.0066304001808166506, 0.006672383785247803, 0.00662937593460083, 0.006750207901000976, 0.006312960147857666, 0.006296639919281006, 0.006308864116668702, 0.00628326416015625, 0.006285312175750732, 0.006393856048583985, 0.006305791854858398, 0.00628223991394043, 0.006325247764587402, 0.006364160060882569, 0.0062791681289672855, 0.006278143882751465, 0.006388735771179199, 0.006302720069885254, 0.006288383960723877, 0.006277120113372803, 0.006315008163452148, 0.006347775936126709, 0.0062740478515625, 0.0062863359451293946, 0.006305791854858398, 0.006511616230010986, 0.0065484800338745115 ] }, "throughput": { "unit": "tokens/s", "value": 146.99530032766893 }, "energy": null, "efficiency": null } } }