{ "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": 1030.77888, "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.48630956697464006, "mean": 0.006754299541314443, "stdev": 0.0003951237318278697, "p50": 0.006740624189376831, "p90": 0.007153487968444824, "p95": 0.007347017669677734, "p99": 0.00809057776451111, "values": [ 0.00835331153869629, 0.007369279861450195, 0.007330399990081787, 0.00721014404296875, 0.006897183895111084, 0.0073673281669616696, 0.006881887912750244, 0.006959519863128662, 0.007067520141601563, 0.006795167922973633, 0.006665472030639648, 0.006763264179229737, 0.006827104091644287, 0.006770559787750244, 0.006713696002960205, 0.006740608215332031, 0.0065640959739685055, 0.00656931209564209, 0.0065717120170593266, 0.00698041582107544, 0.00710643196105957, 0.007143263816833496, 0.007017312049865723, 0.007009984016418457, 0.007055871963500977, 0.007983263969421386, 0.006916543960571289, 0.006786623954772949, 0.007060128211975098, 0.006922656059265136, 0.006999807834625244, 0.007131135940551757, 0.007224575996398926, 0.007067455768585205, 0.006979135990142822, 0.006740640163421631, 0.0068130879402160645, 0.00658073616027832, 0.006418335914611817, 0.0068640317916870116, 0.006185919761657715, 0.006314239978790283, 0.007046976089477539, 0.007016032218933105, 0.007154623985290528, 0.006750495910644532, 0.006561247825622558, 0.0065747199058532714, 0.006506752014160156, 0.0061430721282958985, 0.0064189438819885255, 0.0064716157913208006, 0.006434591770172119, 0.006396192073822022, 0.006442016124725342, 0.006432960033416748, 0.006389344215393066, 0.006398399829864502, 0.0064043841361999514, 0.0062148160934448245, 0.006419424057006836, 0.006425024032592774, 0.0064141440391540525, 0.006385056018829346, 0.006455103874206543, 0.006403264045715332, 0.006369631767272949, 0.006414048194885254, 0.006446944236755371, 0.006240511894226074, 0.006434239864349365, 0.006425824165344238 ] }, "throughput": { "unit": "tokens/s", "value": 296.1076848556206 }, "energy": { "unit": "kWh", "cpu": 7.61819244534881e-08, "ram": 4.1535631722027236e-08, "gpu": 1.5225439530769262e-07, "total": 2.6997195148320796e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7408176.993988201 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1030.77888, "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.5118882570266724, "mean": 0.00710955912537045, "stdev": 0.0003319469484512639, "p50": 0.007030640125274658, "p90": 0.00757022089958191, "p95": 0.007616116952896118, "p99": 0.007725003390312195, "values": [ 0.007610400199890136, 0.007732160091400146, 0.0076624641418457035, 0.007418303966522217, 0.007397024154663086, 0.007445216178894043, 0.007251584053039551, 0.00742307186126709, 0.007551904201507568, 0.007172639846801758, 0.0070368962287902835, 0.007305791854858398, 0.007209280014038086, 0.007120223999023437, 0.007103263854980469, 0.007121535778045654, 0.006909088134765625, 0.007024384021759033, 0.0072960638999938964, 0.007371935844421387, 0.007572256088256836, 0.007623104095458985, 0.007407264232635498, 0.007544703960418701, 0.00757916784286499, 0.0074009280204772945, 0.007054431915283203, 0.007722080230712891, 0.007409952163696289, 0.007380608081817627, 0.007406688213348388, 0.007491007804870605, 0.00754256010055542, 0.007512383937835694, 0.007458720207214355, 0.006930079936981201, 0.0069465599060058595, 0.0068089919090271, 0.006943808078765869, 0.006866208076477051, 0.0065500478744506836, 0.006658624172210694, 0.007598688125610351, 0.0074626879692077635, 0.007250207901000977, 0.006906144142150879, 0.007014976024627685, 0.0067535037994384765, 0.006797952175140381, 0.0066507840156555175, 0.007004543781280518, 0.006769536018371582, 0.006808832168579102, 0.006794559955596924, 0.0067422080039978025, 0.006819007873535156, 0.006765151977539062, 0.006750175952911377, 0.0067907519340515135, 0.006830143928527832, 0.006779967784881592, 0.006771423816680908, 0.006787936210632325, 0.006869056224822998, 0.006777696132659912, 0.00677561616897583, 0.006785696029663086, 0.006768671989440918, 0.00675926399230957, 0.006794655799865722, 0.006754464149475098, 0.006780543804168701 ] }, "throughput": { "unit": "tokens/s", "value": 140.65569782400453 }, "energy": { "unit": "kWh", "cpu": 7.054576872552865e-08, "ram": 3.868679756795428e-08, "gpu": 1.3856202390218456e-07, "total": 2.4779459019566747e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4035600.612629857 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 72, "total": 0.4778844151496886, "mean": 0.006637283543745677, "stdev": 0.0002793061454696281, "p50": 0.00657203197479248, "p90": 0.007033036756515503, "p95": 0.007086796879768371, "p99": 0.007164856448173523, "values": [ 0.007044095993041993, 0.007177216053009033, 0.0071198720932006835, 0.006894591808319092, 0.00688640022277832, 0.00692633581161499, 0.0067573761940002445, 0.006910975933074951, 0.007007232189178467, 0.006672351837158203, 0.006533120155334473, 0.006800384044647217, 0.006680575847625733, 0.006627327919006347, 0.006601727962493896, 0.006625279903411865, 0.006388735771179199, 0.006510655879974365, 0.006784031867980957, 0.006855679988861084, 0.007035903930664063, 0.007090176105499267, 0.00687718391418457, 0.006998015880584717, 0.00705840015411377, 0.006897664070129395, 0.006556672096252441, 0.007159808158874512, 0.0068853759765625, 0.006833151817321777, 0.0068884482383728025, 0.006938623905181885, 0.00698367977142334, 0.0069847040176391605, 0.0069212160110473635, 0.006453248023986816, 0.0064778242111206055, 0.006395904064178467, 0.006459392070770263, 0.0064430079460144046, 0.006137792110443115, 0.006174719810485839, 0.00708403205871582, 0.00690176010131836, 0.006766592025756836, 0.006452223777770996, 0.00658739185333252, 0.0063610877990722655, 0.006403071880340576, 0.006244351863861084, 0.006606847763061524, 0.006341631889343262, 0.0064102401733398436, 0.006398975849151611, 0.0063498239517211915, 0.006412288188934326, 0.00637440013885498, 0.006352896213531494, 0.006397952079772949, 0.006435840129852295, 0.0063836159706115725, 0.006355967998504639, 0.0063805441856384275, 0.006471712112426758, 0.006363135814666748, 0.006368256092071533, 0.0063805441856384275, 0.006363135814666748, 0.006364160060882569, 0.006398975849151611, 0.0063569917678833006, 0.0063610877990722655 ] }, "throughput": { "unit": "tokens/s", "value": 150.6640470320575 }, "energy": null, "efficiency": null } } }