|
{ |
|
"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.252864, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.223-211.872.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": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594", |
|
"accelerate_version": "0.34.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": 1319.50592, |
|
"max_global_vram": 6768.033792, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 6060.931072 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 1, |
|
"total": 12.54330859375, |
|
"mean": 12.54330859375, |
|
"stdev": 0.0, |
|
"p50": 12.54330859375, |
|
"p90": 12.54330859375, |
|
"p95": 12.54330859375, |
|
"p99": 12.54330859375, |
|
"values": [ |
|
12.54330859375 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1729.482752, |
|
"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.04121468734741211, |
|
"mean": 0.020607343673706056, |
|
"stdev": 4.417610168456869e-05, |
|
"p50": 0.020607343673706056, |
|
"p90": 0.02064268455505371, |
|
"p95": 0.020647102165222166, |
|
"p99": 0.020650636253356933, |
|
"values": [ |
|
0.020563167572021486, |
|
0.020651519775390623 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 339.6847313674713 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1784.348672, |
|
"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.931944580078125, |
|
"mean": 2.4659722900390624, |
|
"stdev": 0.02052331542968755, |
|
"p50": 2.4659722900390624, |
|
"p90": 2.4823909423828123, |
|
"p95": 2.4844432739257813, |
|
"p99": 2.4860851391601564, |
|
"values": [ |
|
2.445448974609375, |
|
2.48649560546875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.500984221517044 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 4.931618816375732, |
|
"mean": 0.01941582211171548, |
|
"stdev": 0.00045509920800469137, |
|
"p50": 0.01921334362030029, |
|
"p90": 0.019986636543273924, |
|
"p95": 0.020101887512207033, |
|
"p99": 0.020570326652526855, |
|
"values": [ |
|
0.019794944763183595, |
|
0.01969254493713379, |
|
0.019108863830566408, |
|
0.01889587211608887, |
|
0.01888768005371094, |
|
0.018917375564575196, |
|
0.018909183502197266, |
|
0.019367935180664063, |
|
0.019124223709106446, |
|
0.019143680572509765, |
|
0.01906483268737793, |
|
0.019074047088623047, |
|
0.019065887451171874, |
|
0.01906787109375, |
|
0.019080192565917968, |
|
0.019052576065063477, |
|
0.01911190414428711, |
|
0.019123199462890626, |
|
0.019095552444458007, |
|
0.019151872634887695, |
|
0.019123199462890626, |
|
0.019175424575805664, |
|
0.01925017547607422, |
|
0.019096576690673828, |
|
0.01905254364013672, |
|
0.019096576690673828, |
|
0.019180543899536134, |
|
0.019084287643432618, |
|
0.018949119567871094, |
|
0.018908159255981445, |
|
0.018889728546142577, |
|
0.018951168060302736, |
|
0.018906112670898437, |
|
0.018925567626953126, |
|
0.018929664611816405, |
|
0.018903039932250978, |
|
0.018975744247436522, |
|
0.018916351318359375, |
|
0.018956287384033203, |
|
0.019126272201538085, |
|
0.01904332733154297, |
|
0.018890752792358398, |
|
0.018890752792358398, |
|
0.01887846374511719, |
|
0.01920614433288574, |
|
0.019194879531860352, |
|
0.019138559341430664, |
|
0.018928640365600585, |
|
0.0190382080078125, |
|
0.019862527847290038, |
|
0.019677183151245118, |
|
0.01989836883544922, |
|
0.019962879180908204, |
|
0.01984102439880371, |
|
0.01982054328918457, |
|
0.019687423706054686, |
|
0.019813375473022463, |
|
0.01968230438232422, |
|
0.019620864868164063, |
|
0.019735551834106444, |
|
0.019886079788208007, |
|
0.01998028755187988, |
|
0.019942399978637695, |
|
0.019961856842041017, |
|
0.0196495361328125, |
|
0.01966182327270508, |
|
0.019687423706054686, |
|
0.019982336044311523, |
|
0.019744768142700195, |
|
0.019720191955566405, |
|
0.019780607223510743, |
|
0.02004684829711914, |
|
0.01984511947631836, |
|
0.019970048904418947, |
|
0.019766271591186522, |
|
0.019219455718994142, |
|
0.019074047088623047, |
|
0.01906483268737793, |
|
0.01903923225402832, |
|
0.018997247695922852, |
|
0.01903718376159668, |
|
0.019326976776123047, |
|
0.019348480224609374, |
|
0.019180543899536134, |
|
0.01927577590942383, |
|
0.01925632095336914, |
|
0.01925529670715332, |
|
0.01922355270385742, |
|
0.019096607208251952, |
|
0.019034080505371094, |
|
0.01904947280883789, |
|
0.018994239807128905, |
|
0.01896441650390625, |
|
0.01903615951538086, |
|
0.019014656066894533, |
|
0.01920614433288574, |
|
0.01905971145629883, |
|
0.019184640884399414, |
|
0.019155967712402345, |
|
0.019144704818725586, |
|
0.019124223709106446, |
|
0.019183616638183593, |
|
0.019117055892944337, |
|
0.01924710464477539, |
|
0.01923788833618164, |
|
0.019215360641479492, |
|
0.019213375091552735, |
|
0.01917024040222168, |
|
0.0192491512298584, |
|
0.01930342483520508, |
|
0.019290111541748048, |
|
0.01925529670715332, |
|
0.01908121681213379, |
|
0.01902387237548828, |
|
0.01903615951538086, |
|
0.01901260757446289, |
|
0.019040319442749025, |
|
0.01901152038574219, |
|
0.019074047088623047, |
|
0.019013631820678712, |
|
0.019195903778076173, |
|
0.019203071594238282, |
|
0.01921331214904785, |
|
0.01921331214904785, |
|
0.01927475166320801, |
|
0.01922559928894043, |
|
0.019260416030883788, |
|
0.018840576171875, |
|
0.01882931137084961, |
|
0.018930688858032226, |
|
0.019102720260620116, |
|
0.01904640007019043, |
|
0.01904844856262207, |
|
0.018941951751708985, |
|
0.018918399810791017, |
|
0.019002368927001953, |
|
0.01904742431640625, |
|
0.01906790351867676, |
|
0.019080255508422853, |
|
0.019085248947143554, |
|
0.019188735961914064, |
|
0.01908940887451172, |
|
0.019105791091918945, |
|
0.01905971145629883, |
|
0.019082239151000976, |
|
0.019090431213378906, |
|
0.019079200744628905, |
|
0.0198133430480957, |
|
0.02008166313171387, |
|
0.019979263305664064, |
|
0.019999744415283204, |
|
0.020173824310302735, |
|
0.020000768661499024, |
|
0.02001203155517578, |
|
0.019956735610961913, |
|
0.019953664779663087, |
|
0.01998847961425781, |
|
0.019851264953613282, |
|
0.019748863220214845, |
|
0.019916799545288084, |
|
0.019951616287231445, |
|
0.020105215072631837, |
|
0.020105215072631837, |
|
0.019920896530151368, |
|
0.019927040100097656, |
|
0.01987481689453125, |
|
0.019943424224853516, |
|
0.01966182327270508, |
|
0.01963417625427246, |
|
0.01969049644470215, |
|
0.01969152069091797, |
|
0.019937280654907227, |
|
0.020593664169311524, |
|
0.02004377555847168, |
|
0.01964646339416504, |
|
0.019786752700805665, |
|
0.019959808349609375, |
|
0.02002124786376953, |
|
0.020336639404296874, |
|
0.019981311798095702, |
|
0.019937280654907227, |
|
0.020549631118774413, |
|
0.02004582405090332, |
|
0.01968332862854004, |
|
0.0198154239654541, |
|
0.019817472457885742, |
|
0.01982975959777832, |
|
0.019895296096801757, |
|
0.0198287353515625, |
|
0.01987276840209961, |
|
0.01983795166015625, |
|
0.01982876777648926, |
|
0.02011952018737793, |
|
0.01991072082519531, |
|
0.019884992599487304, |
|
0.019981311798095702, |
|
0.020154367446899413, |
|
0.01988403129577637, |
|
0.0198287353515625, |
|
0.019760128021240234, |
|
0.019794944763183595, |
|
0.01906073570251465, |
|
0.01941094398498535, |
|
0.01924403190612793, |
|
0.01925734329223633, |
|
0.0192491512298584, |
|
0.01923276710510254, |
|
0.019310592651367187, |
|
0.01923686408996582, |
|
0.01924403190612793, |
|
0.01905561637878418, |
|
0.019021823883056642, |
|
0.019001344680786132, |
|
0.018938880920410156, |
|
0.01899212837219238, |
|
0.01897881507873535, |
|
0.01900441551208496, |
|
0.01900851249694824, |
|
0.01902079963684082, |
|
0.01902387237548828, |
|
0.01902284812927246, |
|
0.01900441551208496, |
|
0.018998271942138673, |
|
0.018980863571166993, |
|
0.01902796745300293, |
|
0.01903923225402832, |
|
0.019074047088623047, |
|
0.01904537582397461, |
|
0.01902592086791992, |
|
0.021561344146728514, |
|
0.020596736907958983, |
|
0.019965951919555663, |
|
0.01986457633972168, |
|
0.01986662483215332, |
|
0.019834880828857423, |
|
0.019842048645019532, |
|
0.020100095748901366, |
|
0.019976192474365235, |
|
0.019886079788208007, |
|
0.0200898551940918, |
|
0.01989017677307129, |
|
0.01902592086791992, |
|
0.019013631820678712, |
|
0.019074047088623047, |
|
0.018974720001220705, |
|
0.019005439758300782, |
|
0.018989055633544923, |
|
0.01903615951538086, |
|
0.019024927139282225, |
|
0.020387807846069337, |
|
0.020207616806030275, |
|
0.020051967620849608, |
|
0.020016128540039063, |
|
0.020346879959106445 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.50438617773498 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |