{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+cu124", "_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": {}, "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, "memory": true, "latency": 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.25696, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.220-209.869.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 792.10496, "max_global_vram": 1355.28448, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.4211162109375, "mean": 7.4211162109375, "stdev": 0.0, "p50": 7.4211162109375, "p90": 7.4211162109375, "p95": 7.4211162109375, "p99": 7.4211162109375, "values": [ 7.4211162109375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.746808451392753e-07, "ram": 5.186512338422671e-07, "gpu": 1.6705568920000191e-06, "total": 3.163888970981561e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1216.651264, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 70, "total": 0.4945240325927734, "mean": 0.007064629037039622, "stdev": 0.00045073945087061214, "p50": 0.0072621281147003175, "p90": 0.007513203191757202, "p95": 0.0076122369050979615, "p99": 0.007830620393753051, "values": [ 0.007822495937347412, 0.0076269121170043945, 0.007621568202972412, 0.007512639999389648, 0.007382976055145264, 0.007220191955566406, 0.00736297607421875, 0.007428575992584228, 0.007438496112823486, 0.007284543991088867, 0.007447999954223633, 0.007546944141387939, 0.007303103923797607, 0.007265120029449463, 0.007341023921966553, 0.007203264236450195, 0.007321248054504395, 0.007330783843994141, 0.007364927768707275, 0.007475168228149414, 0.007518271923065186, 0.007278431892395019, 0.007468607902526856, 0.007426976203918457, 0.007600831985473633, 0.00733241605758667, 0.007512224197387695, 0.007191904067993164, 0.007259136199951172, 0.007273024082183838, 0.0073712639808654785, 0.007509088039398194, 0.00748905611038208, 0.007354176044464112, 0.007279903888702393, 0.007289120197296143, 0.007170303821563721, 0.0072787518501281736, 0.0070109119415283205, 0.006852511882781982, 0.00725113582611084, 0.0071976318359375, 0.00724128007888794, 0.0074256319999694825, 0.007037407875061035, 0.007848703861236572, 0.006865664005279541, 0.006786880016326905, 0.006785664081573486, 0.006757952213287353, 0.006449728012084961, 0.0063829441070556645, 0.006364640235900879, 0.006491392135620117, 0.0063623361587524414, 0.006363999843597412, 0.006345183849334717, 0.006366208076477051, 0.0063710718154907225, 0.006585855960845947, 0.006615359783172608, 0.006402527809143067, 0.006433152198791504, 0.006514111995697022, 0.006559391975402832, 0.0064421119689941405, 0.006395967960357666, 0.006402112007141113, 0.006350240230560303, 0.006359871864318848 ] }, "throughput": { "unit": "tokens/s", "value": 283.1004982022502 }, "energy": { "unit": "kWh", "cpu": 8.024245667229538e-08, "ram": 4.38728674308959e-08, "gpu": 1.5230117289189152e-07, "total": 2.764164969950828e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7235458.164552234 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1235.058688, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 70, "total": 0.515338623046875, "mean": 0.007361980329241071, "stdev": 0.0004622038877851206, "p50": 0.00758404803276062, "p90": 0.007806310224533081, "p95": 0.007858259320259095, "p99": 0.008021477484703065, "values": [ 0.008199839591979981, 0.007941343784332276, 0.007876832008361817, 0.00775984001159668, 0.007637311935424804, 0.007584159851074219, 0.007707327842712402, 0.0078220157623291, 0.007781248092651367, 0.00772054386138916, 0.007769567966461182, 0.007780159950256348, 0.007708352088928222, 0.007766528129577637, 0.007755104064941406, 0.007627871990203858, 0.007714911937713623, 0.007689856052398682, 0.0078106880187988285, 0.007805823802947998, 0.007693280220031738, 0.007846784114837647, 0.007625216007232666, 0.007694464206695556, 0.007750815868377685, 0.00769052791595459, 0.007583936214447021, 0.007727327823638916, 0.007694687843322754, 0.007707231998443603, 0.007867648124694824, 0.007766655921936035, 0.0076817917823791505, 0.007708992004394531, 0.007800191879272461, 0.007539072036743164, 0.007202144145965576, 0.007537504196166992, 0.0070057277679443355, 0.007406943798065185, 0.007451776027679443, 0.007537055969238282, 0.007661856174468994, 0.007485119819641113, 0.007176191806793213, 0.007249983787536621, 0.0071426877975463866, 0.007253824234008789, 0.007113664150238037, 0.007065216064453125, 0.006655648231506348, 0.006687647819519043, 0.006725120067596436, 0.006640128135681152, 0.006683648109436035, 0.006697408199310303, 0.006655456066131592, 0.0066564478874206546, 0.006717184066772461, 0.006780831813812256, 0.006838079929351807, 0.006678592205047607, 0.006757696151733398, 0.006963071823120118, 0.006757215976715088, 0.006661952018737793, 0.006647039890289306, 0.006669023990631104, 0.006677536010742188, 0.006661248207092285 ] }, "throughput": { "unit": "tokens/s", "value": 135.83301710656536 }, "energy": { "unit": "kWh", "cpu": 7.515150929992456e-08, "ram": 4.108921773474005e-08, "gpu": 1.4450642386135628e-07, "total": 2.607471508960209e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3835132.9882748118 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 70, "total": 0.4816649274826048, "mean": 0.0068809275354657865, "stdev": 0.0003987482679419797, "p50": 0.0070676481723785396, "p90": 0.0072551103591918945, "p95": 0.007313459229469299, "p99": 0.007473028926849366, "values": [ 0.007648255825042725, 0.007394303798675537, 0.007342080116271973, 0.007201791763305664, 0.007117824077606201, 0.007060480117797851, 0.007159808158874512, 0.007226367950439453, 0.007238592147827148, 0.007184383869171143, 0.007234560012817383, 0.007238656044006348, 0.007132160186767578, 0.007216127872467041, 0.0072499198913574215, 0.007111680030822754, 0.007176191806793213, 0.007134208202362061, 0.007253983974456787, 0.007265247821807861, 0.007172095775604248, 0.007307263851165771, 0.007101439952850342, 0.007173120021820068, 0.007225344181060791, 0.007146495819091797, 0.007074816226959229, 0.007175168037414551, 0.0071792640686035155, 0.0071833600997924804, 0.007318528175354004, 0.007198719978332519, 0.00714035177230835, 0.007188479900360107, 0.0072765440940856935, 0.007003136157989502, 0.006750207901000976, 0.007046144008636474, 0.006597631931304931, 0.006917119979858399, 0.006948863983154297, 0.006986752033233643, 0.007142399787902832, 0.007047167778015137, 0.006738944053649902, 0.006814720153808594, 0.006724639892578125, 0.006837247848510742, 0.006708223819732666, 0.006658048152923584, 0.006266880035400391, 0.006298624038696289, 0.00633241605758667, 0.006243328094482422, 0.00626585578918457, 0.0062975997924804685, 0.0062576642036437985, 0.006247424125671387, 0.006326272010803223, 0.006385663986206055, 0.006434815883636475, 0.0062904319763183595, 0.006367231845855713, 0.0065382399559021, 0.006366208076477051, 0.006277120113372803, 0.0062576642036437985, 0.006281216144561768, 0.006289408206939697, 0.006271999835968017 ] }, "throughput": { "unit": "tokens/s", "value": 145.32924447260694 }, "energy": null, "efficiency": null } } }