|
{ |
|
"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-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": "c409cd81777fb27aadc043ed3d8339dbc020fb3b", |
|
"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": 1320.300544, |
|
"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.497087890625, |
|
"mean": 11.497087890625, |
|
"stdev": 0.0, |
|
"p50": 11.497087890625, |
|
"p90": 11.497087890625, |
|
"p95": 11.497087890625, |
|
"p99": 11.497087890625, |
|
"values": [ |
|
11.497087890625 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1715.539968, |
|
"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.04098150444030761, |
|
"mean": 0.020490752220153806, |
|
"stdev": 8.854389190673764e-05, |
|
"p50": 0.020490752220153806, |
|
"p90": 0.020561587333679198, |
|
"p95": 0.02057044172286987, |
|
"p99": 0.02057752523422241, |
|
"values": [ |
|
0.02040220832824707, |
|
0.020579296112060545 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 341.61752212859744 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1770.237952, |
|
"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.871098388671875, |
|
"mean": 2.4355491943359375, |
|
"stdev": 0.006415649414062585, |
|
"p50": 2.4355491943359375, |
|
"p90": 2.4406817138671877, |
|
"p95": 2.4413232788085937, |
|
"p99": 2.441836530761719, |
|
"values": [ |
|
2.44196484375, |
|
2.429133544921875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 52.14429677517849 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 4.870785030364991, |
|
"mean": 0.019176319017185, |
|
"stdev": 0.00022060108736730207, |
|
"p50": 0.019130879402160645, |
|
"p90": 0.019368038749694824, |
|
"p95": 0.019800064086914062, |
|
"p99": 0.01993941976547241, |
|
"values": [ |
|
0.018930688858032226, |
|
0.018938880920410156, |
|
0.01900851249694824, |
|
0.019117055892944337, |
|
0.01898396873474121, |
|
0.019166175842285155, |
|
0.018980863571166993, |
|
0.019140607833862306, |
|
0.01900339126586914, |
|
0.019103744506835937, |
|
0.0190699520111084, |
|
0.019086336135864256, |
|
0.01904640007019043, |
|
0.019019775390625, |
|
0.019084287643432618, |
|
0.01903923225402832, |
|
0.01920102310180664, |
|
0.01903411293029785, |
|
0.01903308868408203, |
|
0.019161088943481445, |
|
0.019050495147705078, |
|
0.019075071334838867, |
|
0.01902592086791992, |
|
0.01900851249694824, |
|
0.019170303344726563, |
|
0.01925632095336914, |
|
0.019019775390625, |
|
0.018988031387329102, |
|
0.01899519920349121, |
|
0.018964479446411133, |
|
0.019123199462890626, |
|
0.019001344680786132, |
|
0.01900339126586914, |
|
0.019170303344726563, |
|
0.01900032043457031, |
|
0.019070976257324217, |
|
0.01905766487121582, |
|
0.01898700714111328, |
|
0.01938739204406738, |
|
0.01925119972229004, |
|
0.019030080795288087, |
|
0.019001312255859375, |
|
0.019040224075317382, |
|
0.019002368927001953, |
|
0.019314687728881837, |
|
0.019005439758300782, |
|
0.018998271942138673, |
|
0.01901260757446289, |
|
0.018997247695922852, |
|
0.01924505615234375, |
|
0.01919692802429199, |
|
0.019164159774780275, |
|
0.018981887817382814, |
|
0.019009536743164062, |
|
0.018975744247436522, |
|
0.018980863571166993, |
|
0.019150848388671874, |
|
0.019094528198242186, |
|
0.019228736877441407, |
|
0.019156959533691405, |
|
0.01912419128417969, |
|
0.01914575958251953, |
|
0.019194847106933595, |
|
0.019290111541748048, |
|
0.01925017547607422, |
|
0.019138559341430664, |
|
0.019134464263916014, |
|
0.019176448822021484, |
|
0.01918156814575195, |
|
0.01942630386352539, |
|
0.019176448822021484, |
|
0.019111936569213867, |
|
0.019149824142456053, |
|
0.019164159774780275, |
|
0.01927987289428711, |
|
0.01928294372558594, |
|
0.019122175216674805, |
|
0.019090431213378906, |
|
0.019050495147705078, |
|
0.0190699520111084, |
|
0.01906790351867676, |
|
0.01920512008666992, |
|
0.019147775650024415, |
|
0.019118080139160155, |
|
0.019091455459594727, |
|
0.019086336135864256, |
|
0.0191016960144043, |
|
0.019375104904174805, |
|
0.01909350395202637, |
|
0.0190515193939209, |
|
0.019111936569213867, |
|
0.019095552444458007, |
|
0.019111936569213867, |
|
0.019297279357910157, |
|
0.019204095840454103, |
|
0.01923891258239746, |
|
0.019142656326293944, |
|
0.019105791091918945, |
|
0.019146751403808594, |
|
0.01944780731201172, |
|
0.019192832946777344, |
|
0.01962188720703125, |
|
0.019198976516723632, |
|
0.019160064697265625, |
|
0.018962432861328125, |
|
0.018959360122680666, |
|
0.0191016960144043, |
|
0.019701759338378907, |
|
0.01984102439880371, |
|
0.019800064086914062, |
|
0.019750911712646483, |
|
0.01982464027404785, |
|
0.019916799545288084, |
|
0.019751935958862304, |
|
0.019755008697509766, |
|
0.01983078384399414, |
|
0.019800064086914062, |
|
0.01980723190307617, |
|
0.019760128021240234, |
|
0.01980620765686035, |
|
0.01997209548950195, |
|
0.019975168228149414, |
|
0.019800064086914062, |
|
0.019801088333129883, |
|
0.01981439971923828, |
|
0.019788799285888673, |
|
0.019964927673339843, |
|
0.019014656066894533, |
|
0.018935808181762694, |
|
0.019002368927001953, |
|
0.01902899169921875, |
|
0.01929523277282715, |
|
0.018998271942138673, |
|
0.01897881507873535, |
|
0.019001344680786132, |
|
0.018994176864624023, |
|
0.018966527938842775, |
|
0.019153919219970703, |
|
0.018983936309814452, |
|
0.019017728805541992, |
|
0.01921843147277832, |
|
0.01905254364013672, |
|
0.018998336791992188, |
|
0.018997184753417967, |
|
0.01901260757446289, |
|
0.0190248966217041, |
|
0.019175424575805664, |
|
0.019006464004516603, |
|
0.01903308868408203, |
|
0.0190248966217041, |
|
0.01902592086791992, |
|
0.018994176864624023, |
|
0.019307519912719725, |
|
0.019066879272460938, |
|
0.019188735961914064, |
|
0.018944000244140623, |
|
0.01902284812927246, |
|
0.019018848419189452, |
|
0.01901148796081543, |
|
0.01906892776489258, |
|
0.019134464263916014, |
|
0.01902899169921875, |
|
0.019741695404052736, |
|
0.01904742431640625, |
|
0.019014656066894533, |
|
0.019132415771484376, |
|
0.019198976516723632, |
|
0.019136512756347656, |
|
0.019075071334838867, |
|
0.019153919219970703, |
|
0.01906892776489258, |
|
0.019152896881103516, |
|
0.01900748825073242, |
|
0.019057695388793944, |
|
0.01913033676147461, |
|
0.018991104125976564, |
|
0.018988031387329102, |
|
0.018990079879760743, |
|
0.018974720001220705, |
|
0.018986015319824218, |
|
0.01917027282714844, |
|
0.019013631820678712, |
|
0.018990079879760743, |
|
0.01900851249694824, |
|
0.019154943466186524, |
|
0.019194879531860352, |
|
0.019309568405151366, |
|
0.019132415771484376, |
|
0.019082239151000976, |
|
0.019160064697265625, |
|
0.019154943466186524, |
|
0.019351551055908203, |
|
0.01928704071044922, |
|
0.019178495407104493, |
|
0.019180543899536134, |
|
0.019186687469482423, |
|
0.019131391525268555, |
|
0.019212287902832033, |
|
0.01907711982727051, |
|
0.01906073570251465, |
|
0.01927168083190918, |
|
0.01902694320678711, |
|
0.019130367279052735, |
|
0.019072000503540038, |
|
0.019072000503540038, |
|
0.01904537582397461, |
|
0.01924608039855957, |
|
0.01927987289428711, |
|
0.019072000503540038, |
|
0.019132415771484376, |
|
0.019107839584350587, |
|
0.019099647521972657, |
|
0.01927884864807129, |
|
0.019099647521972657, |
|
0.019119104385375976, |
|
0.019104768753051758, |
|
0.019147775650024415, |
|
0.019136512756347656, |
|
0.019132415771484376, |
|
0.019294208526611328, |
|
0.019145727157592773, |
|
0.019107839584350587, |
|
0.019127296447753905, |
|
0.01907711982727051, |
|
0.019333152770996093, |
|
0.01930953598022461, |
|
0.019151872634887695, |
|
0.01922047996520996, |
|
0.01923583984375, |
|
0.019166208267211913, |
|
0.019325952529907226, |
|
0.01927168083190918, |
|
0.019143680572509765, |
|
0.019158016204833983, |
|
0.019127296447753905, |
|
0.019131391525268555, |
|
0.01923072052001953, |
|
0.019325952529907226, |
|
0.019140607833862306, |
|
0.019134464263916014, |
|
0.019146751403808594, |
|
0.019143680572509765, |
|
0.01926246452331543, |
|
0.019134464263916014, |
|
0.01929113578796387, |
|
0.019130367279052735, |
|
0.019113983154296875, |
|
0.019137535095214844, |
|
0.019173376083374022, |
|
0.019294208526611328, |
|
0.01931372833251953, |
|
0.01914771270751953, |
|
0.019177471160888672, |
|
0.019164159774780275 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 52.14765143945731 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |