|
{ |
|
"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-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": "a05ce550bf1cda8ae3bffcc62607597770460a42", |
|
"accelerate_version": "0.35.0.dev0", |
|
"accelerate_commit": null, |
|
"diffusers_version": null, |
|
"diffusers_commit": null, |
|
"optimum_version": "1.23.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": 1333.182464, |
|
"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.3963779296875, |
|
"mean": 11.3963779296875, |
|
"stdev": 0.0, |
|
"p50": 11.3963779296875, |
|
"p90": 11.3963779296875, |
|
"p95": 11.3963779296875, |
|
"p99": 11.3963779296875, |
|
"values": [ |
|
11.3963779296875 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1800.712192, |
|
"max_global_vram": 6796.345344, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6142.558208, |
|
"max_allocated": 5028.431872 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.04140790367126465, |
|
"mean": 0.020703951835632325, |
|
"stdev": 5.799961090087978e-05, |
|
"p50": 0.020703951835632325, |
|
"p90": 0.020750351524353026, |
|
"p95": 0.020756151485443117, |
|
"p99": 0.020760791454315187, |
|
"values": [ |
|
0.020645952224731444, |
|
0.020761951446533203 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 338.09970461546 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1859.125248, |
|
"max_global_vram": 6800.539648, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5031.801344 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.053552978515625, |
|
"mean": 2.5267764892578124, |
|
"stdev": 0.012900024414062461, |
|
"p50": 2.5267764892578124, |
|
"p90": 2.5370965087890625, |
|
"p95": 2.5383865112304687, |
|
"p99": 2.539418513183594, |
|
"values": [ |
|
2.51387646484375, |
|
2.539676513671875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.26166759898244 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 5.0532259902954095, |
|
"mean": 0.019894590512974056, |
|
"stdev": 0.0003843963811459021, |
|
"p50": 0.02006169605255127, |
|
"p90": 0.02019676170349121, |
|
"p95": 0.02027335681915283, |
|
"p99": 0.020557331657409667, |
|
"values": [ |
|
0.019119104385375976, |
|
0.019130367279052735, |
|
0.019183616638183593, |
|
0.01921433639526367, |
|
0.019184640884399414, |
|
0.01919795227050781, |
|
0.019215360641479492, |
|
0.019146751403808594, |
|
0.01918156814575195, |
|
0.01921331214904785, |
|
0.019180543899536134, |
|
0.019158016204833983, |
|
0.019144704818725586, |
|
0.019190784454345702, |
|
0.019207168579101562, |
|
0.019188735961914064, |
|
0.019203071594238282, |
|
0.01921023941040039, |
|
0.01923072052001953, |
|
0.01923276710510254, |
|
0.01921843147277832, |
|
0.019269632339477538, |
|
0.01924198341369629, |
|
0.019186687469482423, |
|
0.01922559928894043, |
|
0.019166208267211913, |
|
0.019215360641479492, |
|
0.019183616638183593, |
|
0.019186687469482423, |
|
0.01922867202758789, |
|
0.019184640884399414, |
|
0.01924095916748047, |
|
0.01913555145263672, |
|
0.019239871978759766, |
|
0.01922559928894043, |
|
0.019180543899536134, |
|
0.019176448822021484, |
|
0.019167232513427734, |
|
0.019176448822021484, |
|
0.0192993278503418, |
|
0.01964339256286621, |
|
0.019487743377685548, |
|
0.019679231643676756, |
|
0.019330047607421876, |
|
0.019149824142456053, |
|
0.019152896881103516, |
|
0.019183616638183593, |
|
0.01975503921508789, |
|
0.019796960830688475, |
|
0.019758079528808595, |
|
0.019578880310058593, |
|
0.020195327758789062, |
|
0.020588544845581053, |
|
0.020090879440307616, |
|
0.019920896530151368, |
|
0.019997695922851562, |
|
0.02000588798522949, |
|
0.020110336303710938, |
|
0.02005504035949707, |
|
0.02021683120727539, |
|
0.020158464431762696, |
|
0.020090879440307616, |
|
0.020154367446899413, |
|
0.020121599197387697, |
|
0.02036534309387207, |
|
0.020828128814697266, |
|
0.020256767272949217, |
|
0.01987174415588379, |
|
0.019903488159179687, |
|
0.020076543807983398, |
|
0.020157440185546875, |
|
0.02012876892089844, |
|
0.0200949764251709, |
|
0.020184064865112306, |
|
0.020155391693115234, |
|
0.02017791938781738, |
|
0.02011238479614258, |
|
0.020134912490844727, |
|
0.020106239318847655, |
|
0.020161535263061522, |
|
0.02020249557495117, |
|
0.020549631118774413, |
|
0.020100095748901366, |
|
0.02004275131225586, |
|
0.02006937599182129, |
|
0.020198400497436524, |
|
0.020142080307006836, |
|
0.020161535263061522, |
|
0.020146175384521483, |
|
0.020124671936035156, |
|
0.020197376251220703, |
|
0.020133888244628906, |
|
0.02024550437927246, |
|
0.020152320861816408, |
|
0.020110336303710938, |
|
0.02003046417236328, |
|
0.020114431381225584, |
|
0.020090879440307616, |
|
0.02011238479614258, |
|
0.02026905632019043, |
|
0.020131839752197265, |
|
0.020107263565063475, |
|
0.020155391693115234, |
|
0.020102144241333008, |
|
0.020145151138305666, |
|
0.020189184188842774, |
|
0.020125696182250977, |
|
0.02008780860900879, |
|
0.020167680740356447, |
|
0.020281343460083007, |
|
0.020144128799438478, |
|
0.020164608001708984, |
|
0.020124671936035156, |
|
0.020082687377929686, |
|
0.020123647689819335, |
|
0.020175872802734376, |
|
0.020143104553222657, |
|
0.020173824310302735, |
|
0.02006630325317383, |
|
0.020101119995117187, |
|
0.020109312057495117, |
|
0.020141056060791016, |
|
0.020150272369384766, |
|
0.020134912490844727, |
|
0.020102144241333008, |
|
0.020129791259765627, |
|
0.020131839752197265, |
|
0.01924095916748047, |
|
0.019896320343017578, |
|
0.019543039321899415, |
|
0.01940787124633789, |
|
0.019959808349609375, |
|
0.01992192077636719, |
|
0.019975168228149414, |
|
0.02002943992614746, |
|
0.019928064346313477, |
|
0.019991552352905274, |
|
0.019952640533447266, |
|
0.01991372871398926, |
|
0.02002739143371582, |
|
0.01998847961425781, |
|
0.020195327758789062, |
|
0.020067327499389647, |
|
0.019944448471069336, |
|
0.0202608642578125, |
|
0.02005401611328125, |
|
0.019990528106689453, |
|
0.019985408782958985, |
|
0.01998028755187988, |
|
0.019915775299072267, |
|
0.019934207916259765, |
|
0.020008960723876954, |
|
0.02008576011657715, |
|
0.01961881637573242, |
|
0.019957759857177734, |
|
0.01990553665161133, |
|
0.020033536911010744, |
|
0.020117504119873047, |
|
0.019853311538696287, |
|
0.01968435287475586, |
|
0.01963212776184082, |
|
0.019679231643676756, |
|
0.020162559509277343, |
|
0.019949567794799804, |
|
0.019976192474365235, |
|
0.019942399978637695, |
|
0.01999564743041992, |
|
0.019955711364746095, |
|
0.019968000411987305, |
|
0.019955711364746095, |
|
0.019994623184204103, |
|
0.02004582405090332, |
|
0.01992192077636719, |
|
0.020037696838378905, |
|
0.020002752304077148, |
|
0.019893312454223634, |
|
0.020054975509643556, |
|
0.020015104293823242, |
|
0.020460544586181642, |
|
0.020347904205322266, |
|
0.02007244873046875, |
|
0.020039680480957032, |
|
0.019945472717285157, |
|
0.019977216720581056, |
|
0.02004275131225586, |
|
0.02007142448425293, |
|
0.020205568313598633, |
|
0.020108287811279296, |
|
0.020110336303710938, |
|
0.020107263565063475, |
|
0.020114431381225584, |
|
0.02046771240234375, |
|
0.020141056060791016, |
|
0.02017791938781738, |
|
0.020107263565063475, |
|
0.020130815505981444, |
|
0.020090879440307616, |
|
0.020135936737060548, |
|
0.019329023361206055, |
|
0.019272703170776367, |
|
0.019725311279296876, |
|
0.02006937599182129, |
|
0.020115455627441405, |
|
0.02020147132873535, |
|
0.02009702491760254, |
|
0.01940787124633789, |
|
0.019679231643676756, |
|
0.02008576011657715, |
|
0.020313087463378905, |
|
0.020264959335327147, |
|
0.020155391693115234, |
|
0.02020147132873535, |
|
0.020146175384521483, |
|
0.019312639236450196, |
|
0.01927884864807129, |
|
0.020031488418579102, |
|
0.020159488677978517, |
|
0.02005606460571289, |
|
0.020150272369384766, |
|
0.02008883285522461, |
|
0.02006118392944336, |
|
0.0200949764251709, |
|
0.020023296356201172, |
|
0.02006220817565918, |
|
0.020121599197387697, |
|
0.02006220817565918, |
|
0.02024345588684082, |
|
0.020109312057495117, |
|
0.02043391990661621, |
|
0.020090879440307616, |
|
0.019363840103149413, |
|
0.019595264434814453, |
|
0.020121599197387697, |
|
0.020125696182250977, |
|
0.02011955261230469, |
|
0.020150272369384766, |
|
0.020566015243530272, |
|
0.020142080307006836, |
|
0.02011955261230469, |
|
0.019311616897583008, |
|
0.019339263916015623, |
|
0.020011007308959963, |
|
0.020405248641967775, |
|
0.020107263565063475, |
|
0.020379648208618165, |
|
0.020174848556518556, |
|
0.020025344848632814, |
|
0.020106239318847655, |
|
0.02008166313171387, |
|
0.020108287811279296, |
|
0.020142080307006836, |
|
0.020057088851928712, |
|
0.02001408004760742, |
|
0.02009702491760254 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.26491997147969 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |