{ "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": "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": {}, "hub_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, "latency": true, "memory": 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.2.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.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": { "prefill": { "memory": { "unit": "MB", "max_ram": 1026.342912, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 67, "total": 0.48886739063262963, "mean": 0.007296528218397455, "stdev": 0.0002886304389012156, "p50": 0.007264832019805908, "p90": 0.007523878479003906, "p95": 0.00798928952217102, "p99": 0.008360465087890626, "values": [ 0.008297023773193359, 0.007992159843444825, 0.007982592105865478, 0.008082207679748534, 0.008483615875244141, 0.0075337281227111814, 0.007380383968353272, 0.007108960151672363, 0.007083199977874756, 0.007264832019805908, 0.007281439781188965, 0.007308063983917236, 0.007217567920684814, 0.006970367908477783, 0.006999551773071289, 0.0070769600868225094, 0.007305247783660889, 0.007055039882659912, 0.007250751972198486, 0.007257887840270996, 0.007248799800872802, 0.007076384067535401, 0.007309120178222656, 0.007254848003387451, 0.007249887943267822, 0.007269248008728028, 0.0074702401161193845, 0.007517312049865723, 0.00733955192565918, 0.007285727977752686, 0.007225183963775634, 0.007586688041687012, 0.007214047908782959, 0.007336959838867187, 0.007309408187866211, 0.007197663784027099, 0.007414624214172363, 0.007356800079345703, 0.007299871921539307, 0.007312992095947266, 0.007314591884613037, 0.007305920124053955, 0.007273727893829345, 0.0072854399681091305, 0.007336991786956787, 0.007284416198730469, 0.007245567798614502, 0.007257760047912598, 0.00725161600112915, 0.0070442562103271485, 0.0070265278816223145, 0.0070348801612854, 0.007050303936004638, 0.007029600143432617, 0.007054975986480713, 0.007280128002166748, 0.007290175914764404, 0.007261055946350098, 0.007265600204467773, 0.00705456018447876, 0.007031392097473144, 0.007017663955688477, 0.007032735824584961, 0.006979199886322021, 0.007020959854125977, 0.007212736129760742, 0.007417664051055908 ] }, "throughput": { "unit": "tokens/s", "value": 274.10296241398794 }, "energy": { "unit": "kWh", "cpu": 8.752435031864379e-08, "ram": 4.7847957700831926e-08, "gpu": 1.633783986764697e-07, "total": 2.9875070669594537e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6694544.833447063 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1026.342912, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 67, "total": 0.5204896636009215, "mean": 0.0077685024418048, "stdev": 0.0002539984767737048, "p50": 0.007756383895874024, "p90": 0.007897094440460205, "p95": 0.008392870330810546, "p99": 0.008629808979034424, "values": [ 0.008422335624694825, 0.008550080299377441, 0.008400223731994628, 0.008375712394714355, 0.008784576416015625, 0.007818751811981202, 0.007617695808410645, 0.007494976043701172, 0.007594143867492676, 0.007747935771942139, 0.007771967887878418, 0.00782857608795166, 0.007717855930328369, 0.007390272140502929, 0.007484672069549561, 0.0075491838455200196, 0.007784768104553223, 0.0077305278778076175, 0.0077562880516052245, 0.007782400131225586, 0.0077389440536499024, 0.00770585584640503, 0.0077473921775817875, 0.007711328029632568, 0.00786566400527954, 0.007728960037231445, 0.00801478385925293, 0.007827072143554688, 0.007849631786346435, 0.0077974720001220705, 0.007757343769073486, 0.007888671875, 0.007728799819946289, 0.0077729601860046385, 0.007820672035217285, 0.007528223991394043, 0.007906079769134522, 0.007837344169616699, 0.007852255821228027, 0.007793375968933106, 0.0077976641654968265, 0.00784988784790039, 0.007719583988189697, 0.007855199813842773, 0.007776800155639648, 0.0077636480331420895, 0.007741024017333984, 0.007754720211029052, 0.007771615982055664, 0.007489696025848389, 0.007570303916931152, 0.007489920139312744, 0.007527200222015381, 0.007480991840362549, 0.007756383895874024, 0.007755008220672608, 0.007760543823242188, 0.007796927928924561, 0.007815711975097657, 0.007459551811218262, 0.007431392192840576, 0.0074785280227661136, 0.0074760961532592774, 0.007583615779876709, 0.007470911979675293, 0.007749855995178223, 0.007891104221343995 ] }, "throughput": { "unit": "tokens/s", "value": 128.72493862120447 }, "energy": { "unit": "kWh", "cpu": 8.522127447544856e-08, "ram": 4.660506665030587e-08, "gpu": 1.6129577410614095e-07, "total": 2.9312211523189556e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3411547.4337679273 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 66, "total": 0.994613245010376, "mean": 0.015069897651672364, "stdev": 0.0005065962304315204, "p50": 0.015051264286041258, "p90": 0.01543987226486206, "p95": 0.016200703382492066, "p99": 0.016871116352081293, "values": [ 0.01658367919921875, 0.016433151245117187, 0.01646080017089844, 0.01740492820739746, 0.015457280158996582, 0.015038463592529297, 0.014625791549682618, 0.014676992416381835, 0.015046655654907226, 0.015078399658203125, 0.015180800437927246, 0.014950400352478027, 0.014414848327636719, 0.014503935813903808, 0.014642175674438476, 0.015097855567932129, 0.014834688186645508, 0.015023103713989258, 0.015067135810852051, 0.015021056175231933, 0.014815232276916505, 0.01508351993560791, 0.01499238395690918, 0.015128576278686523, 0.015040512084960938, 0.015461376190185547, 0.01542246437072754, 0.015136799812316894, 0.015187935829162598, 0.015015935897827149, 0.015503359794616698, 0.014977024078369141, 0.015128576278686523, 0.015149056434631348, 0.014780415534973144, 0.015323136329650879, 0.015195136070251464, 0.015220735549926758, 0.015133695602416992, 0.015136768341064453, 0.015180800437927246, 0.015025152206420898, 0.015171584129333495, 0.015153152465820312, 0.01508351993560791, 0.01499238395690918, 0.015053824424743652, 0.015048704147338866, 0.01457254409790039, 0.014629887580871583, 0.01454694366455078, 0.014606335639953612, 0.014535679817199706, 0.014825471878051758, 0.015054847717285156, 0.015054847717285156, 0.015101951599121094, 0.015114239692687988, 0.014556159973144531, 0.014491647720336913, 0.014516223907470703, 0.014537728309631348, 0.014574591636657714, 0.014532608032226562, 0.014972928047180176, 0.01530470371246338 ] }, "throughput": { "unit": "tokens/s", "value": 66.35745133206171 }, "energy": null, "efficiency": null } } }