|
{ |
|
"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": "static", |
|
"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": "eed9ed679878ada2f6d2eefccdbda368cabc88b1", |
|
"accelerate_version": "0.32.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": 1754.312704, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5036.936192 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.04457942390441895, |
|
"mean": 0.022289711952209475, |
|
"stdev": 0.0002221593856811515, |
|
"p50": 0.022289711952209475, |
|
"p90": 0.022467439460754395, |
|
"p95": 0.02248965539932251, |
|
"p99": 0.022507428150177002, |
|
"values": [ |
|
0.02206755256652832, |
|
0.022511871337890624 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 314.04622971388926 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1754.329088, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5036.936704 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.197515380859375, |
|
"mean": 2.5987576904296876, |
|
"stdev": 0.01779040527343745, |
|
"p50": 2.5987576904296876, |
|
"p90": 2.6129900146484375, |
|
"p95": 2.614769055175781, |
|
"p99": 2.616192287597656, |
|
"values": [ |
|
2.616548095703125, |
|
2.58096728515625 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.86950425108752 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.199338497161862, |
|
"mean": 0.020550745048070616, |
|
"stdev": 0.001485052481425994, |
|
"p50": 0.020602752685546875, |
|
"p90": 0.020843519592285156, |
|
"p95": 0.020971519470214844, |
|
"p99": 0.021587354431152343, |
|
"values": [ |
|
0.022055936813354493, |
|
0.020694015502929687, |
|
0.019979263305664064, |
|
0.01990553665161133, |
|
0.02059775924682617, |
|
0.02082099151611328, |
|
0.02102579116821289, |
|
0.020137983322143553, |
|
0.019955711364746095, |
|
0.020600831985473633, |
|
0.020780031204223632, |
|
0.020686847686767578, |
|
0.02051584053039551, |
|
0.02040012741088867, |
|
0.020332544326782227, |
|
0.02021990394592285, |
|
0.020479999542236327, |
|
0.020752384185791017, |
|
0.02001919937133789, |
|
0.020717567443847656, |
|
0.021572608947753907, |
|
0.02086604881286621, |
|
0.019985408782958985, |
|
0.020007936477661133, |
|
0.019961856842041017, |
|
0.019961952209472656, |
|
0.019948448181152344, |
|
0.02004991912841797, |
|
0.019994623184204103, |
|
0.019919872283935547, |
|
0.02004275131225586, |
|
0.019975168228149414, |
|
0.020024320602416993, |
|
0.02005401611328125, |
|
0.02003865623474121, |
|
0.020445184707641603, |
|
0.021414911270141602, |
|
0.02069606399536133, |
|
0.020756479263305663, |
|
0.020145151138305666, |
|
0.02066022491455078, |
|
0.019916799545288084, |
|
0.020051967620849608, |
|
0.020001792907714845, |
|
0.019931135177612306, |
|
0.02084556770324707, |
|
0.020786176681518553, |
|
0.02085785675048828, |
|
0.021021696090698243, |
|
0.020971519470214844, |
|
0.02101043128967285, |
|
0.020937728881835937, |
|
0.02066329574584961, |
|
0.020626432418823244, |
|
0.020711423873901368, |
|
0.02061516761779785, |
|
0.020723712921142577, |
|
0.020716543197631835, |
|
0.02078108787536621, |
|
0.020603872299194335, |
|
0.020928512573242186, |
|
0.020752384185791017, |
|
0.020799488067626954, |
|
0.02058956718444824, |
|
0.02064896011352539, |
|
0.020700159072875975, |
|
0.020785152435302736, |
|
0.020585472106933594, |
|
0.02057318305969238, |
|
0.021061632156372072, |
|
0.02064793586730957, |
|
0.020445184707641603, |
|
0.0206878719329834, |
|
0.020585472106933594, |
|
0.020750335693359375, |
|
0.02064384078979492, |
|
0.02071244812011719, |
|
0.02065510368347168, |
|
0.0208353271484375, |
|
0.020971519470214844, |
|
0.02082508850097656, |
|
0.02084556770324707, |
|
0.020787200927734374, |
|
0.02068070411682129, |
|
0.020718591690063477, |
|
0.020758527755737305, |
|
0.02064384078979492, |
|
0.02066431999206543, |
|
0.020720640182495118, |
|
0.02058457565307617, |
|
0.020568960189819335, |
|
0.02066739273071289, |
|
0.020582399368286132, |
|
0.020653055191040038, |
|
0.020580352783203124, |
|
0.02030899238586426, |
|
0.020462591171264647, |
|
0.02067558479309082, |
|
0.020900863647460938, |
|
0.020586496353149415, |
|
0.02063871955871582, |
|
0.020588544845581053, |
|
0.020694015502929687, |
|
0.020793344497680662, |
|
0.020633600234985353, |
|
0.02063564872741699, |
|
0.020730880737304686, |
|
0.020717567443847656, |
|
0.020810752868652343, |
|
0.02064896011352539, |
|
0.020759552001953126, |
|
0.02069708824157715, |
|
0.020747264862060546, |
|
0.02064691162109375, |
|
0.020892704010009765, |
|
0.020643808364868163, |
|
0.020619264602661135, |
|
0.020603904724121092, |
|
0.020737024307250978, |
|
0.020754432678222655, |
|
0.021540864944458008, |
|
0.020923391342163086, |
|
0.020731903076171874, |
|
0.020741119384765624, |
|
0.020702207565307617, |
|
0.020647104263305665, |
|
0.04330271911621094, |
|
0.020743167877197266, |
|
0.02065715217590332, |
|
0.020685823440551757, |
|
0.02063974380493164, |
|
0.020798463821411133, |
|
0.02063667106628418, |
|
0.02064384078979492, |
|
0.020649984359741212, |
|
0.020937728881835937, |
|
0.020641792297363282, |
|
0.02062131118774414, |
|
0.020677631378173827, |
|
0.02062233543395996, |
|
0.020694015502929687, |
|
0.02067046356201172, |
|
0.020164608001708984, |
|
0.020331520080566406, |
|
0.020706304550170897, |
|
0.020956159591674805, |
|
0.020792320251464845, |
|
0.020684799194335936, |
|
0.0206561279296875, |
|
0.02088960075378418, |
|
0.021603328704833984, |
|
0.021173248291015623, |
|
0.02069811248779297, |
|
0.02063155174255371, |
|
0.020591615676879883, |
|
0.020577280044555665, |
|
0.020642816543579103, |
|
0.02067251205444336, |
|
0.020607999801635742, |
|
0.020642816543579103, |
|
0.02062950325012207, |
|
0.020586496353149415, |
|
0.020593664169311524, |
|
0.020596736907958983, |
|
0.020556800842285155, |
|
0.020550655364990233, |
|
0.02002022361755371, |
|
0.01993744087219238, |
|
0.019947359085083008, |
|
0.020017152786254884, |
|
0.019968191146850587, |
|
0.020066112518310548, |
|
0.02004172706604004, |
|
0.019969024658203126, |
|
0.019978239059448243, |
|
0.019927040100097656, |
|
0.019987455368041994, |
|
0.020668415069580077, |
|
0.02059775924682617, |
|
0.02081996726989746, |
|
0.020690944671630858, |
|
0.02069708824157715, |
|
0.020674560546875, |
|
0.020831232070922853, |
|
0.02067148780822754, |
|
0.02065407943725586, |
|
0.020797439575195312, |
|
0.020032512664794923, |
|
0.020057088851928712, |
|
0.020000768661499024, |
|
0.019999744415283204, |
|
0.020031648635864256, |
|
0.020076383590698244, |
|
0.020190208435058594, |
|
0.019983360290527344, |
|
0.020067327499389647, |
|
0.019992576599121094, |
|
0.020040704727172853, |
|
0.02002124786376953, |
|
0.020009983062744142, |
|
0.020000768661499024, |
|
0.02001203155517578, |
|
0.019979263305664064, |
|
0.019984384536743165, |
|
0.02002022361755371, |
|
0.019984384536743165, |
|
0.0200263671875, |
|
0.02006118392944336, |
|
0.020057088851928712, |
|
0.019961856842041017, |
|
0.020031488418579102, |
|
0.01999772834777832, |
|
0.020003807067871093, |
|
0.020040704727172853, |
|
0.0200130558013916, |
|
0.02006220817565918, |
|
0.019941375732421874, |
|
0.020133888244628906, |
|
0.020068351745605468, |
|
0.020110336303710938, |
|
0.019969024658203126, |
|
0.02001728057861328, |
|
0.019996639251708984, |
|
0.01997916793823242, |
|
0.019981439590454102, |
|
0.020602752685546875, |
|
0.020566015243530272, |
|
0.02006630325317383, |
|
0.019968000411987305, |
|
0.019971103668212892, |
|
0.019940319061279296, |
|
0.020173824310302735, |
|
0.02000486373901367, |
|
0.020015104293823242, |
|
0.019986431121826173, |
|
0.019958784103393554, |
|
0.019992576599121094, |
|
0.019978239059448243, |
|
0.019976192474365235, |
|
0.020053087234497072, |
|
0.02015635108947754, |
|
0.019811296463012697, |
|
0.019877887725830077, |
|
0.019956735610961913, |
|
0.019968000411987305, |
|
0.019945472717285157, |
|
0.02008883285522461, |
|
0.02126950454711914, |
|
0.02070425605773926, |
|
0.020592639923095703, |
|
0.02065510368347168, |
|
0.020610048294067384, |
|
0.020558847427368163 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.66003629848368 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |