|
{ |
|
"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": true, |
|
"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": "f38590dade57c1f8cf8a67e9409dae8935f8c478", |
|
"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": 1351.811072, |
|
"max_global_vram": 6775.373824, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 6060.931072 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 1, |
|
"total": 12.4141689453125, |
|
"mean": 12.4141689453125, |
|
"stdev": 0.0, |
|
"p50": 12.4141689453125, |
|
"p90": 12.4141689453125, |
|
"p95": 12.4141689453125, |
|
"p99": 12.4141689453125, |
|
"values": [ |
|
12.4141689453125 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1939.816448, |
|
"max_global_vram": 6796.345344, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 5278.596608 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.02876371192932129, |
|
"mean": 0.014381855964660645, |
|
"stdev": 0.0004115524291992195, |
|
"p50": 0.014381855964660645, |
|
"p90": 0.01471109790802002, |
|
"p95": 0.014752253150939943, |
|
"p99": 0.014785177345275879, |
|
"values": [ |
|
0.013970303535461425, |
|
0.014793408393859864 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 486.7243850307308 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 2113.511424, |
|
"max_global_vram": 6060.244992, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 5381.292032, |
|
"max_allocated": 5282.647552 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 3.12555029296875, |
|
"mean": 1.562775146484375, |
|
"stdev": 0.00024291992187508438, |
|
"p50": 1.562775146484375, |
|
"p90": 1.5629694824218752, |
|
"p95": 1.5629937744140625, |
|
"p99": 1.5630132080078125, |
|
"values": [ |
|
1.56301806640625, |
|
1.5625322265625 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 81.26568961996848 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 3.125191679000852, |
|
"mean": 0.01230390424803486, |
|
"stdev": 5.2212705250091495e-05, |
|
"p50": 0.012292096138000488, |
|
"p90": 0.012319369411468505, |
|
"p95": 0.012338811016082763, |
|
"p99": 0.01254794246673584, |
|
"values": [ |
|
0.012318719863891601, |
|
0.012283904075622559, |
|
0.012291071891784668, |
|
0.012447744369506837, |
|
0.012577792167663575, |
|
0.012602368354797363, |
|
0.012316672325134278, |
|
0.012321791648864745, |
|
0.012307456016540527, |
|
0.012291071891784668, |
|
0.012286975860595703, |
|
0.012288000106811523, |
|
0.012292096138000488, |
|
0.012280832290649414, |
|
0.012289024353027344, |
|
0.012301312446594239, |
|
0.012298239707946777, |
|
0.012288000106811523, |
|
0.012286975860595703, |
|
0.012282879829406738, |
|
0.012282879829406738, |
|
0.012294143676757812, |
|
0.012295167922973632, |
|
0.012286975860595703, |
|
0.012283904075622559, |
|
0.012290047645568849, |
|
0.012294143676757812, |
|
0.012285951614379884, |
|
0.012297216415405274, |
|
0.012299263954162597, |
|
0.01229312038421631, |
|
0.012286975860595703, |
|
0.012286975860595703, |
|
0.012279808044433594, |
|
0.012309503555297852, |
|
0.012307456016540527, |
|
0.012278783798217773, |
|
0.012288000106811523, |
|
0.012292096138000488, |
|
0.012285951614379884, |
|
0.012292096138000488, |
|
0.012298239707946777, |
|
0.012408831596374511, |
|
0.012876799583435058, |
|
0.012322815895080566, |
|
0.012333056449890138, |
|
0.012314623832702636, |
|
0.012286975860595703, |
|
0.012289024353027344, |
|
0.012283904075622559, |
|
0.012294143676757812, |
|
0.012291071891784668, |
|
0.012285951614379884, |
|
0.012288000106811523, |
|
0.012305407524108887, |
|
0.012315648078918457, |
|
0.01229312038421631, |
|
0.012297216415405274, |
|
0.012279808044433594, |
|
0.012306431770324706, |
|
0.012300288200378418, |
|
0.01228492832183838, |
|
0.012295167922973632, |
|
0.012277791976928711, |
|
0.012284895896911622, |
|
0.012288000106811523, |
|
0.012281855583190919, |
|
0.012297216415405274, |
|
0.012291071891784668, |
|
0.012285951614379884, |
|
0.012288000106811523, |
|
0.012295167922973632, |
|
0.012283904075622559, |
|
0.012314623832702636, |
|
0.012283904075622559, |
|
0.012277759552001954, |
|
0.012288000106811523, |
|
0.012291071891784668, |
|
0.012290047645568849, |
|
0.012282879829406738, |
|
0.01228492832183838, |
|
0.012314623832702636, |
|
0.012300288200378418, |
|
0.012283904075622559, |
|
0.012295167922973632, |
|
0.012291071891784668, |
|
0.012311552047729492, |
|
0.012312576293945313, |
|
0.012289024353027344, |
|
0.012280832290649414, |
|
0.012285951614379884, |
|
0.012286975860595703, |
|
0.012286975860595703, |
|
0.012288000106811523, |
|
0.012319744110107422, |
|
0.012298239707946777, |
|
0.012286975860595703, |
|
0.012283904075622559, |
|
0.012285951614379884, |
|
0.012289024353027344, |
|
0.012306431770324706, |
|
0.012303359985351562, |
|
0.012275712013244629, |
|
0.012304384231567383, |
|
0.012288000106811523, |
|
0.012283904075622559, |
|
0.012291071891784668, |
|
0.012286975860595703, |
|
0.012295167922973632, |
|
0.012297216415405274, |
|
0.012288000106811523, |
|
0.01229312038421631, |
|
0.01228492832183838, |
|
0.012289024353027344, |
|
0.012311552047729492, |
|
0.012297216415405274, |
|
0.012286975860595703, |
|
0.012282879829406738, |
|
0.01229312038421631, |
|
0.012298239707946777, |
|
0.01228492832183838, |
|
0.012286975860595703, |
|
0.01229312038421631, |
|
0.012286975860595703, |
|
0.012288000106811523, |
|
0.012315648078918457, |
|
0.012393471717834472, |
|
0.012521471977233887, |
|
0.01229312038421631, |
|
0.012289024353027344, |
|
0.012311552047729492, |
|
0.012329983711242675, |
|
0.012311552047729492, |
|
0.012285951614379884, |
|
0.012300288200378418, |
|
0.012290047645568849, |
|
0.012286975860595703, |
|
0.01229312038421631, |
|
0.012296192169189453, |
|
0.01228492832183838, |
|
0.01228492832183838, |
|
0.0124518404006958, |
|
0.012349439620971679, |
|
0.012304384231567383, |
|
0.012281855583190919, |
|
0.012285951614379884, |
|
0.012279808044433594, |
|
0.012290047645568849, |
|
0.012294143676757812, |
|
0.012288000106811523, |
|
0.012295167922973632, |
|
0.012306431770324706, |
|
0.012282879829406738, |
|
0.012291071891784668, |
|
0.012278783798217773, |
|
0.012278783798217773, |
|
0.012300288200378418, |
|
0.012327936172485352, |
|
0.012286975860595703, |
|
0.012295167922973632, |
|
0.012275712013244629, |
|
0.012283904075622559, |
|
0.012317695617675782, |
|
0.012292096138000488, |
|
0.012308480262756348, |
|
0.012299263954162597, |
|
0.012272640228271485, |
|
0.012285951614379884, |
|
0.012288000106811523, |
|
0.012288000106811523, |
|
0.012307456016540527, |
|
0.012294143676757812, |
|
0.012298239707946777, |
|
0.012295167922973632, |
|
0.012296192169189453, |
|
0.012296256065368652, |
|
0.012285887718200683, |
|
0.012280832290649414, |
|
0.012302335739135742, |
|
0.01240988826751709, |
|
0.0123023042678833, |
|
0.012292096138000488, |
|
0.01228502368927002, |
|
0.012319647789001464, |
|
0.012289024353027344, |
|
0.012290047645568849, |
|
0.012286975860595703, |
|
0.012283904075622559, |
|
0.012289024353027344, |
|
0.012281855583190919, |
|
0.012281855583190919, |
|
0.012292096138000488, |
|
0.012295167922973632, |
|
0.012291071891784668, |
|
0.012380160331726075, |
|
0.012302335739135742, |
|
0.012305407524108887, |
|
0.012319744110107422, |
|
0.01228492832183838, |
|
0.012283904075622559, |
|
0.012278783798217773, |
|
0.012291071891784668, |
|
0.012418047904968262, |
|
0.012303359985351562, |
|
0.012308480262756348, |
|
0.012303359985351562, |
|
0.012364800453186036, |
|
0.012296192169189453, |
|
0.012300288200378418, |
|
0.012308480262756348, |
|
0.012314623832702636, |
|
0.012304384231567383, |
|
0.012312576293945313, |
|
0.012296192169189453, |
|
0.012304384231567383, |
|
0.012281855583190919, |
|
0.012291071891784668, |
|
0.012292096138000488, |
|
0.012298239707946777, |
|
0.012288000106811523, |
|
0.012290047645568849, |
|
0.012306431770324706, |
|
0.012323840141296387, |
|
0.012333087921142578, |
|
0.01233199977874756, |
|
0.012292096138000488, |
|
0.012288000106811523, |
|
0.012290047645568849, |
|
0.012282879829406738, |
|
0.012307456016540527, |
|
0.012305407524108887, |
|
0.012299263954162597, |
|
0.012282879829406738, |
|
0.012324864387512208, |
|
0.012282879829406738, |
|
0.01228492832183838, |
|
0.012299327850341797, |
|
0.012306367874145508, |
|
0.012299263954162597, |
|
0.012324864387512208, |
|
0.012290047645568849, |
|
0.01229312038421631, |
|
0.012288000106811523, |
|
0.012285951614379884, |
|
0.012297216415405274, |
|
0.01229312038421631, |
|
0.012301312446594239, |
|
0.012294143676757812, |
|
0.01228492832183838, |
|
0.012307456016540527, |
|
0.012300352096557617, |
|
0.012278719902038574, |
|
0.012290047645568849, |
|
0.01229312038421631 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 81.27501481163728 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |