|
{ |
|
"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": "9578c2597e2d88b6f0b304b5a05864fd613ddcc1", |
|
"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.886848, |
|
"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.6247099609375, |
|
"mean": 11.6247099609375, |
|
"stdev": 0.0, |
|
"p50": 11.6247099609375, |
|
"p90": 11.6247099609375, |
|
"p95": 11.6247099609375, |
|
"p99": 11.6247099609375, |
|
"values": [ |
|
11.6247099609375 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1714.958336, |
|
"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.041375551223754886, |
|
"mean": 0.020687775611877443, |
|
"stdev": 3.196811676025278e-05, |
|
"p50": 0.020687775611877443, |
|
"p90": 0.020713350105285643, |
|
"p95": 0.02071654691696167, |
|
"p99": 0.02071910436630249, |
|
"values": [ |
|
0.02065580749511719, |
|
0.020719743728637694 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 338.3640721615861 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1769.074688, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5031.801344 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.00892724609375, |
|
"mean": 2.504463623046875, |
|
"stdev": 0.01867016601562499, |
|
"p50": 2.504463623046875, |
|
"p90": 2.519399755859375, |
|
"p95": 2.5212667724609372, |
|
"p99": 2.5227603857421874, |
|
"values": [ |
|
2.5231337890625, |
|
2.48579345703125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.7094608327729 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 5.008598026275633, |
|
"mean": 0.019718889867226908, |
|
"stdev": 0.0004935351444897931, |
|
"p50": 0.019902976036071777, |
|
"p90": 0.020130918502807616, |
|
"p95": 0.020281190395355225, |
|
"p99": 0.02115054573059082, |
|
"values": [ |
|
0.01946828842163086, |
|
0.019903488159179687, |
|
0.019912704467773438, |
|
0.019943424224853516, |
|
0.019929088592529298, |
|
0.019900415420532228, |
|
0.019917823791503905, |
|
0.01988403129577637, |
|
0.0198604793548584, |
|
0.021011455535888672, |
|
0.020000768661499024, |
|
0.019810304641723633, |
|
0.01983180809020996, |
|
0.019939327239990236, |
|
0.019894271850585937, |
|
0.02008166313171387, |
|
0.019929088592529298, |
|
0.019902463912963866, |
|
0.019940351486206053, |
|
0.019895296096801757, |
|
0.020239360809326173, |
|
0.02001817512512207, |
|
0.019878911972045898, |
|
0.020015104293823242, |
|
0.019655679702758787, |
|
0.019917823791503905, |
|
0.019949567794799804, |
|
0.020158464431762696, |
|
0.019982336044311523, |
|
0.019992576599121094, |
|
0.019933183670043944, |
|
0.0199332160949707, |
|
0.019948511123657225, |
|
0.019928064346313477, |
|
0.01991372871398926, |
|
0.019843072891235353, |
|
0.019878911972045898, |
|
0.01985638427734375, |
|
0.019943424224853516, |
|
0.019910655975341796, |
|
0.019903488159179687, |
|
0.01988096046447754, |
|
0.02005504035949707, |
|
0.019952640533447266, |
|
0.01985740852355957, |
|
0.019899391174316407, |
|
0.019990528106689453, |
|
0.01985024070739746, |
|
0.02027724838256836, |
|
0.019951616287231445, |
|
0.020001792907714845, |
|
0.019412992477416992, |
|
0.021355520248413085, |
|
0.020316160202026368, |
|
0.02003558349609375, |
|
0.01990553665161133, |
|
0.0198973445892334, |
|
0.01999667167663574, |
|
0.019946495056152345, |
|
0.02005606460571289, |
|
0.019997695922851562, |
|
0.01983078384399414, |
|
0.02000383949279785, |
|
0.02001203155517578, |
|
0.02011238479614258, |
|
0.020107263565063475, |
|
0.020017152786254884, |
|
0.020067327499389647, |
|
0.02004684829711914, |
|
0.020051967620849608, |
|
0.020017152786254884, |
|
0.020025344848632814, |
|
0.02003558349609375, |
|
0.020106239318847655, |
|
0.020076543807983398, |
|
0.02002739143371582, |
|
0.02004172706604004, |
|
0.02010419273376465, |
|
0.020076543807983398, |
|
0.020059135437011717, |
|
0.02011136054992676, |
|
0.020091903686523437, |
|
0.0200130558013916, |
|
0.020023296356201172, |
|
0.02002841567993164, |
|
0.020025344848632814, |
|
0.02005504035949707, |
|
0.02004991912841797, |
|
0.019994623184204103, |
|
0.019919872283935547, |
|
0.019747840881347657, |
|
0.01987174415588379, |
|
0.019992576599121094, |
|
0.02000383949279785, |
|
0.02002841567993164, |
|
0.020025344848632814, |
|
0.02002739143371582, |
|
0.02003455924987793, |
|
0.02007756805419922, |
|
0.020180992126464844, |
|
0.020048896789550782, |
|
0.0194201602935791, |
|
0.019305471420288087, |
|
0.019350528717041016, |
|
0.019315711975097655, |
|
0.019284992218017577, |
|
0.01926553535461426, |
|
0.019311616897583008, |
|
0.019318784713745117, |
|
0.019296255111694336, |
|
0.01923993682861328, |
|
0.01921023941040039, |
|
0.019088384628295898, |
|
0.019005439758300782, |
|
0.0191016960144043, |
|
0.01908531188964844, |
|
0.019152896881103516, |
|
0.019357696533203125, |
|
0.019092479705810548, |
|
0.01906073570251465, |
|
0.019087360382080077, |
|
0.020152320861816408, |
|
0.019787776947021486, |
|
0.019668991088867188, |
|
0.019771392822265626, |
|
0.019773439407348634, |
|
0.019896320343017578, |
|
0.01942425537109375, |
|
0.019555328369140625, |
|
0.019851264953613282, |
|
0.01984921646118164, |
|
0.019587072372436523, |
|
0.019708927154541016, |
|
0.01985740852355957, |
|
0.019817472457885742, |
|
0.019574783325195313, |
|
0.018920448303222655, |
|
0.01889587211608887, |
|
0.018911231994628908, |
|
0.018966527938842775, |
|
0.018961408615112304, |
|
0.018926591873168946, |
|
0.018950143814086915, |
|
0.018905088424682616, |
|
0.018953216552734374, |
|
0.01902592086791992, |
|
0.018976768493652343, |
|
0.01887129592895508, |
|
0.019133440017700197, |
|
0.018968576431274413, |
|
0.018979839324951172, |
|
0.018924543380737305, |
|
0.01897881507873535, |
|
0.01898700714111328, |
|
0.01908531188964844, |
|
0.019112960815429687, |
|
0.018961408615112304, |
|
0.018962432861328125, |
|
0.018997247695922852, |
|
0.018935808181762694, |
|
0.018917375564575196, |
|
0.018898944854736328, |
|
0.01906892776489258, |
|
0.019134464263916014, |
|
0.019145727157592773, |
|
0.019058687210083008, |
|
0.018951168060302736, |
|
0.019153919219970703, |
|
0.019117055892944337, |
|
0.019191808700561523, |
|
0.019164159774780275, |
|
0.01903206443786621, |
|
0.01902387237548828, |
|
0.018985984802246093, |
|
0.018924543380737305, |
|
0.019171327590942384, |
|
0.019144704818725586, |
|
0.01922150421142578, |
|
0.019136512756347656, |
|
0.019269632339477538, |
|
0.019142656326293944, |
|
0.019131391525268555, |
|
0.019183616638183593, |
|
0.01920204734802246, |
|
0.019283967971801756, |
|
0.019269632339477538, |
|
0.01926144027709961, |
|
0.019292160034179686, |
|
0.01924608039855957, |
|
0.01926348876953125, |
|
0.019277824401855468, |
|
0.019289087295532227, |
|
0.01927987289428711, |
|
0.019317760467529296, |
|
0.019338239669799806, |
|
0.01927884864807129, |
|
0.019283967971801756, |
|
0.019363840103149413, |
|
0.02165657615661621, |
|
0.02030899238586426, |
|
0.020183040618896485, |
|
0.01943961524963379, |
|
0.02012876892089844, |
|
0.020880384445190428, |
|
0.02012876892089844, |
|
0.02007961654663086, |
|
0.02003763198852539, |
|
0.020131839752197265, |
|
0.020060159683227538, |
|
0.020050943374633787, |
|
0.02002739143371582, |
|
0.020059135437011717, |
|
0.0200447998046875, |
|
0.020124671936035156, |
|
0.020140031814575195, |
|
0.019991552352905274, |
|
0.019320831298828126, |
|
0.019289087295532227, |
|
0.01924300765991211, |
|
0.019949567794799804, |
|
0.02001408004760742, |
|
0.02001408004760742, |
|
0.019983360290527344, |
|
0.020530176162719727, |
|
0.020137983322143553, |
|
0.02002022361755371, |
|
0.0200898551940918, |
|
0.0200263671875, |
|
0.02002022361755371, |
|
0.02007244873046875, |
|
0.02023526382446289, |
|
0.020131839752197265, |
|
0.02007756805419922, |
|
0.02001203155517578, |
|
0.02007040023803711, |
|
0.02005504035949707, |
|
0.02004172706604004, |
|
0.02004172706604004, |
|
0.02063155174255371, |
|
0.021307392120361326, |
|
0.020254720687866212, |
|
0.02046668815612793, |
|
0.020265983581542968, |
|
0.02003865623474121, |
|
0.020578304290771485, |
|
0.020495359420776366, |
|
0.020288511276245116, |
|
0.020114431381225584, |
|
0.02008678436279297, |
|
0.020107263565063475, |
|
0.01943756866455078, |
|
0.019289087295532227, |
|
0.01926553535461426, |
|
0.019216384887695313 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.71279401291322 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |