{ "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_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": {}, "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.3.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "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": 1057.11616, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 72, "total": 0.4874774403572084, "mean": 0.006770520004961225, "stdev": 0.0004700835552506294, "p50": 0.006802896022796631, "p90": 0.007171334266662598, "p95": 0.0074319471836090095, "p99": 0.008267257890701298, "values": [ 0.008566911697387696, 0.007448192119598389, 0.007418655872344971, 0.0071732158660888674, 0.007131872177124024, 0.007059743881225586, 0.007231967926025391, 0.0068624958992004395, 0.007089759826660156, 0.0070430078506469726, 0.006945919990539551, 0.006793727874755859, 0.007006432056427002, 0.007150623798370361, 0.007186207771301269, 0.0068635520935058595, 0.006932608127593994, 0.00679804801940918, 0.006756447792053223, 0.006771168231964111, 0.006823935985565186, 0.007076576232910157, 0.006964672088623047, 0.006886208057403564, 0.006866367816925048, 0.006981728076934815, 0.006827104091644287, 0.006733856201171875, 0.00683523178100586, 0.007001440048217774, 0.007116511821746826, 0.007044767856597901, 0.006807744026184082, 0.006837376117706299, 0.007068511962890625, 0.006947328090667724, 0.007154399871826172, 0.006924032211303711, 0.006993184089660645, 0.006732192039489746, 0.00654307222366333, 0.0067164478302001954, 0.006339360237121582, 0.006378143787384033, 0.008144864082336426, 0.008090368270874023, 0.0067149438858032226, 0.006501215934753418, 0.006488128185272217, 0.006488383769989014, 0.006418528079986573, 0.006507584095001221, 0.006646527767181397, 0.006417791843414306, 0.006240640163421631, 0.006234208106994629, 0.006208640098571777, 0.006207968235015869, 0.006205855846405029, 0.006205376148223877, 0.00621449613571167, 0.006241504192352295, 0.006229663848876953, 0.006233407974243164, 0.006259039878845215, 0.006239264011383056, 0.006207104206085205, 0.006233856201171875, 0.006244383811950684, 0.006379936218261719, 0.006233952045440674, 0.006209055900573731 ] }, "throughput": { "unit": "tokens/s", "value": 295.3982852918923 }, "energy": { "unit": "kWh", "cpu": 7.803403494650858e-08, "ram": 4.2660289551615724e-08, "gpu": 1.48907282868421e-07, "total": 2.696016073665453e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7418353.397577625 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1057.11616, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 72, "total": 0.5118387818336485, "mean": 0.007108871969911786, "stdev": 0.0004284149101344724, "p50": 0.007213855981826782, "p90": 0.007515443277359009, "p95": 0.007762775778770446, "p99": 0.008216495237350468, "values": [ 0.007767615795135498, 0.00779318380355835, 0.007758815765380859, 0.007460447788238525, 0.00737827205657959, 0.007487904071807861, 0.00730511999130249, 0.007351391792297364, 0.00746127986907959, 0.007346144199371338, 0.0073322877883911135, 0.00737391996383667, 0.007581535816192627, 0.007569983959197998, 0.00739024019241333, 0.00727020788192749, 0.007351647853851318, 0.007253119945526123, 0.007229472160339355, 0.007173535823822022, 0.00724729585647583, 0.007402527809143067, 0.007336671829223633, 0.0071877760887146, 0.007430624008178711, 0.007245151996612549, 0.007264575958251953, 0.007150976181030273, 0.007212639808654785, 0.007237792015075684, 0.0074273920059204105, 0.00727888011932373, 0.007182911872863769, 0.007339392185211182, 0.007324831962585449, 0.0074419198036193845, 0.0074934401512145995, 0.007215072154998779, 0.007122528076171875, 0.006887616157531739, 0.007173567771911621, 0.006622432231903076, 0.006668928146362304, 0.008044416427612305, 0.008637791633605956, 0.007517888069152832, 0.006940095901489258, 0.006760735988616943, 0.006952256202697754, 0.006816224098205566, 0.006910975933074951, 0.0067831997871398925, 0.006791039943695069, 0.006631775856018067, 0.0065335679054260255, 0.0065487041473388675, 0.006576000213623047, 0.0065821118354797365, 0.006569215774536133, 0.006542431831359863, 0.006533792018890381, 0.006559775829315185, 0.006575647830963135, 0.0066343040466308595, 0.0068995518684387205, 0.006540319919586182, 0.006548863887786865, 0.006555232048034668, 0.006537439823150634, 0.006616064071655273, 0.006543776035308838, 0.006624512195587158 ] }, "throughput": { "unit": "tokens/s", "value": 140.66929383909118 }, "energy": { "unit": "kWh", "cpu": 7.173429521029453e-08, "ram": 3.923029935023025e-08, "gpu": 1.3833947470658089e-07, "total": 2.493040692671056e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4011165.974706153 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 72, "total": 0.47741548776626574, "mean": 0.006630770663420359, "stdev": 0.00036284719001156217, "p50": 0.006693376064300537, "p90": 0.007001395130157471, "p95": 0.007170969390869141, "p99": 0.007631995005607608, "values": [ 0.007142399787902832, 0.0072120318412780765, 0.007205887794494629, 0.006924287796020508, 0.006853631973266602, 0.006953983783721924, 0.00679423999786377, 0.00679423999786377, 0.00693555212020874, 0.006774784088134766, 0.006815743923187256, 0.006842368125915528, 0.0070225920677185055, 0.007038976192474365, 0.006881279945373535, 0.00673689603805542, 0.0068249602317810056, 0.006703104019165039, 0.006722559928894043, 0.006651904106140137, 0.006729728221893311, 0.006829055786132812, 0.006818816184997558, 0.006657023906707763, 0.006908927917480469, 0.006732831954956055, 0.0067358717918396, 0.006646783828735352, 0.006689792156219483, 0.006744063854217529, 0.006870016098022461, 0.006770688056945801, 0.006645760059356689, 0.006803455829620361, 0.006801407814025879, 0.006918144226074219, 0.006958079814910889, 0.006696959972381592, 0.006639616012573242, 0.006436863899230957, 0.0066795840263366695, 0.0062156801223754886, 0.006221824169158936, 0.007475200176239013, 0.00801587200164795, 0.007006207942962647, 0.006518784046173095, 0.006359039783477783, 0.006554624080657959, 0.006418432235717773, 0.0065136637687683106, 0.006386688232421875, 0.006395904064178467, 0.006248447895050049, 0.006137856006622314, 0.006159359931945801, 0.006194176197052002, 0.00619212818145752, 0.006178815841674804, 0.006144000053405762, 0.006149119853973388, 0.006176767826080322, 0.006194176197052002, 0.006253568172454834, 0.006518784046173095, 0.006135807991027832, 0.00616755199432373, 0.006161439895629883, 0.006145023822784424, 0.00622489595413208, 0.006163424015045166, 0.006243328094482422 ] }, "throughput": { "unit": "tokens/s", "value": 150.81203238058737 }, "energy": null, "efficiency": null } } }