{ "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": 1063.530496, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.0096 }, "latency": { "unit": "s", "count": 57, "total": 0.4963378868103028, "mean": 0.008707682224742153, "stdev": 0.00030838459176701607, "p50": 0.008682623863220214, "p90": 0.008793548393249511, "p95": 0.00919156455993652, "p99": 0.009938982315063476, "values": [ 0.009881535530090331, 0.009778623580932616, 0.010012096405029296, 0.00887833595275879, 0.008679583549499511, 0.0090447998046875, 0.008696831703186036, 0.008661760330200195, 0.008737983703613282, 0.008713376045227051, 0.008754015922546387, 0.008725664138793946, 0.008748191833496094, 0.008622112274169922, 0.008704352378845214, 0.008717920303344727, 0.00872640037536621, 0.008711199760437011, 0.008734720230102539, 0.008746432304382325, 0.008609503746032714, 0.008655712127685547, 0.008564096450805664, 0.008379199981689452, 0.008390015602111816, 0.00841305637359619, 0.008404319763183593, 0.008400447845458984, 0.008545920372009278, 0.008488608360290526, 0.00840294361114502, 0.008373279571533204, 0.00877683162689209, 0.008678688049316406, 0.008741344451904297, 0.008710944175720214, 0.008518176078796387, 0.008714336395263672, 0.008682623863220214, 0.008818623542785644, 0.008730655670166015, 0.00869155216217041, 0.008476287841796874, 0.008627519607543946, 0.008605024337768555, 0.008701375961303711, 0.008685695648193359, 0.008675935745239258, 0.008674176216125488, 0.008611552238464356, 0.008544927597045898, 0.008649312019348144, 0.008679200172424316, 0.008703968048095704, 0.008691519737243652, 0.008498687744140625, 0.00854588794708252 ] }, "throughput": { "unit": "tokens/s", "value": 229.68224475591987 }, "energy": { "unit": "kWh", "cpu": 1.0423951765947175e-07, "ram": 5.699117869689392e-08, "gpu": 1.9010736456140176e-07, "total": 3.513380609177674e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5692523.02120524 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1063.530496, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.46016 }, "latency": { "unit": "s", "count": 57, "total": 0.5045417604446412, "mean": 0.008851609832362124, "stdev": 0.0002450518292649369, "p50": 0.008843999862670898, "p90": 0.008960153770446776, "p95": 0.009126265525817868, "p99": 0.009832230606079101, "values": [ 0.009901760101318359, 0.009777600288391114, 0.009494879722595214, 0.008814496040344238, 0.008928031921386718, 0.008691871643066406, 0.008818367958068847, 0.00880076789855957, 0.008940480232238769, 0.008902815818786622, 0.008907999992370606, 0.008890879631042481, 0.008815872192382812, 0.009034111976623535, 0.008911711692810059, 0.008909855842590332, 0.008884703636169434, 0.008840767860412598, 0.008875231742858886, 0.008853856086730958, 0.008843999862670898, 0.008880512237548828, 0.008593888282775878, 0.008548255920410155, 0.00866857624053955, 0.008536224365234374, 0.00853059196472168, 0.008522144317626953, 0.008604672431945801, 0.008569472312927246, 0.00854911994934082, 0.00887174415588379, 0.008830592155456543, 0.008897695541381836, 0.008912927627563476, 0.008911840438842774, 0.008901439666748046, 0.008989664077758789, 0.008845696449279785, 0.00874067211151123, 0.008586560249328613, 0.008870816230773926, 0.008741567611694336, 0.008713664054870606, 0.008863072395324707, 0.008655263900756835, 0.008820159912109375, 0.00883244800567627, 0.008914015769958495, 0.008867456436157226, 0.008994239807128906, 0.008809184074401856, 0.008821727752685547, 0.008792351722717286, 0.008821248054504394, 0.008840224266052247, 0.008851967811584472 ] }, "throughput": { "unit": "tokens/s", "value": 112.97380012660837 }, "energy": { "unit": "kWh", "cpu": 1.0440187931757925e-07, "ram": 5.6789953041994824e-08, "gpu": 1.9065317396491966e-07, "total": 3.518450063244936e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2842160.559407619 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.982767614364624, "mean": 0.017549421685082573, "stdev": 0.00045539613861407893, "p50": 0.017549311637878418, "p90": 0.017694719314575197, "p95": 0.017755695343017578, "p99": 0.01961497621536255, "values": [ 0.01958502388000488, 0.01965158462524414, 0.017755199432373046, 0.017650623321533204, 0.017757183074951173, 0.017544191360473634, 0.01748684883117676, 0.017693695068359376, 0.01765478324890137, 0.017695743560791014, 0.01764454460144043, 0.0175861759185791, 0.0176363525390625, 0.017691648483276368, 0.017641471862792968, 0.01765273666381836, 0.017582080841064454, 0.017622016906738282, 0.017640447616577147, 0.01746124839782715, 0.01757798385620117, 0.01719398307800293, 0.016954368591308593, 0.017064960479736328, 0.016995328903198242, 0.01696051216125488, 0.016951295852661134, 0.01716531181335449, 0.017089536666870117, 0.01698918342590332, 0.01724006462097168, 0.01765478324890137, 0.01759846305847168, 0.017675264358520508, 0.01765068817138672, 0.01744179153442383, 0.017730560302734375, 0.017566719055175782, 0.017584127426147463, 0.017352703094482422, 0.017554431915283202, 0.017271808624267578, 0.01738035202026367, 0.017466367721557616, 0.01740287971496582, 0.01752579116821289, 0.0175185604095459, 0.01763532829284668, 0.017510400772094727, 0.017560575485229494, 0.01748684883117676, 0.017519615173339845, 0.017538047790527343, 0.017526784896850587, 0.017362943649291994, 0.017435647964477538 ] }, "throughput": { "unit": "tokens/s", "value": 56.981934672526776 }, "energy": null, "efficiency": null } } }