|
{ |
|
"config": { |
|
"name": "pytorch_generate", |
|
"backend": { |
|
"name": "pytorch", |
|
"version": "2.4.0+cu121", |
|
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", |
|
"task": "text-generation", |
|
"library": "transformers", |
|
"model_type": "gemma", |
|
"model": "google/gemma-2b", |
|
"processor": "google/gemma-2b", |
|
"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": "float16", |
|
"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": { |
|
"backend": "inductor", |
|
"mode": "reduce-overhead", |
|
"fullgraph": true |
|
}, |
|
"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": 2, |
|
"duration": 0, |
|
"warmup_runs": 10, |
|
"input_shapes": { |
|
"batch_size": 1, |
|
"num_choices": 2, |
|
"sequence_length": 7 |
|
}, |
|
"new_tokens": null, |
|
"memory": true, |
|
"latency": true, |
|
"energy": false, |
|
"forward_kwargs": {}, |
|
"generate_kwargs": { |
|
"max_new_tokens": 128, |
|
"min_new_tokens": 128, |
|
"do_sample": false |
|
}, |
|
"call_kwargs": {} |
|
}, |
|
"launcher": { |
|
"name": "process", |
|
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", |
|
"device_isolation": true, |
|
"device_isolation_action": "warn", |
|
"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.29", |
|
"processor": "x86_64", |
|
"python_version": "3.8.10", |
|
"gpu": [ |
|
"NVIDIA A10G" |
|
], |
|
"gpu_count": 1, |
|
"gpu_vram_mb": 24146608128, |
|
"optimum_benchmark_version": "0.4.0", |
|
"optimum_benchmark_commit": null, |
|
"transformers_version": "4.45.0.dev0", |
|
"transformers_commit": "21fac7abba2a37fae86106f87fcf9974fd1e3830", |
|
"accelerate_version": "0.35.0.dev0", |
|
"accelerate_commit": null, |
|
"diffusers_version": null, |
|
"diffusers_commit": null, |
|
"optimum_version": "1.22.0.dev0", |
|
"optimum_commit": null, |
|
"timm_version": "0.9.16", |
|
"timm_commit": null, |
|
"peft_version": "0.12.1.dev0", |
|
"peft_commit": null |
|
} |
|
}, |
|
"report": { |
|
"load": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1320.177664, |
|
"max_global_vram": 6768.033792, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 6060.931072 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 1, |
|
"total": 11.47491796875, |
|
"mean": 11.47491796875, |
|
"stdev": 0.0, |
|
"p50": 11.47491796875, |
|
"p90": 11.47491796875, |
|
"p95": 11.47491796875, |
|
"p99": 11.47491796875, |
|
"values": [ |
|
11.47491796875 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1714.552832, |
|
"max_global_vram": 6789.005312, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6142.558208, |
|
"max_allocated": 5028.431872 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.041583614349365236, |
|
"mean": 0.020791807174682618, |
|
"stdev": 9.632110595703472e-06, |
|
"p50": 0.020791807174682618, |
|
"p90": 0.02079951286315918, |
|
"p95": 0.02080047607421875, |
|
"p99": 0.020801246643066405, |
|
"values": [ |
|
0.02080143928527832, |
|
0.020782175064086913 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 336.6710715037618 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1769.005056, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5031.801344 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.9354223632812495, |
|
"mean": 2.4677111816406248, |
|
"stdev": 0.0018029785156248312, |
|
"p50": 2.4677111816406248, |
|
"p90": 2.469153564453125, |
|
"p95": 2.4693338623046874, |
|
"p99": 2.4694781005859374, |
|
"values": [ |
|
2.46951416015625, |
|
2.465908203125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.46469365817995 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 4.935103500366212, |
|
"mean": 0.01942954134002445, |
|
"stdev": 0.00040601325824417495, |
|
"p50": 0.019390975952148438, |
|
"p90": 0.01957969970703125, |
|
"p95": 0.019771494579315187, |
|
"p99": 0.02045730752944946, |
|
"values": [ |
|
0.01927987289428711, |
|
0.01927577590942383, |
|
0.019339263916015623, |
|
0.01928704071044922, |
|
0.019339263916015623, |
|
0.019305471420288087, |
|
0.019323904037475585, |
|
0.019334144592285156, |
|
0.019438592910766602, |
|
0.019389471054077147, |
|
0.019461088180541992, |
|
0.019200031280517577, |
|
0.019382240295410157, |
|
0.01939148712158203, |
|
0.019400703430175782, |
|
0.019358720779418945, |
|
0.019349504470825195, |
|
0.01946931266784668, |
|
0.01940377616882324, |
|
0.019975168228149414, |
|
0.019332096099853514, |
|
0.01942118453979492, |
|
0.01942937660217285, |
|
0.019388416290283202, |
|
0.019359743118286133, |
|
0.019518463134765626, |
|
0.01944576072692871, |
|
0.019376127243041993, |
|
0.019364864349365234, |
|
0.019173376083374022, |
|
0.01927987289428711, |
|
0.019689472198486328, |
|
0.019364864349365234, |
|
0.019335168838500977, |
|
0.019393535614013673, |
|
0.019340288162231444, |
|
0.019318784713745117, |
|
0.01923481559753418, |
|
0.019353599548339845, |
|
0.019342336654663086, |
|
0.01938739204406738, |
|
0.019289087295532227, |
|
0.019397632598876953, |
|
0.02042265510559082, |
|
0.020082687377929686, |
|
0.0196945915222168, |
|
0.019384319305419923, |
|
0.019323904037475585, |
|
0.019277824401855468, |
|
0.019357696533203125, |
|
0.019380224227905272, |
|
0.019309568405151366, |
|
0.0194150390625, |
|
0.0192225284576416, |
|
0.0190248966217041, |
|
0.019142656326293944, |
|
0.019376127243041993, |
|
0.01943449592590332, |
|
0.01942630386352539, |
|
0.019787776947021486, |
|
0.019549184799194336, |
|
0.019298303604125978, |
|
0.019414016723632813, |
|
0.019327999114990235, |
|
0.01926655960083008, |
|
0.01945497512817383, |
|
0.01945395278930664, |
|
0.019559423446655275, |
|
0.019398656845092774, |
|
0.019571712493896484, |
|
0.019482624053955077, |
|
0.019494911193847657, |
|
0.01957683181762695, |
|
0.01946214485168457, |
|
0.019467264175415038, |
|
0.019499008178710937, |
|
0.019364864349365234, |
|
0.019517440795898438, |
|
0.019481599807739256, |
|
0.01945292854309082, |
|
0.01959219169616699, |
|
0.019563583374023436, |
|
0.019453887939453126, |
|
0.020048896789550782, |
|
0.019561471939086913, |
|
0.019525632858276368, |
|
0.019482624053955077, |
|
0.019322879791259767, |
|
0.019482624053955077, |
|
0.019514368057250975, |
|
0.019417087554931642, |
|
0.019451904296875, |
|
0.01942118453979492, |
|
0.019487743377685548, |
|
0.019486719131469727, |
|
0.01945702362060547, |
|
0.019580928802490235, |
|
0.0194467830657959, |
|
0.019561471939086913, |
|
0.019775487899780272, |
|
0.019508224487304687, |
|
0.019422208786010742, |
|
0.019360767364501954, |
|
0.019509248733520508, |
|
0.019551231384277345, |
|
0.019537919998168944, |
|
0.01944268798828125, |
|
0.019396608352661132, |
|
0.019514368057250975, |
|
0.019522560119628905, |
|
0.01960140800476074, |
|
0.019779584884643556, |
|
0.019315711975097655, |
|
0.01909350395202637, |
|
0.01925324821472168, |
|
0.019375104904174805, |
|
0.01926348876953125, |
|
0.019547136306762695, |
|
0.019466239929199217, |
|
0.019371007919311522, |
|
0.019501056671142578, |
|
0.01941913604736328, |
|
0.01946316719055176, |
|
0.01944166374206543, |
|
0.019525632858276368, |
|
0.019560447692871095, |
|
0.019571712493896484, |
|
0.01963007926940918, |
|
0.019304447174072266, |
|
0.019324928283691405, |
|
0.019353599548339845, |
|
0.01948876762390137, |
|
0.019277824401855468, |
|
0.019325952529907226, |
|
0.019312639236450196, |
|
0.019364864349365234, |
|
0.019302400588989257, |
|
0.019017728805541992, |
|
0.02058137512207031, |
|
0.019372032165527343, |
|
0.019318784713745117, |
|
0.01943244743347168, |
|
0.01942937660217285, |
|
0.019398656845092774, |
|
0.019390464782714844, |
|
0.019170303344726563, |
|
0.01941196823120117, |
|
0.01921023941040039, |
|
0.01942527961730957, |
|
0.019389440536499023, |
|
0.01940377616882324, |
|
0.019382272720336914, |
|
0.019389440536499023, |
|
0.01923583984375, |
|
0.01925017547607422, |
|
0.019323904037475585, |
|
0.019381248474121093, |
|
0.019323904037475585, |
|
0.019364864349365234, |
|
0.019178495407104493, |
|
0.01924198341369629, |
|
0.019510271072387696, |
|
0.019430400848388672, |
|
0.01927987289428711, |
|
0.019219455718994142, |
|
0.020339712142944336, |
|
0.019894271850585937, |
|
0.01946419143676758, |
|
0.019359743118286133, |
|
0.01942835235595703, |
|
0.019075071334838867, |
|
0.01928704071044922, |
|
0.019280895233154297, |
|
0.019281919479370118, |
|
0.019345407485961915, |
|
0.019300352096557616, |
|
0.01941196823120117, |
|
0.019288063049316406, |
|
0.019355648040771483, |
|
0.01922764778137207, |
|
0.019322879791259767, |
|
0.01939558410644531, |
|
0.019341312408447265, |
|
0.019339263916015623, |
|
0.019536895751953123, |
|
0.019769344329833984, |
|
0.019591167449951173, |
|
0.01922355270385742, |
|
0.019132415771484376, |
|
0.01925734329223633, |
|
0.019982336044311523, |
|
0.020496383666992187, |
|
0.024896511077880858, |
|
0.019718143463134767, |
|
0.019195903778076173, |
|
0.019147775650024415, |
|
0.019135488510131835, |
|
0.01909760093688965, |
|
0.019112960815429687, |
|
0.01904332733154297, |
|
0.019082239151000976, |
|
0.019112960815429687, |
|
0.019170303344726563, |
|
0.019125247955322267, |
|
0.019106815338134766, |
|
0.01965977668762207, |
|
0.019198976516723632, |
|
0.019104768753051758, |
|
0.019183616638183593, |
|
0.019212287902832033, |
|
0.01920921516418457, |
|
0.01948467254638672, |
|
0.01945395278930664, |
|
0.019563520431518554, |
|
0.01946214485168457, |
|
0.019390464782714844, |
|
0.0194201602935791, |
|
0.0194703369140625, |
|
0.019323904037475585, |
|
0.019152896881103516, |
|
0.019164159774780275, |
|
0.019329023361206055, |
|
0.019119104385375976, |
|
0.019174400329589843, |
|
0.0194150390625, |
|
0.019526655197143555, |
|
0.019503103256225587, |
|
0.01944473648071289, |
|
0.01945395278930664, |
|
0.01918156814575195, |
|
0.019611648559570313, |
|
0.019512319564819337, |
|
0.01962188720703125, |
|
0.019582975387573243, |
|
0.019528703689575197, |
|
0.019475456237792968, |
|
0.0194201602935791, |
|
0.019557376861572266, |
|
0.019501056671142578, |
|
0.019341312408447265, |
|
0.019519487380981446, |
|
0.019548160552978516, |
|
0.019511295318603517, |
|
0.019514368057250975, |
|
0.01947238349914551, |
|
0.01945292854309082, |
|
0.01924608039855957, |
|
0.019148799896240236, |
|
0.019129344940185547, |
|
0.019133440017700197, |
|
0.019136512756347656, |
|
0.019115007400512696, |
|
0.019142656326293944, |
|
0.019105791091918945 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.46801885333345 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |