|
{ |
|
"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": "1c68f2cafb4ca54562f74b66d1085b68dd6682f5", |
|
"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": 1762.226176, |
|
"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.04621903991699219, |
|
"mean": 0.023109519958496094, |
|
"stdev": 0.0003098716735839835, |
|
"p50": 0.023109519958496094, |
|
"p90": 0.02335741729736328, |
|
"p95": 0.02338840446472168, |
|
"p99": 0.0234131941986084, |
|
"values": [ |
|
0.02279964828491211, |
|
0.023419391632080077 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 302.9054698051608 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1762.238464, |
|
"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.279913330078125, |
|
"mean": 2.6399566650390627, |
|
"stdev": 0.011269409179687662, |
|
"p50": 2.6399566650390627, |
|
"p90": 2.6489721923828125, |
|
"p95": 2.6500991333007815, |
|
"p99": 2.6510006860351565, |
|
"values": [ |
|
2.65122607421875, |
|
2.628687255859375 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.10685026836258 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.28210941505432, |
|
"mean": 0.020877902826301663, |
|
"stdev": 0.0015655806670785356, |
|
"p50": 0.0206059513092041, |
|
"p90": 0.021411635589599607, |
|
"p95": 0.021533900833129883, |
|
"p99": 0.022309396286010738, |
|
"values": [ |
|
0.02241535949707031, |
|
0.022024192810058595, |
|
0.021295103073120117, |
|
0.021377023696899415, |
|
0.02123673629760742, |
|
0.021177343368530274, |
|
0.021130239486694336, |
|
0.020948991775512696, |
|
0.021089279174804687, |
|
0.021396480560302734, |
|
0.021407743453979493, |
|
0.02102579116821289, |
|
0.02131046485900879, |
|
0.021428224563598632, |
|
0.02142310333251953, |
|
0.021120000839233398, |
|
0.021146623611450196, |
|
0.021072895050048827, |
|
0.021209087371826172, |
|
0.021227519989013673, |
|
0.02099404716491699, |
|
0.02104319953918457, |
|
0.02106675148010254, |
|
0.020945920944213867, |
|
0.021142528533935546, |
|
0.021465087890625, |
|
0.021411840438842773, |
|
0.021227519989013673, |
|
0.02142207908630371, |
|
0.022525951385498046, |
|
0.020946943283081054, |
|
0.021782527923583983, |
|
0.021412864685058593, |
|
0.021133312225341795, |
|
0.02104319953918457, |
|
0.021015552520751952, |
|
0.02101043128967285, |
|
0.02104115104675293, |
|
0.02131865692138672, |
|
0.02086809539794922, |
|
0.02084864044189453, |
|
0.02085068893432617, |
|
0.02104217529296875, |
|
0.020996095657348633, |
|
0.02065203285217285, |
|
0.020526079177856444, |
|
0.020527103424072265, |
|
0.020501504898071288, |
|
0.020540416717529295, |
|
0.020521984100341797, |
|
0.020537343978881836, |
|
0.020544511795043945, |
|
0.020567039489746093, |
|
0.020726783752441406, |
|
0.020585472106933594, |
|
0.020558847427368163, |
|
0.020624383926391602, |
|
0.020540416717529295, |
|
0.020556800842285155, |
|
0.020520959854125977, |
|
0.020553728103637696, |
|
0.020509695053100584, |
|
0.020516864776611327, |
|
0.020611072540283205, |
|
0.02062745666503906, |
|
0.020572160720825194, |
|
0.020700159072875975, |
|
0.02063667106628418, |
|
0.020725759506225586, |
|
0.020668415069580077, |
|
0.02066431999206543, |
|
0.020634624481201173, |
|
0.020617216110229493, |
|
0.020599807739257812, |
|
0.02062233543395996, |
|
0.02063871955871582, |
|
0.02062950325012207, |
|
0.020590591430664062, |
|
0.020566015243530272, |
|
0.020990976333618162, |
|
0.021557247161865235, |
|
0.021551103591918946, |
|
0.022211584091186523, |
|
0.021493759155273438, |
|
0.0206059513092041, |
|
0.02063667106628418, |
|
0.020658176422119142, |
|
0.02066431999206543, |
|
0.02065920066833496, |
|
0.02063871955871582, |
|
0.020661247253417968, |
|
0.020723712921142577, |
|
0.02065203285217285, |
|
0.020789247512817383, |
|
0.02065203285217285, |
|
0.020569087982177735, |
|
0.020572160720825194, |
|
0.020552703857421875, |
|
0.020588544845581053, |
|
0.02057219123840332, |
|
0.020615135192871094, |
|
0.020582399368286132, |
|
0.020543487548828124, |
|
0.020556800842285155, |
|
0.020541439056396483, |
|
0.020547584533691408, |
|
0.02063052749633789, |
|
0.02067046356201172, |
|
0.020562944412231447, |
|
0.020567039489746093, |
|
0.020566015243530272, |
|
0.020550655364990233, |
|
0.02049126434326172, |
|
0.02060492706298828, |
|
0.02058956718444824, |
|
0.0206878719329834, |
|
0.020525056838989256, |
|
0.020580352783203124, |
|
0.020537343978881836, |
|
0.020536319732666015, |
|
0.020556800842285155, |
|
0.020531200408935548, |
|
0.020530176162719727, |
|
0.020562944412231447, |
|
0.021098495483398438, |
|
0.02146406364440918, |
|
0.04498329544067383, |
|
0.020495359420776366, |
|
0.020560895919799805, |
|
0.020511743545532226, |
|
0.021001216888427734, |
|
0.020551679611206054, |
|
0.020590591430664062, |
|
0.020555776596069338, |
|
0.020513792037963868, |
|
0.02064588737487793, |
|
0.02049228858947754, |
|
0.020478975296020507, |
|
0.020609024047851563, |
|
0.02058137512207031, |
|
0.020570112228393556, |
|
0.020554752349853517, |
|
0.02046668815612793, |
|
0.020557823181152343, |
|
0.020561920166015626, |
|
0.02058137512207031, |
|
0.020553728103637696, |
|
0.020518911361694335, |
|
0.02046976089477539, |
|
0.020509695053100584, |
|
0.02108723258972168, |
|
0.02182246398925781, |
|
0.021563392639160156, |
|
0.021522432327270507, |
|
0.021522432327270507, |
|
0.021400575637817384, |
|
0.021445632934570313, |
|
0.021410816192626952, |
|
0.02050662422180176, |
|
0.02049945640563965, |
|
0.020543487548828124, |
|
0.020541439056396483, |
|
0.020619264602661135, |
|
0.02043903923034668, |
|
0.02046156883239746, |
|
0.020454399108886717, |
|
0.020436992645263673, |
|
0.021112831115722656, |
|
0.020534271240234374, |
|
0.020495359420776366, |
|
0.021122047424316406, |
|
0.021402624130249022, |
|
0.021596160888671875, |
|
0.021412864685058593, |
|
0.021840896606445313, |
|
0.021410816192626952, |
|
0.020503551483154296, |
|
0.020478975296020507, |
|
0.020479999542236327, |
|
0.020529151916503906, |
|
0.020568063735961914, |
|
0.020526079177856444, |
|
0.02045849609375, |
|
0.020626432418823244, |
|
0.020496383666992187, |
|
0.02048307228088379, |
|
0.020529151916503906, |
|
0.0204902400970459, |
|
0.020599807739257812, |
|
0.020609024047851563, |
|
0.020575231552124023, |
|
0.02048102378845215, |
|
0.020489215850830078, |
|
0.02049945640563965, |
|
0.020502527236938475, |
|
0.020518911361694335, |
|
0.020502527236938475, |
|
0.020521984100341797, |
|
0.020526079177856444, |
|
0.02058137512207031, |
|
0.020602880477905275, |
|
0.020574207305908202, |
|
0.020578304290771485, |
|
0.020592639923095703, |
|
0.020641792297363282, |
|
0.020587520599365236, |
|
0.020556800842285155, |
|
0.020554752349853517, |
|
0.02065203285217285, |
|
0.020644863128662108, |
|
0.020703231811523438, |
|
0.020577280044555665, |
|
0.021497856140136717, |
|
0.020577280044555665, |
|
0.020703231811523438, |
|
0.02062950325012207, |
|
0.020575231552124023, |
|
0.02062848091125488, |
|
0.020554752349853517, |
|
0.02059878349304199, |
|
0.020752384185791017, |
|
0.021715967178344727, |
|
0.020626432418823244, |
|
0.020538368225097657, |
|
0.020552703857421875, |
|
0.02058956718444824, |
|
0.02079539108276367, |
|
0.020797439575195312, |
|
0.020558847427368163, |
|
0.020658176422119142, |
|
0.02058956718444824, |
|
0.020601856231689454, |
|
0.020616191864013672, |
|
0.02045747184753418, |
|
0.02045644760131836, |
|
0.020496383666992187, |
|
0.020595712661743162, |
|
0.020669439315795898, |
|
0.020710399627685547, |
|
0.02065510368347168, |
|
0.02063667106628418, |
|
0.02058137512207031, |
|
0.020595712661743162, |
|
0.020620288848876952, |
|
0.020586496353149415, |
|
0.020661247253417968, |
|
0.02063155174255371, |
|
0.020620288848876952, |
|
0.02082099151611328, |
|
0.020564992904663085, |
|
0.020552703857421875, |
|
0.020536319732666015, |
|
0.020571136474609376 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 47.897531103565406 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |