|
{ |
|
"config": { |
|
"name": "pytorch_generate", |
|
"backend": { |
|
"name": "pytorch", |
|
"version": "2.3.0+cu121", |
|
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", |
|
"task": "text-generation", |
|
"library": "transformers", |
|
"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": {}, |
|
"hub_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, |
|
"latency": true, |
|
"memory": 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", |
|
"start_method": "spawn" |
|
}, |
|
"environment": { |
|
"cpu": " AMD EPYC 7R32", |
|
"cpu_count": 16, |
|
"cpu_ram_mb": 66697.29792, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.217-205.860.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.2.1", |
|
"optimum_benchmark_commit": null, |
|
"transformers_version": "4.42.0.dev0", |
|
"transformers_commit": "bdf36dcd48106a4a0278ed7f3cc26cd65ab7b066", |
|
"accelerate_version": "0.31.0.dev0", |
|
"accelerate_commit": null, |
|
"diffusers_version": null, |
|
"diffusers_commit": null, |
|
"optimum_version": "1.21.0.dev0", |
|
"optimum_commit": null, |
|
"timm_version": "0.9.16", |
|
"timm_commit": null, |
|
"peft_version": "0.11.2.dev0", |
|
"peft_commit": null |
|
} |
|
}, |
|
"report": { |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1737.146368, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5034.576896 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.040439361572265624, |
|
"mean": 0.020219680786132812, |
|
"stdev": 3.6479949951172264e-05, |
|
"p50": 0.020219680786132812, |
|
"p90": 0.02024886474609375, |
|
"p95": 0.020252512741088868, |
|
"p99": 0.020255431137084962, |
|
"values": [ |
|
0.020256160736083984, |
|
0.02018320083618164 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 346.19735464868387 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1737.220096, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5034.577408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.90900634765625, |
|
"mean": 2.454503173828125, |
|
"stdev": 0.01696118164062499, |
|
"p50": 2.454503173828125, |
|
"p90": 2.468072119140625, |
|
"p95": 2.4697682373046876, |
|
"p99": 2.4711251318359375, |
|
"values": [ |
|
2.47146435546875, |
|
2.4375419921875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.74163201505523 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.909569025039672, |
|
"mean": 0.019405411166164715, |
|
"stdev": 0.0013201553916386353, |
|
"p50": 0.019281919479370118, |
|
"p90": 0.01968680953979492, |
|
"p95": 0.019825459671020507, |
|
"p99": 0.020756275405883783, |
|
"values": [ |
|
0.020468736648559572, |
|
0.01963724708557129, |
|
0.01960857582092285, |
|
0.01986355209350586, |
|
0.01962495994567871, |
|
0.01943142318725586, |
|
0.019489791870117186, |
|
0.019326976776123047, |
|
0.01944576072692871, |
|
0.01946828842163086, |
|
0.01947750473022461, |
|
0.01945907211303711, |
|
0.019406848907470704, |
|
0.019482624053955077, |
|
0.0194334716796875, |
|
0.01947238349914551, |
|
0.01958502388000488, |
|
0.019467264175415038, |
|
0.01928704071044922, |
|
0.019207168579101562, |
|
0.019313663482666017, |
|
0.019508224487304687, |
|
0.019533824920654298, |
|
0.019481599807739256, |
|
0.019351551055908203, |
|
0.019479551315307618, |
|
0.019559423446655275, |
|
0.019713024139404296, |
|
0.019562496185302734, |
|
0.019607551574707033, |
|
0.019384319305419923, |
|
0.019537919998168944, |
|
0.019491840362548828, |
|
0.01946112060546875, |
|
0.01948467254638672, |
|
0.01922559928894043, |
|
0.019389440536499023, |
|
0.01945302391052246, |
|
0.019257247924804686, |
|
0.01919692802429199, |
|
0.019188735961914064, |
|
0.01942630386352539, |
|
0.01969152069091797, |
|
0.019339263916015623, |
|
0.019562496185302734, |
|
0.01926655960083008, |
|
0.01905254364013672, |
|
0.019309568405151366, |
|
0.019438592910766602, |
|
0.019603456497192383, |
|
0.019826688766479493, |
|
0.019159040451049804, |
|
0.0192491512298584, |
|
0.019092479705810548, |
|
0.019350528717041016, |
|
0.01919692802429199, |
|
0.019127296447753905, |
|
0.019615743637084963, |
|
0.019341312408447265, |
|
0.01963929557800293, |
|
0.01962495994567871, |
|
0.01962393569946289, |
|
0.01970278358459473, |
|
0.019337215423583985, |
|
0.01968435287475586, |
|
0.019567615509033204, |
|
0.01924608039855957, |
|
0.01967820739746094, |
|
0.01963520050048828, |
|
0.01961676788330078, |
|
0.019620864868164063, |
|
0.019520511627197267, |
|
0.019396608352661132, |
|
0.019340288162231444, |
|
0.019340288162231444, |
|
0.01941606330871582, |
|
0.01967103958129883, |
|
0.019604480743408204, |
|
0.019590143203735352, |
|
0.019590143203735352, |
|
0.01968435287475586, |
|
0.019768320083618163, |
|
0.019173376083374022, |
|
0.019143680572509765, |
|
0.019066879272460938, |
|
0.019021823883056642, |
|
0.01904025650024414, |
|
0.018935808181762694, |
|
0.018869247436523438, |
|
0.01884262466430664, |
|
0.018921472549438476, |
|
0.018881536483764647, |
|
0.018927616119384767, |
|
0.018882560729980468, |
|
0.01907411193847656, |
|
0.019065792083740235, |
|
0.01903411293029785, |
|
0.019773439407348634, |
|
0.019597312927246095, |
|
0.019577856063842772, |
|
0.019146751403808594, |
|
0.019952640533447266, |
|
0.019139583587646485, |
|
0.018912256240844725, |
|
0.019527679443359376, |
|
0.02016972732543945, |
|
0.021200895309448242, |
|
0.01979084777832031, |
|
0.019521535873413084, |
|
0.019711999893188475, |
|
0.019568639755249022, |
|
0.019701759338378907, |
|
0.01978265571594238, |
|
0.019594240188598632, |
|
0.0196495361328125, |
|
0.019940351486206053, |
|
0.019698688507080078, |
|
0.019337215423583985, |
|
0.019474431991577147, |
|
0.019587072372436523, |
|
0.019597312927246095, |
|
0.019577856063842772, |
|
0.01947238349914551, |
|
0.019604480743408204, |
|
0.019312639236450196, |
|
0.01963724708557129, |
|
0.03964825439453125, |
|
0.019215360641479492, |
|
0.019191808700561523, |
|
0.019281919479370118, |
|
0.01922150421142578, |
|
0.01922662353515625, |
|
0.01924095916748047, |
|
0.01921433639526367, |
|
0.019191808700561523, |
|
0.018795520782470702, |
|
0.019072000503540038, |
|
0.018746368408203123, |
|
0.018734079360961914, |
|
0.01880575942993164, |
|
0.01924812889099121, |
|
0.019219455718994142, |
|
0.01920614433288574, |
|
0.018759679794311524, |
|
0.01884569549560547, |
|
0.019174400329589843, |
|
0.018962432861328125, |
|
0.019062784194946288, |
|
0.018693119049072265, |
|
0.018763776779174804, |
|
0.01905766487121582, |
|
0.01921331214904785, |
|
0.019208192825317383, |
|
0.019146751403808594, |
|
0.019208192825317383, |
|
0.019341312408447265, |
|
0.01988096046447754, |
|
0.01965465545654297, |
|
0.01943449592590332, |
|
0.01920921516418457, |
|
0.019355648040771483, |
|
0.018744319915771485, |
|
0.01943142318725586, |
|
0.019159040451049804, |
|
0.018954240798950195, |
|
0.018994176864624023, |
|
0.01923072052001953, |
|
0.019478527069091797, |
|
0.019401727676391603, |
|
0.019553279876708983, |
|
0.019346431732177736, |
|
0.019377151489257814, |
|
0.01947648048400879, |
|
0.01926553535461426, |
|
0.018817024230957033, |
|
0.019142656326293944, |
|
0.01943244743347168, |
|
0.01948876762390137, |
|
0.01944063949584961, |
|
0.01925529670715332, |
|
0.01901568031311035, |
|
0.01899212837219238, |
|
0.019687423706054686, |
|
0.01965260887145996, |
|
0.019171327590942384, |
|
0.019533824920654298, |
|
0.019408895492553712, |
|
0.01947750473022461, |
|
0.020051967620849608, |
|
0.02106777572631836, |
|
0.019963903427124022, |
|
0.01982464027404785, |
|
0.019526655197143555, |
|
0.0192225284576416, |
|
0.01882521629333496, |
|
0.018923519134521484, |
|
0.01923583984375, |
|
0.019538944244384765, |
|
0.019709951400756837, |
|
0.020274175643920898, |
|
0.019561471939086913, |
|
0.019083263397216797, |
|
0.019091455459594727, |
|
0.0190699520111084, |
|
0.01925836753845215, |
|
0.019109888076782225, |
|
0.019072000503540038, |
|
0.019109888076782225, |
|
0.01909760093688965, |
|
0.01906175994873047, |
|
0.0190515193939209, |
|
0.01904742431640625, |
|
0.019116031646728517, |
|
0.019116031646728517, |
|
0.0190248966217041, |
|
0.01901055908203125, |
|
0.019074047088623047, |
|
0.019095552444458007, |
|
0.019156991958618166, |
|
0.01906892776489258, |
|
0.019106815338134766, |
|
0.01904844856262207, |
|
0.01909350395202637, |
|
0.01903308868408203, |
|
0.01906585693359375, |
|
0.019283967971801756, |
|
0.019124223709106446, |
|
0.019091455459594727, |
|
0.01906892776489258, |
|
0.019125247955322267, |
|
0.01899519920349121, |
|
0.018885631561279297, |
|
0.018959360122680666, |
|
0.01901260757446289, |
|
0.01922047996520996, |
|
0.01904537582397461, |
|
0.019009536743164062, |
|
0.019058687210083008, |
|
0.01904742431640625, |
|
0.019056640625, |
|
0.01884876823425293, |
|
0.01883852767944336, |
|
0.01901875114440918, |
|
0.01905766487121582, |
|
0.01903206443786621, |
|
0.019082239151000976, |
|
0.019087423324584962, |
|
0.01888044738769531, |
|
0.01883955192565918, |
|
0.01902284812927246, |
|
0.018976768493652343, |
|
0.01904332733154297, |
|
0.01908940887451172 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.5320181282013 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |