{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.223-212.873.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.2", "transformers_commit": null, "accelerate_version": "0.34.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.814144, "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.3650791015625, "mean": 7.3650791015625, "stdev": 0.0, "p50": 7.3650791015625, "p90": 7.3650791015625, "p95": 7.3650791015625, "p99": 7.3650791015625, "values": [ 7.3650791015625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0133523388891064e-06, "ram": 5.245067642841494e-07, "gpu": 1.58639015799991e-06, "total": 3.1242492611731657e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1207.394304, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 75, "total": 0.4860966067314148, "mean": 0.006481288089752197, "stdev": 0.00035184052949953094, "p50": 0.006324960231781006, "p90": 0.006760294246673584, "p95": 0.007117539310455321, "p99": 0.007904170732498172, "values": [ 0.007822559833526612, 0.007456607818603515, 0.0067283201217651365, 0.006770495891571045, 0.006744991779327392, 0.006648896217346191, 0.00813644790649414, 0.006972224235534668, 0.006654208183288574, 0.006930912017822265, 0.006306528091430664, 0.006320608139038086, 0.006331999778747558, 0.0063136320114135745, 0.006308063983917236, 0.006299903869628906, 0.00638153600692749, 0.006327968120574951, 0.006282048225402832, 0.006312863826751709, 0.006343423843383789, 0.006286176204681396, 0.006296864032745361, 0.0063108158111572265, 0.006436736106872559, 0.006440320014953613, 0.007577824115753174, 0.0068831038475036625, 0.0066423358917236325, 0.006672671794891357, 0.006638912200927735, 0.0065697917938232426, 0.006534527778625488, 0.006585279941558838, 0.006293504238128662, 0.0063441600799560545, 0.006324960231781006, 0.006295807838439941, 0.006285600185394287, 0.006340159893035889, 0.006325247764587402, 0.00629033613204956, 0.006286272048950195, 0.006301536083221436, 0.006322368144989014, 0.006288191795349121, 0.006307295799255371, 0.006337088108062744, 0.006337120056152344, 0.006565120220184326, 0.0065855679512023925, 0.006550528049468994, 0.006562143802642822, 0.006558752059936524, 0.006509407997131348, 0.006273663997650146, 0.00627452802658081, 0.006322815895080567, 0.006273119926452637, 0.006264544010162353, 0.0062765440940856934, 0.006312607765197754, 0.006281311988830566, 0.006259007930755615, 0.006299808025360108, 0.006343071937561035, 0.0062984957695007325, 0.006351679801940918, 0.006301375865936279, 0.006269343852996826, 0.006274271965026856, 0.006261280059814453, 0.0063060798645019536, 0.006291327953338623, 0.006280960083007813 ] }, "throughput": { "unit": "tokens/s", "value": 308.5806358711741 }, "energy": { "unit": "kWh", "cpu": 7.951627784768938e-08, "ram": 4.347469362393727e-08, "gpu": 1.4800533838926242e-07, "total": 2.7099630986088907e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7380174.294722548 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1226.010624, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 75, "total": 0.5132504329681397, "mean": 0.006843339106241864, "stdev": 0.00038515766735726316, "p50": 0.00665503978729248, "p90": 0.007101068782806397, "p95": 0.007854127979278565, "p99": 0.008340278739929199, "values": [ 0.007886720180511475, 0.008316608428955078, 0.006790431976318359, 0.007164864063262939, 0.006990272045135498, 0.006992608070373535, 0.008407648086547852, 0.006987167835235596, 0.00805827236175537, 0.007003136157989502, 0.006644864082336426, 0.006642943859100342, 0.006637279987335205, 0.006638495922088623, 0.006636864185333252, 0.006615903854370117, 0.00660918378829956, 0.006617599964141845, 0.006635776042938232, 0.006610432147979736, 0.006630943775177002, 0.006723840236663819, 0.006652800083160401, 0.0066152639389038086, 0.006625216007232666, 0.00784015989303589, 0.007617536067962646, 0.0069411201477050785, 0.0069443521499633785, 0.007172192096710205, 0.006918975830078125, 0.007005375862121582, 0.006983327865600586, 0.006900479793548584, 0.006751872062683105, 0.006906816005706787, 0.006647840023040772, 0.00665503978729248, 0.006639232158660888, 0.006631968021392823, 0.006651999950408935, 0.006635935783386231, 0.006658239841461182, 0.006602528095245361, 0.006618912220001221, 0.006639552116394043, 0.006639552116394043, 0.006719840049743652, 0.006794112205505371, 0.006934944152832031, 0.0068865280151367185, 0.006895936012268066, 0.006947904109954834, 0.0069680318832397465, 0.006918208122253418, 0.00666700792312622, 0.006620831966400146, 0.006653024196624756, 0.006627359867095947, 0.0066629438400268555, 0.006706624031066894, 0.0066195521354675295, 0.006625120162963867, 0.006620351791381836, 0.006807839870452881, 0.006646751880645752, 0.006635263919830322, 0.006699711799621582, 0.006612480163574219, 0.006630879878997803, 0.006616991996765137, 0.006624447822570801, 0.006620704174041748, 0.00672054386138916, 0.006628352165222168 ] }, "throughput": { "unit": "tokens/s", "value": 146.1274948493919 }, "energy": { "unit": "kWh", "cpu": 7.63562841202012e-08, "ram": 4.148443134407529e-08, "gpu": 1.3635636096138572e-07, "total": 2.541970764256622e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3933955.551579452 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 75, "total": 0.4826951351165773, "mean": 0.006435935134887696, "stdev": 0.0003494067734127517, "p50": 0.0062638077735900875, "p90": 0.006693273544311524, "p95": 0.007237836790084838, "p99": 0.007814717569351197, "values": [ 0.007333888053894043, 0.007786496162414551, 0.00638156795501709, 0.006750207901000976, 0.006585343837738037, 0.00658022403717041, 0.007895040035247802, 0.006585343837738037, 0.007540736198425293, 0.0065894718170166015, 0.006258687973022461, 0.006258687973022461, 0.006231040000915527, 0.006252543926239014, 0.006242303848266601, 0.006230016231536865, 0.006201344013214111, 0.00623308801651001, 0.006250495910644531, 0.00622489595413208, 0.0062156801223754886, 0.006340640068054199, 0.006254591941833496, 0.006232063770294189, 0.006218751907348633, 0.007196671962738037, 0.0071526398658752445, 0.006542304039001465, 0.006546432018280029, 0.00676966381072998, 0.006512639999389648, 0.0066078720092773435, 0.00657919979095459, 0.006500351905822754, 0.006364160060882569, 0.006520832061767578, 0.006258687973022461, 0.006253568172454834, 0.006254591941833496, 0.006243328094482422, 0.0062638077735900875, 0.006238207817077636, 0.0062740478515625, 0.006217728137969971, 0.006231040000915527, 0.0062566399574279785, 0.006255616188049316, 0.006335487842559814, 0.006391808032989502, 0.006536191940307618, 0.0064767999649047855, 0.006497280120849609, 0.006549503803253174, 0.0065330882072448734, 0.006488096237182617, 0.0062740478515625, 0.006236159801483154, 0.006258687973022461, 0.00623308801651001, 0.006268864154815674, 0.006322175979614258, 0.006211584091186524, 0.0062321281433105466, 0.006236159801483154, 0.006423488140106202, 0.006235136032104492, 0.006251520156860352, 0.006315008163452148, 0.006220799922943115, 0.00622489595413208, 0.00622489595413208, 0.006239232063293457, 0.0062269439697265625, 0.006309887886047363, 0.006228991985321045 ] }, "throughput": { "unit": "tokens/s", "value": 155.37757591421865 }, "energy": null, "efficiency": null } } }