|
{ |
|
"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-211.872.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": "d806fa3e92289876e01ab19c9e19e9264ea1c1a1", |
|
"accelerate_version": "0.34.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": 1318.342656, |
|
"max_global_vram": 6768.033792, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 6060.931072 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 1, |
|
"total": 11.320982421875, |
|
"mean": 11.320982421875, |
|
"stdev": 0.0, |
|
"p50": 11.320982421875, |
|
"p90": 11.320982421875, |
|
"p95": 11.320982421875, |
|
"p99": 11.320982421875, |
|
"values": [ |
|
11.320982421875 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1720.58624, |
|
"max_global_vram": 6789.005312, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6142.558208, |
|
"max_allocated": 5034.575872 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.04001260757446289, |
|
"mean": 0.020006303787231446, |
|
"stdev": 6.483268737792966e-05, |
|
"p50": 0.020006303787231446, |
|
"p90": 0.02005816993713379, |
|
"p95": 0.020064653205871582, |
|
"p99": 0.02006983982086182, |
|
"values": [ |
|
0.019941471099853517, |
|
0.020071136474609376 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 349.8897184830106 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1785.294848, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5034.576384 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.95334716796875, |
|
"mean": 2.476673583984375, |
|
"stdev": 0.00426513671874984, |
|
"p50": 2.476673583984375, |
|
"p90": 2.4800856933593747, |
|
"p95": 2.48051220703125, |
|
"p99": 2.48085341796875, |
|
"values": [ |
|
2.472408447265625, |
|
2.480938720703125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.27845704870296 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 4.953016315460205, |
|
"mean": 0.019500064234095296, |
|
"stdev": 0.0002412207593411123, |
|
"p50": 0.01944115161895752, |
|
"p90": 0.019782144165039064, |
|
"p95": 0.019980748844146728, |
|
"p99": 0.02044187629699707, |
|
"values": [ |
|
0.01927475166320801, |
|
0.019315711975097655, |
|
0.019302400588989257, |
|
0.01926348876953125, |
|
0.019326976776123047, |
|
0.019337215423583985, |
|
0.01942937660217285, |
|
0.019368959426879884, |
|
0.019578880310058593, |
|
0.019546112060546874, |
|
0.019356672286987304, |
|
0.019309568405151366, |
|
0.019351551055908203, |
|
0.019338239669799806, |
|
0.019313695907592774, |
|
0.01935152053833008, |
|
0.019357696533203125, |
|
0.01943654441833496, |
|
0.019757055282592775, |
|
0.019559423446655275, |
|
0.019365888595581054, |
|
0.019348480224609374, |
|
0.019345407485961915, |
|
0.019345407485961915, |
|
0.01929113578796387, |
|
0.019338239669799806, |
|
0.019360767364501954, |
|
0.01939455986022949, |
|
0.01928294372558594, |
|
0.019355648040771483, |
|
0.01943756866455078, |
|
0.019368959426879884, |
|
0.019361791610717775, |
|
0.01946828842163086, |
|
0.019372032165527343, |
|
0.019397632598876953, |
|
0.019381248474121093, |
|
0.019359743118286133, |
|
0.019323904037475585, |
|
0.019316736221313476, |
|
0.019315711975097655, |
|
0.019369983673095705, |
|
0.01938739204406738, |
|
0.019916799545288084, |
|
0.019817472457885742, |
|
0.019338239669799806, |
|
0.019317760467529296, |
|
0.019321855545043946, |
|
0.019296255111694336, |
|
0.01925632095336914, |
|
0.01939455986022949, |
|
0.019380224227905272, |
|
0.01942732810974121, |
|
0.020303871154785155, |
|
0.019776512145996093, |
|
0.01943142318725586, |
|
0.019288063049316406, |
|
0.01945088005065918, |
|
0.01948467254638672, |
|
0.01942118453979492, |
|
0.019614719390869142, |
|
0.01949286460876465, |
|
0.01947648048400879, |
|
0.019481599807739256, |
|
0.01942323112487793, |
|
0.019481599807739256, |
|
0.019536895751953123, |
|
0.019466239929199217, |
|
0.01961369514465332, |
|
0.019778560638427735, |
|
0.019916799545288084, |
|
0.019854335784912108, |
|
0.01969049644470215, |
|
0.0194201602935791, |
|
0.019482624053955077, |
|
0.01943961524963379, |
|
0.019571712493896484, |
|
0.019555328369140625, |
|
0.019579904556274414, |
|
0.01948569679260254, |
|
0.01943449592590332, |
|
0.019449855804443358, |
|
0.01946828842163086, |
|
0.019504127502441407, |
|
0.019512319564819337, |
|
0.01964851188659668, |
|
0.01944576072692871, |
|
0.019497983932495116, |
|
0.01942937660217285, |
|
0.019647487640380858, |
|
0.019463199615478516, |
|
0.019463136672973634, |
|
0.01948057556152344, |
|
0.01944576072692871, |
|
0.019951616287231445, |
|
0.01942835235595703, |
|
0.019924991607666014, |
|
0.019396608352661132, |
|
0.01923379135131836, |
|
0.019290111541748048, |
|
0.01947238349914551, |
|
0.01940377616882324, |
|
0.019404800415039062, |
|
0.019471359252929688, |
|
0.019423263549804688, |
|
0.01946006393432617, |
|
0.01942835235595703, |
|
0.019570688247680663, |
|
0.01943449592590332, |
|
0.01944268798828125, |
|
0.01943961524963379, |
|
0.019475456237792968, |
|
0.01948467254638672, |
|
0.019474431991577147, |
|
0.019490816116333007, |
|
0.01943961524963379, |
|
0.01944883155822754, |
|
0.0194969596862793, |
|
0.019450912475585936, |
|
0.01945903968811035, |
|
0.01945497512817383, |
|
0.019610624313354492, |
|
0.01942732810974121, |
|
0.019475456237792968, |
|
0.019729408264160156, |
|
0.01968639945983887, |
|
0.0194201602935791, |
|
0.01928294372558594, |
|
0.019284992218017577, |
|
0.019301376342773437, |
|
0.01927987289428711, |
|
0.019362815856933592, |
|
0.019381248474121093, |
|
0.019298303604125978, |
|
0.019361791610717775, |
|
0.019376127243041993, |
|
0.019372032165527343, |
|
0.019307519912719725, |
|
0.019355648040771483, |
|
0.019297279357910157, |
|
0.019306495666503908, |
|
0.019397632598876953, |
|
0.019304447174072266, |
|
0.019350528717041016, |
|
0.01941913604736328, |
|
0.019292160034179686, |
|
0.019339263916015623, |
|
0.019350528717041016, |
|
0.01937919998168945, |
|
0.01924608039855957, |
|
0.019320831298828126, |
|
0.019386367797851564, |
|
0.019329023361206055, |
|
0.019335168838500977, |
|
0.019343360900878907, |
|
0.01939967918395996, |
|
0.019315711975097655, |
|
0.019351551055908203, |
|
0.019332096099853514, |
|
0.019353599548339845, |
|
0.019321855545043946, |
|
0.019346431732177736, |
|
0.01942630386352539, |
|
0.019353599548339845, |
|
0.019353599548339845, |
|
0.019386367797851564, |
|
0.019325952529907226, |
|
0.019260480880737306, |
|
0.019403711318969726, |
|
0.019341312408447265, |
|
0.019366912841796875, |
|
0.019356672286987304, |
|
0.019348480224609374, |
|
0.019300352096557616, |
|
0.019318784713745117, |
|
0.01938739204406738, |
|
0.019902463912963866, |
|
0.01969049644470215, |
|
0.019392511367797852, |
|
0.019770368576049805, |
|
0.01940275192260742, |
|
0.01925119972229004, |
|
0.019145727157592773, |
|
0.01919692802429199, |
|
0.01946009635925293, |
|
0.019507200241088866, |
|
0.019559423446655275, |
|
0.019487743377685548, |
|
0.01949388885498047, |
|
0.019494911193847657, |
|
0.01978982353210449, |
|
0.019697664260864257, |
|
0.02059775924682617, |
|
0.019545087814331053, |
|
0.0194703369140625, |
|
0.01941094398498535, |
|
0.020025344848632814, |
|
0.019909631729125975, |
|
0.019458047866821288, |
|
0.01943654441833496, |
|
0.019449855804443358, |
|
0.019393535614013673, |
|
0.01944473648071289, |
|
0.019467264175415038, |
|
0.01960038375854492, |
|
0.019528703689575197, |
|
0.0194652156829834, |
|
0.019471359252929688, |
|
0.01943552017211914, |
|
0.01945395278930664, |
|
0.019482624053955077, |
|
0.019474431991577147, |
|
0.019579904556274414, |
|
0.019809280395507813, |
|
0.01967103958129883, |
|
0.019597312927246095, |
|
0.01943142318725586, |
|
0.019489791870117186, |
|
0.019478527069091797, |
|
0.020084735870361328, |
|
0.020929536819458007, |
|
0.020405344009399414, |
|
0.020119455337524413, |
|
0.020068351745605468, |
|
0.019509248733520508, |
|
0.019519487380981446, |
|
0.019514368057250975, |
|
0.019606527328491212, |
|
0.019701759338378907, |
|
0.02006425666809082, |
|
0.02021990394592285, |
|
0.01967820739746094, |
|
0.019529727935791014, |
|
0.02048307228088379, |
|
0.019725311279296876, |
|
0.019414016723632813, |
|
0.019594240188598632, |
|
0.020366336822509764, |
|
0.019535871505737306, |
|
0.01948876762390137, |
|
0.019491840362548828, |
|
0.019489791870117186, |
|
0.019547136306762695, |
|
0.020032512664794923, |
|
0.019783679962158202, |
|
0.019513343811035155, |
|
0.019543039321899415, |
|
0.019956735610961913, |
|
0.019937280654907227, |
|
0.019524608612060547, |
|
0.019505151748657225, |
|
0.01944576072692871, |
|
0.01946112060546875, |
|
0.0194467830657959 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.28188235665034 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |