|
{ |
|
"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.216-204.855.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": "48681e6e5ef08e5af8b3feb5683f044321605f1f", |
|
"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": 1705.181184, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5033.552896 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.038181695938110355, |
|
"mean": 0.019090847969055177, |
|
"stdev": 0.00028950405120849697, |
|
"p50": 0.019090847969055177, |
|
"p90": 0.019322451210021973, |
|
"p95": 0.019351401615142823, |
|
"p99": 0.019374561939239504, |
|
"values": [ |
|
0.019380352020263673, |
|
0.01880134391784668 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 366.66784059809555 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1705.312256, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5033.553408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.671938232421875, |
|
"mean": 2.3359691162109373, |
|
"stdev": 0.010532592773437655, |
|
"p50": 2.3359691162109373, |
|
"p90": 2.3443951904296876, |
|
"p95": 2.3454484497070314, |
|
"p99": 2.3462910571289064, |
|
"values": [ |
|
2.346501708984375, |
|
2.3254365234375 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 54.36715713348153 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.672020479202273, |
|
"mean": 0.018466484107518857, |
|
"stdev": 0.001207257285035993, |
|
"p50": 0.018326528549194337, |
|
"p90": 0.018824806594848635, |
|
"p95": 0.018910591888427735, |
|
"p99": 0.01941487632751465, |
|
"values": [ |
|
0.018897920608520507, |
|
0.019398656845092774, |
|
0.018861183166503905, |
|
0.01865305519104004, |
|
0.01863270378112793, |
|
0.018736127853393555, |
|
0.018618368148803712, |
|
0.01863065528869629, |
|
0.01849241638183594, |
|
0.018534400939941405, |
|
0.018696191787719727, |
|
0.018696191787719727, |
|
0.018905088424682616, |
|
0.018931711196899414, |
|
0.018682912826538087, |
|
0.01891433525085449, |
|
0.018908096313476563, |
|
0.01888768005371094, |
|
0.018921472549438476, |
|
0.018711551666259766, |
|
0.018603008270263673, |
|
0.018791423797607423, |
|
0.018715648651123046, |
|
0.018526208877563476, |
|
0.018507776260375978, |
|
0.018537471771240235, |
|
0.018705408096313478, |
|
0.018584575653076172, |
|
0.018637823104858398, |
|
0.01860403251647949, |
|
0.018865152359008788, |
|
0.018925567626953126, |
|
0.018885631561279297, |
|
0.01859584045410156, |
|
0.0188590087890625, |
|
0.0192993278503418, |
|
0.01943244743347168, |
|
0.019290111541748048, |
|
0.018682880401611326, |
|
0.018950143814086915, |
|
0.01859174346923828, |
|
0.018516992568969725, |
|
0.018569215774536133, |
|
0.018721792221069337, |
|
0.01862553596496582, |
|
0.018585599899291993, |
|
0.018546688079833985, |
|
0.01848422431945801, |
|
0.01839820861816406, |
|
0.01836851119995117, |
|
0.01856716728210449, |
|
0.018577407836914063, |
|
0.018307071685791015, |
|
0.018147327423095702, |
|
0.018199552536010744, |
|
0.018102272033691406, |
|
0.018259967803955078, |
|
0.01823744010925293, |
|
0.018373632431030275, |
|
0.018273279190063475, |
|
0.018321407318115233, |
|
0.01844326400756836, |
|
0.018347007751464844, |
|
0.018099199295043944, |
|
0.018329599380493163, |
|
0.01835212707519531, |
|
0.01823641586303711, |
|
0.018215936660766603, |
|
0.01822208023071289, |
|
0.018305023193359374, |
|
0.01841868782043457, |
|
0.018268159866333008, |
|
0.01843916893005371, |
|
0.018214912414550782, |
|
0.01826521682739258, |
|
0.018380672454833984, |
|
0.018111488342285157, |
|
0.018366464614868162, |
|
0.018316287994384766, |
|
0.01843097686767578, |
|
0.018498559951782227, |
|
0.01877299118041992, |
|
0.018141183853149414, |
|
0.01820262336730957, |
|
0.018251775741577148, |
|
0.01828659248352051, |
|
0.018258943557739257, |
|
0.018380800247192384, |
|
0.018266111373901366, |
|
0.01828556823730469, |
|
0.018258943557739257, |
|
0.018284543991088868, |
|
0.018015264511108398, |
|
0.018199520111083986, |
|
0.018199552536010744, |
|
0.018128896713256838, |
|
0.018135040283203126, |
|
0.018339839935302735, |
|
0.018851839065551757, |
|
0.01862860870361328, |
|
0.01820467185974121, |
|
0.01823744010925293, |
|
0.018354175567626953, |
|
0.018317312240600587, |
|
0.018335744857788085, |
|
0.018350080490112306, |
|
0.01819545555114746, |
|
0.01823539161682129, |
|
0.018305023193359374, |
|
0.018239488601684572, |
|
0.018379776000976563, |
|
0.018440223693847655, |
|
0.01830396842956543, |
|
0.018307071685791015, |
|
0.018437120437622072, |
|
0.018225151062011717, |
|
0.018104320526123048, |
|
0.018268159866333008, |
|
0.01819647979736328, |
|
0.01827123260498047, |
|
0.018067455291748045, |
|
0.01819443130493164, |
|
0.01822003173828125, |
|
0.01840332794189453, |
|
0.018265087127685545, |
|
0.018264064788818358, |
|
0.03701964950561523, |
|
0.018035711288452147, |
|
0.017951744079589844, |
|
0.01785856056213379, |
|
0.017912832260131836, |
|
0.018139135360717772, |
|
0.017993728637695314, |
|
0.01788313674926758, |
|
0.018448383331298827, |
|
0.01799065589904785, |
|
0.018119680404663087, |
|
0.01823232078552246, |
|
0.01822719955444336, |
|
0.018207744598388673, |
|
0.018307071685791015, |
|
0.018123775482177733, |
|
0.018126848220825196, |
|
0.01806540870666504, |
|
0.018168832778930662, |
|
0.017925119400024413, |
|
0.01801523208618164, |
|
0.01805516815185547, |
|
0.018062335968017578, |
|
0.017905664443969727, |
|
0.017876991271972655, |
|
0.017949695587158202, |
|
0.018068479537963866, |
|
0.018159616470336915, |
|
0.01813811111450195, |
|
0.01814630317687988, |
|
0.01819647979736328, |
|
0.018158592224121094, |
|
0.018010112762451173, |
|
0.01823232078552246, |
|
0.01863270378112793, |
|
0.018158592224121094, |
|
0.018058240890502928, |
|
0.018340864181518556, |
|
0.01816985511779785, |
|
0.018135040283203126, |
|
0.018114559173583983, |
|
0.018111488342285157, |
|
0.017976320266723633, |
|
0.017920000076293945, |
|
0.017977344512939454, |
|
0.018285663604736328, |
|
0.018963359832763673, |
|
0.020100095748901366, |
|
0.018902015686035157, |
|
0.018390016555786134, |
|
0.018182144165039063, |
|
0.018284543991088868, |
|
0.018449407577514648, |
|
0.018336767196655272, |
|
0.01822003173828125, |
|
0.01837772750854492, |
|
0.018754560470581053, |
|
0.01879449653625488, |
|
0.018935808181762694, |
|
0.01845248031616211, |
|
0.018342912673950194, |
|
0.018329599380493163, |
|
0.018428928375244142, |
|
0.018894847869873048, |
|
0.018395135879516602, |
|
0.018120704650878908, |
|
0.018107391357421874, |
|
0.018131967544555663, |
|
0.018165760040283203, |
|
0.01824563217163086, |
|
0.01842790412902832, |
|
0.018528255462646484, |
|
0.01842278480529785, |
|
0.018344959259033202, |
|
0.018547712326049806, |
|
0.018382848739624022, |
|
0.018423807144165038, |
|
0.01860403251647949, |
|
0.01878835105895996, |
|
0.01862553596496582, |
|
0.018134016036987305, |
|
0.018122751235961913, |
|
0.018167808532714845, |
|
0.0182794246673584, |
|
0.01842995262145996, |
|
0.01860403251647949, |
|
0.01860403251647949, |
|
0.018233343124389647, |
|
0.018314239501953124, |
|
0.01866444778442383, |
|
0.01863884735107422, |
|
0.018513919830322266, |
|
0.018832384109497072, |
|
0.018465791702270508, |
|
0.018323455810546875, |
|
0.018164735794067383, |
|
0.018313215255737304, |
|
0.018085887908935547, |
|
0.018113536834716795, |
|
0.018295808792114256, |
|
0.01855897521972656, |
|
0.0188723201751709, |
|
0.018341888427734376, |
|
0.018309120178222657, |
|
0.018316287994384766, |
|
0.018295808792114256, |
|
0.018529279708862305, |
|
0.018694143295288086, |
|
0.018564096450805666, |
|
0.018052095413208007, |
|
0.018083839416503905, |
|
0.01807974433898926, |
|
0.018471935272216796, |
|
0.018116607666015624, |
|
0.018367488861083983, |
|
0.01877299118041992, |
|
0.018316287994384766, |
|
0.018143232345581056, |
|
0.018153472900390624, |
|
0.018173952102661133, |
|
0.01838489532470703, |
|
0.018324480056762696, |
|
0.018326528549194337, |
|
0.01866854476928711, |
|
0.018306047439575195, |
|
0.018387968063354493, |
|
0.018353151321411132 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 54.15215989018926 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |