{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+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.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.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.41.0", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1071.202304, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.0096 }, "latency": { "unit": "s", "count": 56, "total": 0.4999054737091064, "mean": 0.008926883459091187, "stdev": 0.0007924538083135457, "p50": 0.008888624191284179, "p90": 0.009317503929138184, "p95": 0.009462840080261232, "p99": 0.012533235311508182, "values": [ 0.01304975986480713, 0.012110624313354492, 0.009236512184143066, 0.008963295936584473, 0.008859840393066407, 0.008945952415466309, 0.009031295776367188, 0.008908448219299316, 0.008991456031799317, 0.008939680099487304, 0.008968992233276367, 0.00888582420349121, 0.00887286376953125, 0.009090335845947265, 0.009126272201538086, 0.008990655899047852, 0.008956992149353027, 0.008891263961791991, 0.009012672424316406, 0.008885984420776366, 0.00899888038635254, 0.009110752105712891, 0.009026944160461426, 0.008855711936950684, 0.009279808044433594, 0.009443712234497071, 0.008938559532165527, 0.009172287940979004, 0.009355199813842774, 0.009391807556152343, 0.008998271942138671, 0.00952022361755371, 0.008881728172302246, 0.0091693115234375, 0.00874345588684082, 0.008353664398193359, 0.00836083221435547, 0.008356927871704101, 0.008336799621582031, 0.008318880081176757, 0.008246015548706055, 0.00825926399230957, 0.008263232231140137, 0.008245183944702148, 0.008355199813842773, 0.008321760177612304, 0.008326080322265625, 0.008366304397583008, 0.008334912300109864, 0.00833516788482666, 0.008315199851989747, 0.008789600372314453, 0.008658432006835937, 0.008738847732543945, 0.008658720016479491, 0.008359071731567382 ] }, "throughput": { "unit": "tokens/s", "value": 224.04235578579096 }, "energy": { "unit": "kWh", "cpu": 1.0469470311094213e-07, "ram": 5.7240998926557174e-08, "gpu": 1.7768289068421155e-07, "total": 3.396185927217108e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5888959.093705549 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1071.202304, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.46016 }, "latency": { "unit": "s", "count": 56, "total": 0.5065751008987428, "mean": 0.009045983944620405, "stdev": 0.0006213229455870124, "p50": 0.009114959716796874, "p90": 0.009428336143493652, "p95": 0.009661191940307616, "p99": 0.01117807970046998, "values": [ 0.0127391996383667, 0.009900799751281738, 0.0091876802444458, 0.00922105598449707, 0.00909347152709961, 0.009259552001953124, 0.00915875244140625, 0.009264320373535155, 0.009182368278503418, 0.009191231727600098, 0.009038463592529297, 0.009185983657836913, 0.009145343780517578, 0.009243712425231934, 0.009137311935424804, 0.009154272079467774, 0.00917807960510254, 0.00917846393585205, 0.00913644790649414, 0.009049311637878418, 0.009216863632202149, 0.009228351593017579, 0.009169568061828613, 0.009727264404296875, 0.009595199584960938, 0.00936774444580078, 0.00917807960510254, 0.009488927841186523, 0.009639167785644531, 0.009261792182922363, 0.009200511932373047, 0.009060352325439454, 0.008935040473937988, 0.008921759605407715, 0.00887993621826172, 0.008517056465148927, 0.008500127792358399, 0.008613663673400879, 0.008485088348388672, 0.00842307186126709, 0.008427136421203614, 0.00841487979888916, 0.008401535987854003, 0.008501055717468262, 0.008468735694885253, 0.008473343849182129, 0.008485312461853028, 0.008486623764038087, 0.008475935935974122, 0.008465215682983399, 0.008598655700683593, 0.008891743659973144, 0.008838432312011719, 0.008857343673706055, 0.00884931182861328, 0.008884448051452637 ] }, "throughput": { "unit": "tokens/s", "value": 110.54629392689718 }, "energy": { "unit": "kWh", "cpu": 9.87771507972303e-08, "ram": 5.400689968724895e-08, "gpu": 2.0597560833273455e-07, "total": 3.5875965881721373e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2787381.3998398716 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.9827389450073242, "mean": 0.017867980818314984, "stdev": 0.000912543132458317, "p50": 0.01810534477233887, "p90": 0.01866547203063965, "p95": 0.018913037109375, "p99": 0.02048108539581299, "values": [ 0.02220134353637695, 0.018509824752807616, 0.018189311981201172, 0.01802342414855957, 0.018192384719848635, 0.018272256851196288, 0.018198528289794923, 0.01820262336730957, 0.01817190361022949, 0.018053119659423827, 0.018110464096069336, 0.018018304824829103, 0.01836851119995117, 0.018290687561035156, 0.01820057678222656, 0.018150400161743165, 0.01810534477233887, 0.018189311981201172, 0.01798963165283203, 0.018240543365478517, 0.018371551513671876, 0.018239519119262696, 0.018565088272094726, 0.018938976287841795, 0.018901920318603514, 0.018128896713256838, 0.018679807662963867, 0.01901568031311035, 0.018775039672851563, 0.01821900749206543, 0.01864396858215332, 0.017875999450683595, 0.01811248016357422, 0.01765068817138672, 0.016922624588012695, 0.016887807846069337, 0.01699737548828125, 0.016845823287963867, 0.016772096633911132, 0.016672767639160157, 0.016723968505859374, 0.016690176010131837, 0.016767999649047852, 0.01684377670288086, 0.01682022476196289, 0.0168724479675293, 0.016870399475097657, 0.01683967971801758, 0.016829439163208008, 0.016904191970825197, 0.017727487564086913, 0.01752889633178711, 0.017620960235595704, 0.017540063858032227, 0.01726361656188965 ] }, "throughput": { "unit": "tokens/s", "value": 55.96603276935372 }, "energy": null, "efficiency": null } } }