{ "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", "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.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "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.968256, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 53, "total": 0.4975511684417724, "mean": 0.009387757895127783, "stdev": 0.0006020184227913817, "p50": 0.009430591583251952, "p90": 0.009652909088134766, "p95": 0.009723878479003906, "p99": 0.011514581756591787, "values": [ 0.013180095672607422, 0.009977184295654296, 0.009747936248779296, 0.00957590389251709, 0.009548095703125, 0.009347071647644043, 0.009619711875915527, 0.009613792419433593, 0.009463040351867676, 0.009624928474426269, 0.009549247741699218, 0.00953990364074707, 0.009430591583251952, 0.009438048362731934, 0.009283519744873047, 0.009539039611816406, 0.009648480415344239, 0.00947545623779297, 0.009564288139343262, 0.009498527526855469, 0.009652992248535157, 0.009678208351135253, 0.009255200386047364, 0.009465824127197266, 0.009446463584899902, 0.009707839965820312, 0.009652576446533202, 0.009516736030578614, 0.009367775917053223, 0.008967424392700195, 0.00917193603515625, 0.009111968040466309, 0.00944431972503662, 0.009586624145507813, 0.00931708812713623, 0.009235808372497559, 0.009139360427856446, 0.009027968406677246, 0.008968671798706055, 0.008959296226501465, 0.008955264091491699, 0.008965888023376466, 0.00899561595916748, 0.008941216468811035, 0.008935104370117188, 0.008944959640502929, 0.008957599639892578, 0.008932607650756836, 0.008946175575256348, 0.008906815528869629, 0.008911295890808106, 0.008918527603149415, 0.008901151657104492 ] }, "throughput": { "unit": "tokens/s", "value": 213.04341487523808 }, "energy": { "unit": "kWh", "cpu": 1.0597573534127266e-07, "ram": 5.7850877078635684e-08, "gpu": 1.9042673964286528e-07, "total": 3.5425335206277363e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5645676.994597924 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1071.968256, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 53, "total": 0.5141057271957398, "mean": 0.009700108060296976, "stdev": 0.00040804852272904694, "p50": 0.009802911758422852, "p90": 0.009987615966796875, "p95": 0.010182925033569335, "p99": 0.010868232650756832, "values": [ 0.011540255546569823, 0.01024790382385254, 0.01015500831604004, 0.00984115219116211, 0.009856096267700195, 0.009768320083618163, 0.009945343971252442, 0.00988361644744873, 0.00990998363494873, 0.009945311546325684, 0.009844127655029298, 0.009941408157348633, 0.009850079536437989, 0.009849599838256836, 0.009893055915832519, 0.009988927841186523, 0.00993443202972412, 0.009872703552246094, 0.009864064216613769, 0.009789600372314453, 0.01022480010986328, 0.009972160339355468, 0.00978054428100586, 0.009802911758422852, 0.00986303997039795, 0.009982368469238282, 0.010021599769592285, 0.009882047653198242, 0.009788543701171874, 0.009701055526733398, 0.009558527946472169, 0.009746848106384277, 0.009829695701599122, 0.00987276840209961, 0.00951033592224121, 0.009495967864990235, 0.009274911880493165, 0.009233471870422363, 0.009244928359985352, 0.009216416358947753, 0.009371935844421387, 0.00926863956451416, 0.00921827220916748, 0.009229280471801759, 0.009239935874938964, 0.009233504295349122, 0.009199775695800782, 0.009241375923156738, 0.00923408031463623, 0.009244256019592285, 0.009213120460510253, 0.009220831871032715, 0.009266783714294433 ] }, "throughput": { "unit": "tokens/s", "value": 103.09163503992802 }, "energy": { "unit": "kWh", "cpu": 1.0037886480416965e-07, "ram": 5.497545868961579e-08, "gpu": 1.7852470494333316e-07, "total": 3.338790284371186e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2995096.7710699923 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 52, "total": 0.9887528896331788, "mean": 0.0190144786467919, "stdev": 0.0006100824721794526, "p50": 0.019251679420471193, "p90": 0.019709336853027344, "p95": 0.019793562030792237, "p99": 0.020113428344726562, "values": [ 0.02026905632019043, 0.019963903427124022, 0.01944780731201172, 0.01942835235595703, 0.019167232513427734, 0.019534847259521485, 0.01959219169616699, 0.019398656845092774, 0.01960038375854492, 0.01943654441833496, 0.01948467254638672, 0.019358783721923827, 0.019286975860595704, 0.01922867202758789, 0.019553279876708983, 0.01963929557800293, 0.019367935180664063, 0.019471359252929688, 0.019326976776123047, 0.01988198471069336, 0.019717119216918946, 0.01906483268737793, 0.019305471420288087, 0.019320831298828126, 0.019721216201782226, 0.019720191955566405, 0.019372032165527343, 0.01925836753845215, 0.018727935791015626, 0.01883340835571289, 0.018835519790649412, 0.019244991302490234, 0.019555328369140625, 0.018893823623657227, 0.018760704040527345, 0.018510847091674804, 0.018287616729736327, 0.01821900749206543, 0.018225151062011717, 0.018348031997680665, 0.018264064788818358, 0.018234367370605468, 0.01820364761352539, 0.01820057678222656, 0.01820572853088379, 0.018174943923950197, 0.01818828773498535, 0.018233343124389647, 0.01816985511779785, 0.018151424407958985, 0.01816985511779785, 0.01819545555114746 ] }, "throughput": { "unit": "tokens/s", "value": 52.59150243221204 }, "energy": null, "efficiency": null } } }