|
{ |
|
"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": "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, |
|
"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-212.873.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": "66bc4def9505fa7c7fe4aa7a248c34a026bb552b", |
|
"accelerate_version": "0.35.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": 1335.263232, |
|
"max_global_vram": 6775.373824, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 6060.931072 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 1, |
|
"total": 11.437876953125, |
|
"mean": 11.437876953125, |
|
"stdev": 0.0, |
|
"p50": 11.437876953125, |
|
"p90": 11.437876953125, |
|
"p95": 11.437876953125, |
|
"p99": 11.437876953125, |
|
"values": [ |
|
11.437876953125 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1836.777472, |
|
"max_global_vram": 6796.345344, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6142.558208, |
|
"max_allocated": 5028.450816 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.04510265731811523, |
|
"mean": 0.022551328659057616, |
|
"stdev": 7.971191406250071e-05, |
|
"p50": 0.022551328659057616, |
|
"p90": 0.02261509819030762, |
|
"p95": 0.022623069381713868, |
|
"p99": 0.02262944633483887, |
|
"values": [ |
|
0.022471616744995117, |
|
0.02263104057312012 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 310.402996906725 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1863.692288, |
|
"max_global_vram": 6800.539648, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5031.820288 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.2664306640625, |
|
"mean": 2.63321533203125, |
|
"stdev": 0.011829345703124883, |
|
"p50": 2.63321533203125, |
|
"p90": 2.64267880859375, |
|
"p95": 2.643861743164062, |
|
"p99": 2.6448080908203124, |
|
"values": [ |
|
2.645044677734375, |
|
2.621385986328125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.230009317936336 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 5.266164733886718, |
|
"mean": 0.020732932023176057, |
|
"stdev": 0.00033867787473972636, |
|
"p50": 0.020599295616149902, |
|
"p90": 0.02119208984375, |
|
"p95": 0.021380915069580078, |
|
"p99": 0.022013910274505614, |
|
"values": [ |
|
0.020728832244873048, |
|
0.021399551391601563, |
|
0.02122547149658203, |
|
0.021234687805175782, |
|
0.02146406364440918, |
|
0.02145484733581543, |
|
0.02128895950317383, |
|
0.021166080474853514, |
|
0.021124095916748048, |
|
0.021408767700195314, |
|
0.021325855255126952, |
|
0.020862943649291994, |
|
0.020768768310546876, |
|
0.021242879867553712, |
|
0.020954111099243163, |
|
0.02045849609375, |
|
0.020929536819458007, |
|
0.02243071937561035, |
|
0.02148044776916504, |
|
0.021370880126953123, |
|
0.02142310333251953, |
|
0.021525503158569336, |
|
0.02062233543395996, |
|
0.020677631378173827, |
|
0.020571136474609376, |
|
0.021154815673828126, |
|
0.020568063735961914, |
|
0.020519935607910156, |
|
0.02081996726989746, |
|
0.020743167877197266, |
|
0.020599807739257812, |
|
0.020536319732666015, |
|
0.020557823181152343, |
|
0.02063667106628418, |
|
0.020748287200927733, |
|
0.020561920166015626, |
|
0.02064691162109375, |
|
0.02051584053039551, |
|
0.020557823181152343, |
|
0.020790271759033203, |
|
0.020586496353149415, |
|
0.020617216110229493, |
|
0.020593664169311524, |
|
0.020523008346557618, |
|
0.020666368484497072, |
|
0.020566015243530272, |
|
0.02061311912536621, |
|
0.020533248901367186, |
|
0.020602880477905275, |
|
0.020600831985473633, |
|
0.0206059513092041, |
|
0.020714496612548827, |
|
0.020732927322387695, |
|
0.02061414337158203, |
|
0.020694015502929687, |
|
0.020485120773315428, |
|
0.02040934371948242, |
|
0.020733951568603515, |
|
0.020767744064331056, |
|
0.02064793586730957, |
|
0.02059878349304199, |
|
0.020553728103637696, |
|
0.02068992042541504, |
|
0.020505599975585938, |
|
0.020749311447143554, |
|
0.020559871673583984, |
|
0.02057318305969238, |
|
0.020567039489746093, |
|
0.020551679611206054, |
|
0.020701183319091796, |
|
0.020592639923095703, |
|
0.020567039489746093, |
|
0.020700159072875975, |
|
0.020624383926391602, |
|
0.020580352783203124, |
|
0.020561920166015626, |
|
0.020592639923095703, |
|
0.02072166442871094, |
|
0.02064896011352539, |
|
0.020722688674926756, |
|
0.020531200408935548, |
|
0.020674560546875, |
|
0.020501504898071288, |
|
0.020497407913208008, |
|
0.020552703857421875, |
|
0.02052403259277344, |
|
0.020892671585083008, |
|
0.02063871955871582, |
|
0.020516864776611327, |
|
0.020571136474609376, |
|
0.023204864501953124, |
|
0.021644287109375, |
|
0.021311487197875977, |
|
0.020753408432006838, |
|
0.02051481628417969, |
|
0.020913152694702147, |
|
0.02119987106323242, |
|
0.021325824737548828, |
|
0.021275648117065428, |
|
0.021134336471557616, |
|
0.020575231552124023, |
|
0.020592639923095703, |
|
0.020793344497680662, |
|
0.021176319122314453, |
|
0.021129215240478515, |
|
0.021198848724365234, |
|
0.021183488845825195, |
|
0.021129215240478515, |
|
0.021113855361938477, |
|
0.021337087631225587, |
|
0.020540416717529295, |
|
0.020537343978881836, |
|
0.020513792037963868, |
|
0.020556800842285155, |
|
0.020666368484497072, |
|
0.020550655364990233, |
|
0.020496383666992187, |
|
0.020553728103637696, |
|
0.020568063735961914, |
|
0.02110873603820801, |
|
0.02110054397583008, |
|
0.02110771179199219, |
|
0.02047590446472168, |
|
0.02046463966369629, |
|
0.02050048065185547, |
|
0.020797439575195312, |
|
0.021195775985717775, |
|
0.021627904891967774, |
|
0.022458368301391602, |
|
0.021448703765869142, |
|
0.020612096786499022, |
|
0.020561952590942383, |
|
0.02066633605957031, |
|
0.020559871673583984, |
|
0.02067558479309082, |
|
0.020516864776611327, |
|
0.020552703857421875, |
|
0.020502527236938475, |
|
0.020485120773315428, |
|
0.02065510368347168, |
|
0.020525056838989256, |
|
0.020518911361694335, |
|
0.020568063735961914, |
|
0.020666368484497072, |
|
0.020539392471313478, |
|
0.020525056838989256, |
|
0.02048409652709961, |
|
0.020541439056396483, |
|
0.020710399627685547, |
|
0.020798463821411133, |
|
0.020557823181152343, |
|
0.020527103424072265, |
|
0.02057318305969238, |
|
0.020528127670288086, |
|
0.0206878719329834, |
|
0.02071244812011719, |
|
0.020540416717529295, |
|
0.020552703857421875, |
|
0.02051584053039551, |
|
0.020509695053100584, |
|
0.02068889617919922, |
|
0.020543487548828124, |
|
0.020579328536987306, |
|
0.020699136734008788, |
|
0.020547584533691408, |
|
0.020528127670288086, |
|
0.02050764846801758, |
|
0.020564992904663085, |
|
0.020510719299316405, |
|
0.0206376953125, |
|
0.020540416717529295, |
|
0.020546560287475587, |
|
0.02051481628417969, |
|
0.020550655364990233, |
|
0.020801536560058592, |
|
0.020610048294067384, |
|
0.020555776596069338, |
|
0.02056505584716797, |
|
0.02056083106994629, |
|
0.020501504898071288, |
|
0.020356096267700196, |
|
0.020332544326782227, |
|
0.02062745666503906, |
|
0.020552703857421875, |
|
0.020596736907958983, |
|
0.02072166442871094, |
|
0.020568063735961914, |
|
0.020575231552124023, |
|
0.020558847427368163, |
|
0.020569087982177735, |
|
0.020853759765625, |
|
0.020564992904663085, |
|
0.020523008346557618, |
|
0.020555776596069338, |
|
0.020566015243530272, |
|
0.02069811248779297, |
|
0.020568063735961914, |
|
0.02061516761779785, |
|
0.020593664169311524, |
|
0.020580352783203124, |
|
0.020583423614501953, |
|
0.020748287200927733, |
|
0.02063871955871582, |
|
0.02088140869140625, |
|
0.020634624481201173, |
|
0.02061516761779785, |
|
0.020568063735961914, |
|
0.020583423614501953, |
|
0.020758527755737305, |
|
0.020714496612548827, |
|
0.02057318305969238, |
|
0.020571136474609376, |
|
0.020544511795043945, |
|
0.020571136474609376, |
|
0.020727807998657227, |
|
0.020583423614501953, |
|
0.02063052749633789, |
|
0.02059775924682617, |
|
0.020546560287475587, |
|
0.020563968658447264, |
|
0.020534271240234374, |
|
0.020714496612548827, |
|
0.02107699203491211, |
|
0.021161983489990235, |
|
0.020557823181152343, |
|
0.02067558479309082, |
|
0.02058956718444824, |
|
0.02062233543395996, |
|
0.02064076805114746, |
|
0.020626432418823244, |
|
0.020730880737304686, |
|
0.020723712921142577, |
|
0.020580352783203124, |
|
0.020571136474609376, |
|
0.020595712661743162, |
|
0.020561920166015626, |
|
0.020840448379516603, |
|
0.020560895919799805, |
|
0.020561920166015626, |
|
0.02061414337158203, |
|
0.02059775924682617, |
|
0.020754432678222655, |
|
0.020593664169311524, |
|
0.020556800842285155, |
|
0.020715520858764647, |
|
0.020750335693359375, |
|
0.020571136474609376, |
|
0.020549631118774413, |
|
0.020562944412231447, |
|
0.020755456924438476, |
|
0.020761600494384767, |
|
0.020593664169311524, |
|
0.020619264602661135, |
|
0.0206561279296875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.2324448313515 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |