|
{ |
|
"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.218-208.862.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": "74b92c62560b7ade42d35a49f9063adc8b805c4a", |
|
"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": 1704.5504, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5034.576896 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.038641920089721685, |
|
"mean": 0.019320960044860842, |
|
"stdev": 0.0002982397079467781, |
|
"p50": 0.019320960044860842, |
|
"p90": 0.019559551811218264, |
|
"p95": 0.01958937578201294, |
|
"p99": 0.01961323495864868, |
|
"values": [ |
|
0.01961919975280762, |
|
0.019022720336914063 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 362.30083721237867 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1704.574976, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5034.577408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.655030517578125, |
|
"mean": 2.3275152587890626, |
|
"stdev": 0.003330932617187532, |
|
"p50": 2.3275152587890626, |
|
"p90": 2.3301800048828127, |
|
"p95": 2.3305130981445314, |
|
"p99": 2.3307795727539062, |
|
"values": [ |
|
2.324184326171875, |
|
2.33084619140625 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 54.564626169658 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.655222801208495, |
|
"mean": 0.01840009012335374, |
|
"stdev": 0.001254085328966746, |
|
"p50": 0.018181119918823242, |
|
"p90": 0.018891775131225585, |
|
"p95": 0.01915596809387207, |
|
"p99": 0.019525508193969726, |
|
"values": [ |
|
0.01882828712463379, |
|
0.0198287353515625, |
|
0.018349056243896485, |
|
0.018124799728393554, |
|
0.018137088775634767, |
|
0.01830297660827637, |
|
0.018174047470092772, |
|
0.018126752853393553, |
|
0.01805721664428711, |
|
0.018123775482177733, |
|
0.018081792831420897, |
|
0.018114559173583983, |
|
0.018173952102661133, |
|
0.018128896713256838, |
|
0.018066432952880858, |
|
0.018172927856445312, |
|
0.018283519744873047, |
|
0.018130943298339842, |
|
0.018731008529663085, |
|
0.018824192047119142, |
|
0.018351104736328124, |
|
0.018119680404663087, |
|
0.019165184020996092, |
|
0.01881395149230957, |
|
0.01879347229003906, |
|
0.018877439498901367, |
|
0.01883955192565918, |
|
0.018969600677490234, |
|
0.01830297660827637, |
|
0.01819340705871582, |
|
0.018185216903686522, |
|
0.01810534477233887, |
|
0.018851839065551757, |
|
0.01882316780090332, |
|
0.01799782371520996, |
|
0.017932287216186525, |
|
0.017954816818237306, |
|
0.01799577522277832, |
|
0.018010112762451173, |
|
0.017968128204345703, |
|
0.018114559173583983, |
|
0.018108415603637695, |
|
0.018191360473632814, |
|
0.018308095932006836, |
|
0.01811369514465332, |
|
0.018199392318725586, |
|
0.01825279998779297, |
|
0.018338815689086914, |
|
0.017954816818237306, |
|
0.01819545555114746, |
|
0.01799884796142578, |
|
0.017941503524780272, |
|
0.017970176696777345, |
|
0.018060287475585936, |
|
0.01802956771850586, |
|
0.01796505546569824, |
|
0.018167808532714845, |
|
0.018117631912231445, |
|
0.01809715270996094, |
|
0.018266111373901366, |
|
0.018618368148803712, |
|
0.018729984283447267, |
|
0.018716672897338867, |
|
0.01865318489074707, |
|
0.018373632431030275, |
|
0.018331647872924805, |
|
0.018206720352172853, |
|
0.01819340705871582, |
|
0.01808896064758301, |
|
0.018303104400634766, |
|
0.018380672454833984, |
|
0.018315263748168945, |
|
0.018339839935302735, |
|
0.01807257652282715, |
|
0.01827123260498047, |
|
0.018153472900390624, |
|
0.018130943298339842, |
|
0.01810534477233887, |
|
0.018078720092773438, |
|
0.018128896713256838, |
|
0.01862144088745117, |
|
0.018891775131225585, |
|
0.01842790412902832, |
|
0.018137088775634767, |
|
0.018153472900390624, |
|
0.018094175338745116, |
|
0.01814828872680664, |
|
0.01807868766784668, |
|
0.018163711547851562, |
|
0.018291711807250977, |
|
0.018131967544555663, |
|
0.018113536834716795, |
|
0.018222143173217773, |
|
0.018238399505615236, |
|
0.018140159606933593, |
|
0.018100223541259765, |
|
0.018289663314819335, |
|
0.018348031997680665, |
|
0.018157567977905274, |
|
0.018152448654174806, |
|
0.01816985511779785, |
|
0.01883545684814453, |
|
0.018977792739868164, |
|
0.018136064529418947, |
|
0.01903718376159668, |
|
0.01859686470031738, |
|
0.018301952362060548, |
|
0.018114559173583983, |
|
0.018330623626708984, |
|
0.018747392654418944, |
|
0.01879859161376953, |
|
0.01824460792541504, |
|
0.018181119918823242, |
|
0.018140159606933593, |
|
0.018145280838012694, |
|
0.018134016036987305, |
|
0.018115583419799804, |
|
0.018124799728393554, |
|
0.018181119918823242, |
|
0.018109439849853515, |
|
0.0182476806640625, |
|
0.01830297660827637, |
|
0.018059263229370116, |
|
0.01816166305541992, |
|
0.01838387107849121, |
|
0.018251775741577148, |
|
0.037407745361328126, |
|
0.018018304824829103, |
|
0.017967103958129883, |
|
0.017975296020507812, |
|
0.017957887649536132, |
|
0.017993728637695314, |
|
0.017984512329101563, |
|
0.01803878402709961, |
|
0.017966079711914062, |
|
0.018027519226074217, |
|
0.017950719833374023, |
|
0.01807974433898926, |
|
0.017993728637695314, |
|
0.01800499153137207, |
|
0.01802137565612793, |
|
0.017952768325805665, |
|
0.017943552017211914, |
|
0.017936384201049805, |
|
0.01800704002380371, |
|
0.01804902458190918, |
|
0.018018304824829103, |
|
0.017952768325805665, |
|
0.017945600509643556, |
|
0.01803468894958496, |
|
0.017925119400024413, |
|
0.017985536575317384, |
|
0.0179814395904541, |
|
0.017970176696777345, |
|
0.018001920700073244, |
|
0.01804595184326172, |
|
0.018329599380493163, |
|
0.01821286392211914, |
|
0.01807257652282715, |
|
0.018091007232666014, |
|
0.01805619239807129, |
|
0.018159616470336915, |
|
0.01797222328186035, |
|
0.01802649688720703, |
|
0.017960960388183594, |
|
0.017960960388183594, |
|
0.01808896064758301, |
|
0.0179814395904541, |
|
0.018010112762451173, |
|
0.018066432952880858, |
|
0.018081792831420897, |
|
0.017931264877319338, |
|
0.018019327163696287, |
|
0.0180633602142334, |
|
0.018118656158447266, |
|
0.017979391098022462, |
|
0.018051103591918947, |
|
0.018064352035522462, |
|
0.017986560821533205, |
|
0.01818623924255371, |
|
0.01819647979736328, |
|
0.018206720352172853, |
|
0.018189311981201172, |
|
0.01828659248352051, |
|
0.018386943817138672, |
|
0.018391040802001952, |
|
0.018373632431030275, |
|
0.018367488861083983, |
|
0.018229248046875, |
|
0.018191360473632814, |
|
0.01808793640136719, |
|
0.018157567977905274, |
|
0.018328575134277342, |
|
0.018423807144165038, |
|
0.018308095932006836, |
|
0.018745344161987306, |
|
0.019510271072387696, |
|
0.019542015075683594, |
|
0.019326976776123047, |
|
0.01922662353515625, |
|
0.018397184371948243, |
|
0.01842585563659668, |
|
0.01920204734802246, |
|
0.019149824142456053, |
|
0.018378751754760742, |
|
0.018206720352172853, |
|
0.018298879623413086, |
|
0.018355199813842774, |
|
0.018769920349121092, |
|
0.018880512237548826, |
|
0.018873344421386717, |
|
0.018923648834228514, |
|
0.01903398323059082, |
|
0.019324928283691405, |
|
0.01881395149230957, |
|
0.018840576171875, |
|
0.018807807922363282, |
|
0.01899212837219238, |
|
0.01907302474975586, |
|
0.018969600677490234, |
|
0.019173376083374022, |
|
0.019140607833862306, |
|
0.019214431762695314, |
|
0.01882512092590332, |
|
0.018177024841308592, |
|
0.018114559173583983, |
|
0.018276351928710938, |
|
0.018156543731689453, |
|
0.01816166305541992, |
|
0.018126848220825196, |
|
0.018207744598388673, |
|
0.018124799728393554, |
|
0.01821388816833496, |
|
0.01880268859863281, |
|
0.018921472549438476, |
|
0.019190784454345702, |
|
0.018318336486816408, |
|
0.018308095932006836, |
|
0.01819545555114746, |
|
0.01819443130493164, |
|
0.018169984817504883, |
|
0.018288511276245117, |
|
0.018747392654418944, |
|
0.018990079879760743, |
|
0.018783231735229493, |
|
0.01883545684814453, |
|
0.018891775131225585, |
|
0.018093055725097656, |
|
0.018176000595092775, |
|
0.01819647979736328, |
|
0.01863372802734375, |
|
0.019272703170776367, |
|
0.018168832778930662 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 54.34755989215407 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |