{ "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": 790.257664, "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.41007177734375, "mean": 7.41007177734375, "stdev": 0.0, "p50": 7.41007177734375, "p90": 7.41007177734375, "p95": 7.41007177734375, "p99": 7.41007177734375, "values": [ 7.41007177734375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.965256680554072e-07, "ram": 5.304319109626705e-07, "gpu": 1.6705568920000191e-06, "total": 3.197514471018097e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1228.22656, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.4912507195472717, "mean": 0.006919024218975658, "stdev": 0.0003119111643800286, "p50": 0.007019584178924561, "p90": 0.00725929594039917, "p95": 0.007319808006286621, "p99": 0.0075802942752838135, "values": [ 0.0076200318336486815, 0.007331583976745605, 0.007180607795715332, 0.007047200202941894, 0.007072735786437989, 0.006907648086547852, 0.007012703895568848, 0.007190239906311035, 0.00725929594039917, 0.0071421761512756345, 0.00709881591796875, 0.007225791931152344, 0.0071847038269042965, 0.007082752227783203, 0.007103648185729981, 0.007051231861114502, 0.006926303863525391, 0.007081151962280274, 0.00702339220046997, 0.0070776638984680175, 0.0075632638931274416, 0.007278304100036621, 0.007008319854736328, 0.007235936164855957, 0.007036159992218018, 0.007148640155792236, 0.0069996161460876465, 0.006999263763427735, 0.0070910720825195315, 0.007056096076965332, 0.007031775951385498, 0.007293920040130616, 0.00720684814453125, 0.007176544189453125, 0.007308032035827637, 0.007131680011749268, 0.006939807891845703, 0.007026303768157959, 0.0069285759925842285, 0.007028992176055908, 0.0066351361274719235, 0.006609151840209961, 0.007089024066925049, 0.007066143989562988, 0.007361792087554932, 0.007019584178924561, 0.006919680118560791, 0.006976160049438476, 0.006866559982299804, 0.006749279975891113, 0.0067355198860168455, 0.0067905597686767575, 0.006457695960998535, 0.006509664058685302, 0.006449376106262207, 0.006413663864135742, 0.006429599761962891, 0.006448927879333496, 0.006512383937835694, 0.00643555212020874, 0.006486815929412842, 0.006503136157989502, 0.006411744117736816, 0.006463168144226074, 0.006419519901275635, 0.006614943981170654, 0.006454239845275879, 0.006476191997528076, 0.006357823848724365, 0.006905856132507324, 0.006572991847991943 ] }, "throughput": { "unit": "tokens/s", "value": 289.05810078174494 }, "energy": { "unit": "kWh", "cpu": 8.174266965038011e-08, "ram": 4.4692302819577636e-08, "gpu": 1.5756909157241262e-07, "total": 2.8400406404237036e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7042152.747862162 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1246.633984, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.5157838072776796, "mean": 0.007264560665882808, "stdev": 0.00031781044453847897, "p50": 0.007364607810974121, "p90": 0.007583615779876709, "p95": 0.007651119947433472, "p99": 0.007838816118240355, "values": [ 0.007667295932769776, 0.0075222721099853515, 0.007476128101348877, 0.007493535995483399, 0.0073944320678710936, 0.007231423854827881, 0.007362624168395996, 0.007583615779876709, 0.00779091215133667, 0.007393919944763184, 0.007525887966156006, 0.007620736122131348, 0.007539328098297119, 0.00745036792755127, 0.007458687782287598, 0.007279071807861328, 0.007318528175354004, 0.00738643217086792, 0.007400991916656494, 0.007550496101379395, 0.007950592041015624, 0.007602975845336914, 0.007445631980895996, 0.007514815807342529, 0.007415647983551025, 0.007346208095550537, 0.007395135879516602, 0.007484511852264404, 0.007349664211273193, 0.007437439918518066, 0.007364607810974121, 0.007403071880340576, 0.007634943962097168, 0.007559967994689941, 0.00755344009399414, 0.007425312042236328, 0.007415616035461426, 0.007527167797088623, 0.007019775867462158, 0.007280543804168701, 0.006747935771942139, 0.007322336196899414, 0.00747814416885376, 0.007516960144042969, 0.007698815822601318, 0.007311935901641846, 0.007365695953369141, 0.00735260820388794, 0.007147808074951172, 0.007125440120697021, 0.007113759994506836, 0.0070915517807006835, 0.0068570561408996585, 0.006729887962341309, 0.006733215808868408, 0.006767807960510254, 0.0067329277992248535, 0.0070704960823059085, 0.0067424321174621585, 0.006747647762298584, 0.006941855907440186, 0.006857984066009522, 0.006725664138793945, 0.006759136199951172, 0.007234911918640136, 0.006781343936920166, 0.006738239765167236, 0.00677561616897583, 0.0066854081153869625, 0.007256864070892334, 0.00679856014251709 ] }, "throughput": { "unit": "tokens/s", "value": 137.65457348252147 }, "energy": { "unit": "kWh", "cpu": 7.415877238604919e-08, "ram": 4.021757972929386e-08, "gpu": 1.76020641388621e-07, "total": 2.9039699350396396e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3443561.821814625 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.4817275199890137, "mean": 0.006784894647732586, "stdev": 0.0002640674688277967, "p50": 0.006858943939208984, "p90": 0.007047167778015137, "p95": 0.0070793600082397455, "p99": 0.007281254482269287, "values": [ 0.007094143867492676, 0.007000063896179199, 0.0069632000923156735, 0.006940671920776367, 0.006894591808319092, 0.0067276802062988285, 0.006846464157104492, 0.007060480117797851, 0.00724070405960083, 0.006858943939208984, 0.006994944095611572, 0.007064576148986816, 0.006999040126800537, 0.006922239780426025, 0.006918975830078125, 0.006790143966674805, 0.00681766414642334, 0.00687824010848999, 0.006889472007751465, 0.0070225920677185055, 0.007375872135162354, 0.007047167778015137, 0.006917119979858399, 0.006976511955261231, 0.006894527912139892, 0.006849535942077637, 0.006892543792724609, 0.006952960014343262, 0.006847519874572754, 0.006874112129211426, 0.006855679988861084, 0.00687820816040039, 0.007061503887176514, 0.007025760173797607, 0.007031807899475098, 0.0069192638397216795, 0.006899712085723877, 0.0070256638526916505, 0.006569119930267334, 0.00680131196975708, 0.0063498239517211915, 0.00683622407913208, 0.006952991962432861, 0.007024640083312988, 0.007223296165466309, 0.0068351998329162595, 0.006914048194885254, 0.006918144226074219, 0.0067348480224609375, 0.006712448120117187, 0.006711264133453369, 0.006677504062652588, 0.006466559886932373, 0.006341631889343262, 0.006325119972229004, 0.006379519939422608, 0.006341631889343262, 0.006609920024871826, 0.006355967998504639, 0.006362112045288086, 0.006516736030578613, 0.006459392070770263, 0.006338560104370118, 0.006336512088775635, 0.006801407814025879, 0.0063907837867736815, 0.006336575984954834, 0.00638976001739502, 0.006284255981445313, 0.00676966381072998, 0.0064102401733398436 ] }, "throughput": { "unit": "tokens/s", "value": 147.3862236511197 }, "energy": null, "efficiency": null } } }