|
{ |
|
"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.29792, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.217-205.860.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": "dcdda5324bcc7a750b5e40e11dd795442204ff27", |
|
"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": 1755.07456, |
|
"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.043486080169677734, |
|
"mean": 0.021743040084838867, |
|
"stdev": 0.00020393562316894584, |
|
"p50": 0.021743040084838867, |
|
"p90": 0.021906188583374023, |
|
"p95": 0.021926582145690918, |
|
"p99": 0.021942896995544435, |
|
"values": [ |
|
0.021946975708007813, |
|
0.02153910446166992 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 321.9421006762071 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1755.09504, |
|
"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.081382080078125, |
|
"mean": 2.5406910400390625, |
|
"stdev": 0.017279418945312486, |
|
"p50": 2.5406910400390625, |
|
"p90": 2.5545145751953124, |
|
"p95": 2.556242517089844, |
|
"p99": 2.5576248706054687, |
|
"values": [ |
|
2.557970458984375, |
|
2.52341162109375 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 49.98640054953215 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.0824058990478544, |
|
"mean": 0.02008856086580179, |
|
"stdev": 0.0013935931823058378, |
|
"p50": 0.0198154239654541, |
|
"p90": 0.02061311912536621, |
|
"p95": 0.02069729309082031, |
|
"p99": 0.02134241310119629, |
|
"values": [ |
|
0.021737472534179687, |
|
0.019982336044311523, |
|
0.020807680130004884, |
|
0.020725759506225586, |
|
0.020682752609252928, |
|
0.019793920516967774, |
|
0.019762176513671875, |
|
0.019717119216918946, |
|
0.019720191955566405, |
|
0.019722240447998047, |
|
0.019935232162475586, |
|
0.01986355209350586, |
|
0.01978982353210449, |
|
0.019715072631835938, |
|
0.019728384017944335, |
|
0.019715072631835938, |
|
0.0214835205078125, |
|
0.020708351135253905, |
|
0.020674560546875, |
|
0.020632575988769532, |
|
0.02062335968017578, |
|
0.020617216110229493, |
|
0.020699136734008788, |
|
0.02067865562438965, |
|
0.020641792297363282, |
|
0.02063155174255371, |
|
0.020572160720825194, |
|
0.020547584533691408, |
|
0.02061311912536621, |
|
0.020579328536987306, |
|
0.020616191864013672, |
|
0.020544511795043945, |
|
0.020537343978881836, |
|
0.019787776947021486, |
|
0.01982259178161621, |
|
0.019819520950317384, |
|
0.01987276840209961, |
|
0.0198604793548584, |
|
0.01984511947631836, |
|
0.0198922233581543, |
|
0.02032640075683594, |
|
0.019883007049560548, |
|
0.019993600845336915, |
|
0.019914751052856446, |
|
0.01982975959777832, |
|
0.01984716796875, |
|
0.01987379264831543, |
|
0.020588544845581053, |
|
0.020686847686767578, |
|
0.020590591430664062, |
|
0.020717567443847656, |
|
0.020385791778564453, |
|
0.019938304901123048, |
|
0.019869695663452147, |
|
0.01979084777832031, |
|
0.019738624572753907, |
|
0.019761152267456054, |
|
0.019780607223510743, |
|
0.019767295837402343, |
|
0.019811328887939454, |
|
0.019907583236694337, |
|
0.019907583236694337, |
|
0.019862527847290038, |
|
0.019753984451293945, |
|
0.01984000015258789, |
|
0.020153343200683595, |
|
0.01983283233642578, |
|
0.019796991348266603, |
|
0.020414464950561522, |
|
0.020136959075927736, |
|
0.019785728454589844, |
|
0.019825664520263672, |
|
0.019799072265625, |
|
0.020015071868896485, |
|
0.01963417625427246, |
|
0.019919872283935547, |
|
0.020107263565063475, |
|
0.019781631469726564, |
|
0.020418560028076172, |
|
0.020695039749145508, |
|
0.019958784103393554, |
|
0.01977446365356445, |
|
0.020966400146484376, |
|
0.02045132827758789, |
|
0.02030284881591797, |
|
0.020254720687866212, |
|
0.020273151397705077, |
|
0.02025574493408203, |
|
0.020311040878295897, |
|
0.02047590446472168, |
|
0.020155391693115234, |
|
0.019810304641723633, |
|
0.020393983840942383, |
|
0.020355072021484375, |
|
0.02028441619873047, |
|
0.020198400497436524, |
|
0.020117504119873047, |
|
0.020017152786254884, |
|
0.020360191345214843, |
|
0.020435968399047853, |
|
0.020328447341918944, |
|
0.020785152435302736, |
|
0.02030182456970215, |
|
0.020262912750244142, |
|
0.01989017677307129, |
|
0.019729408264160156, |
|
0.019735551834106444, |
|
0.019765247344970704, |
|
0.019997695922851562, |
|
0.020993024826049804, |
|
0.02045337677001953, |
|
0.019768320083618163, |
|
0.019762176513671875, |
|
0.01978265571594238, |
|
0.019733503341674806, |
|
0.019725311279296876, |
|
0.019723264694213868, |
|
0.02017791938781738, |
|
0.020346879959106445, |
|
0.01986662483215332, |
|
0.019788799285888673, |
|
0.019800064086914062, |
|
0.0198287353515625, |
|
0.019773439407348634, |
|
0.019780607223510743, |
|
0.019785728454589844, |
|
0.04143718338012695, |
|
0.020131839752197265, |
|
0.019771392822265626, |
|
0.019810304641723633, |
|
0.019721216201782226, |
|
0.019757055282592775, |
|
0.019723264694213868, |
|
0.019778560638427735, |
|
0.01982975959777832, |
|
0.019746816635131836, |
|
0.019745792388916016, |
|
0.019715072631835938, |
|
0.019757055282592775, |
|
0.01983692741394043, |
|
0.019818496704101563, |
|
0.019842048645019532, |
|
0.019800064086914062, |
|
0.019758079528808595, |
|
0.01978982353210449, |
|
0.019756032943725587, |
|
0.019713024139404296, |
|
0.019726335525512697, |
|
0.019733503341674806, |
|
0.019762176513671875, |
|
0.019740671157836915, |
|
0.019731456756591798, |
|
0.019893247604370116, |
|
0.02024550437927246, |
|
0.019711999893188475, |
|
0.019794944763183595, |
|
0.019778560638427735, |
|
0.019813375473022463, |
|
0.01966080093383789, |
|
0.019786752700805665, |
|
0.019756032943725587, |
|
0.019770368576049805, |
|
0.019736576080322265, |
|
0.019728384017944335, |
|
0.019749887466430666, |
|
0.01979084777832031, |
|
0.019725311279296876, |
|
0.019783679962158202, |
|
0.01988403129577637, |
|
0.021212160110473634, |
|
0.02069606399536133, |
|
0.02007961654663086, |
|
0.019941375732421874, |
|
0.019805183410644533, |
|
0.019553279876708983, |
|
0.019545087814331053, |
|
0.019737600326538086, |
|
0.020133888244628906, |
|
0.019748863220214845, |
|
0.019834880828857423, |
|
0.019730432510375977, |
|
0.02061311912536621, |
|
0.02101043128967285, |
|
0.020601856231689454, |
|
0.020419584274291993, |
|
0.020378623962402344, |
|
0.020340736389160157, |
|
0.019943424224853516, |
|
0.019793920516967774, |
|
0.019787776947021486, |
|
0.019758079528808595, |
|
0.020139007568359374, |
|
0.019817472457885742, |
|
0.019755008697509766, |
|
0.01970790481567383, |
|
0.019931135177612306, |
|
0.019922943115234376, |
|
0.01980620765686035, |
|
0.019795967102050782, |
|
0.019803136825561524, |
|
0.02043187141418457, |
|
0.020537343978881836, |
|
0.01999667167663574, |
|
0.019781631469726564, |
|
0.0198154239654541, |
|
0.01983795166015625, |
|
0.01978265571594238, |
|
0.01982054328918457, |
|
0.019808256149291992, |
|
0.019764223098754884, |
|
0.01983078384399414, |
|
0.019786752700805665, |
|
0.019720191955566405, |
|
0.019793920516967774, |
|
0.019729408264160156, |
|
0.019770368576049805, |
|
0.019749887466430666, |
|
0.019796991348266603, |
|
0.019755104064941405, |
|
0.019798944473266602, |
|
0.019751935958862304, |
|
0.019769344329833984, |
|
0.019792896270751953, |
|
0.019776512145996093, |
|
0.019784704208374023, |
|
0.019763200759887696, |
|
0.019760128021240234, |
|
0.020158464431762696, |
|
0.019772415161132813, |
|
0.019801088333129883, |
|
0.019714048385620117, |
|
0.019773439407348634, |
|
0.019792896270751953, |
|
0.01980620765686035, |
|
0.019730432510375977, |
|
0.019803136825561524, |
|
0.019759103775024413, |
|
0.019765247344970704, |
|
0.019785728454589844, |
|
0.019804159164428712, |
|
0.019776512145996093, |
|
0.01982054328918457, |
|
0.020113407135009767, |
|
0.019819520950317384, |
|
0.019746816635131836, |
|
0.019810304641723633, |
|
0.019741695404052736, |
|
0.019779584884643556, |
|
0.019735551834106444, |
|
0.019743743896484374, |
|
0.019750911712646483, |
|
0.02004377555847168, |
|
0.02003660774230957 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 49.779573891844706 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |