|
{ |
|
"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.293824, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.219-208.866.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.43.0.dev0", |
|
"transformers_commit": "e65502951593a76844e872fee9c56b805598538a", |
|
"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": 1785.061376, |
|
"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.05127644920349121, |
|
"mean": 0.025638224601745606, |
|
"stdev": 0.0037950239181518547, |
|
"p50": 0.025638224601745606, |
|
"p90": 0.02867424373626709, |
|
"p95": 0.029053746128082276, |
|
"p99": 0.029357348041534424, |
|
"values": [ |
|
0.02943324851989746, |
|
0.02184320068359375 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 273.02982592341425 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1785.073664, |
|
"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.213842529296875, |
|
"mean": 2.6069212646484377, |
|
"stdev": 0.022105346679687443, |
|
"p50": 2.6069212646484377, |
|
"p90": 2.6246055419921874, |
|
"p95": 2.6268160766601563, |
|
"p99": 2.6285845043945315, |
|
"values": [ |
|
2.629026611328125, |
|
2.58481591796875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.71646939330439 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.213787134170534, |
|
"mean": 0.020607854285259023, |
|
"stdev": 0.0014440588866297017, |
|
"p50": 0.020575231552124023, |
|
"p90": 0.021163007736206055, |
|
"p95": 0.021507277297973634, |
|
"p99": 0.022305013656616208, |
|
"values": [ |
|
0.02265190315246582, |
|
0.020952064514160155, |
|
0.020988927841186524, |
|
0.020789247512817383, |
|
0.02190028762817383, |
|
0.020669439315795898, |
|
0.02067353630065918, |
|
0.021380096435546874, |
|
0.021111808776855468, |
|
0.021570560455322265, |
|
0.02147430419921875, |
|
0.020575231552124023, |
|
0.021234687805175782, |
|
0.022188032150268554, |
|
0.02168627166748047, |
|
0.021307392120361326, |
|
0.021356544494628905, |
|
0.021515264511108398, |
|
0.021643264770507813, |
|
0.02046668815612793, |
|
0.020710399627685547, |
|
0.02126028823852539, |
|
0.021053440093994142, |
|
0.02060492706298828, |
|
0.02122547149658203, |
|
0.02243174362182617, |
|
0.02168115234375, |
|
0.021552127838134767, |
|
0.02150912094116211, |
|
0.02067967987060547, |
|
0.020668415069580077, |
|
0.02068889617919922, |
|
0.02081996726989746, |
|
0.020764671325683593, |
|
0.021098495483398438, |
|
0.020934656143188478, |
|
0.020559871673583984, |
|
0.020966400146484376, |
|
0.02044108772277832, |
|
0.02038374328613281, |
|
0.020479999542236327, |
|
0.021024768829345702, |
|
0.020518911361694335, |
|
0.02064588737487793, |
|
0.020579328536987306, |
|
0.020739072799682616, |
|
0.019964927673339843, |
|
0.01993011283874512, |
|
0.02064896011352539, |
|
0.019961856842041017, |
|
0.019961856842041017, |
|
0.020222976684570314, |
|
0.020634624481201173, |
|
0.02070528030395508, |
|
0.020711423873901368, |
|
0.020745216369628908, |
|
0.02005504035949707, |
|
0.020068351745605468, |
|
0.02067046356201172, |
|
0.020980735778808594, |
|
0.020880384445190428, |
|
0.02083328056335449, |
|
0.020755456924438476, |
|
0.02008883285522461, |
|
0.02008064079284668, |
|
0.020504575729370117, |
|
0.02007244873046875, |
|
0.02007347106933594, |
|
0.020690944671630858, |
|
0.020884479522705078, |
|
0.02082611274719238, |
|
0.020479999542236327, |
|
0.02083020782470703, |
|
0.0200949764251709, |
|
0.021393407821655275, |
|
0.020853759765625, |
|
0.02083020782470703, |
|
0.02009600067138672, |
|
0.02001817512512207, |
|
0.020584447860717774, |
|
0.020074495315551756, |
|
0.02007961654663086, |
|
0.020166656494140626, |
|
0.020641792297363282, |
|
0.02003865623474121, |
|
0.02008780860900879, |
|
0.020590591430664062, |
|
0.02079641532897949, |
|
0.020756479263305663, |
|
0.020808704376220705, |
|
0.020075519561767577, |
|
0.02006220817565918, |
|
0.02003558349609375, |
|
0.02059775924682617, |
|
0.020738048553466795, |
|
0.020797439575195312, |
|
0.020786176681518553, |
|
0.02004377555847168, |
|
0.02003558349609375, |
|
0.02004172706604004, |
|
0.02087424087524414, |
|
0.020809728622436522, |
|
0.020757503509521484, |
|
0.020768768310546876, |
|
0.020908031463623047, |
|
0.020057088851928712, |
|
0.02002841567993164, |
|
0.02067353630065918, |
|
0.020701183319091796, |
|
0.020758527755737305, |
|
0.02084556770324707, |
|
0.020751359939575196, |
|
0.020765695571899414, |
|
0.020093952178955078, |
|
0.020780031204223632, |
|
0.02032640075683594, |
|
0.020063232421875, |
|
0.020102144241333008, |
|
0.02012876892089844, |
|
0.020129791259765627, |
|
0.020121599197387697, |
|
0.02011238479614258, |
|
0.020108287811279296, |
|
0.021357568740844726, |
|
0.0208035831451416, |
|
0.020722688674926756, |
|
0.04204748916625976, |
|
0.020084735870361328, |
|
0.02005299186706543, |
|
0.02004684829711914, |
|
0.02002739143371582, |
|
0.02004991912841797, |
|
0.019998720169067383, |
|
0.020108287811279296, |
|
0.02002022361755371, |
|
0.02001408004760742, |
|
0.020000768661499024, |
|
0.020530176162719727, |
|
0.020157440185546875, |
|
0.01987481689453125, |
|
0.02002841567993164, |
|
0.02005606460571289, |
|
0.019990528106689453, |
|
0.020016128540039063, |
|
0.02004172706604004, |
|
0.020090879440307616, |
|
0.02066227149963379, |
|
0.02103603172302246, |
|
0.02083020782470703, |
|
0.020773887634277344, |
|
0.020051967620849608, |
|
0.020403200149536133, |
|
0.020784128189086915, |
|
0.02008576011657715, |
|
0.020001792907714845, |
|
0.020017152786254884, |
|
0.01998847961425781, |
|
0.02002943992614746, |
|
0.02000486373901367, |
|
0.020001792907714845, |
|
0.020059135437011717, |
|
0.020000768661499024, |
|
0.020000768661499024, |
|
0.020009983062744142, |
|
0.02000588798522949, |
|
0.020031488418579102, |
|
0.02001203155517578, |
|
0.019975168228149414, |
|
0.020139007568359374, |
|
0.020146175384521483, |
|
0.02006937599182129, |
|
0.02083635139465332, |
|
0.02091007995605469, |
|
0.02082918357849121, |
|
0.020742143630981445, |
|
0.02007040023803711, |
|
0.020051967620849608, |
|
0.020024320602416993, |
|
0.019987455368041994, |
|
0.019997695922851562, |
|
0.02004684829711914, |
|
0.020331520080566406, |
|
0.02083737564086914, |
|
0.02086911964416504, |
|
0.020764671325683593, |
|
0.02004684829711914, |
|
0.020024320602416993, |
|
0.02002739143371582, |
|
0.02004172706604004, |
|
0.020560895919799805, |
|
0.020405248641967775, |
|
0.01983590316772461, |
|
0.019982336044311523, |
|
0.020011007308959963, |
|
0.02002022361755371, |
|
0.02003455924987793, |
|
0.020007936477661133, |
|
0.020966400146484376, |
|
0.021130239486694336, |
|
0.020167680740356447, |
|
0.02082713508605957, |
|
0.020789247512817383, |
|
0.02125312042236328, |
|
0.02081279945373535, |
|
0.020847616195678712, |
|
0.020099071502685546, |
|
0.02082918357849121, |
|
0.020771839141845702, |
|
0.020808704376220705, |
|
0.020771839141845702, |
|
0.020695039749145508, |
|
0.020340736389160157, |
|
0.020952064514160155, |
|
0.02086195182800293, |
|
0.02079539108276367, |
|
0.020769792556762694, |
|
0.02004787254333496, |
|
0.02006118392944336, |
|
0.02003763198852539, |
|
0.020291584014892578, |
|
0.020525056838989256, |
|
0.0208353271484375, |
|
0.020752384185791017, |
|
0.020775936126708985, |
|
0.020722688674926756, |
|
0.02007347106933594, |
|
0.020006912231445313, |
|
0.020941823959350587, |
|
0.020797439575195312, |
|
0.02086809539794922, |
|
0.020707328796386718, |
|
0.020710399627685547, |
|
0.02001408004760742, |
|
0.020068351745605468, |
|
0.020414464950561522, |
|
0.020624383926391602, |
|
0.019834880828857423, |
|
0.01985740852355957, |
|
0.019811328887939454, |
|
0.01984511947631836, |
|
0.01980723190307617, |
|
0.019795967102050782, |
|
0.020316160202026368, |
|
0.021506048202514647, |
|
0.021679103851318358, |
|
0.02144767951965332, |
|
0.02083328056335449, |
|
0.021171199798583985, |
|
0.0209039363861084, |
|
0.020065280914306642, |
|
0.02027008056640625, |
|
0.020092927932739257, |
|
0.02003046417236328 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.525187831675844 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |