IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
42f0f12 verified
raw
history blame
17.2 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"model_type": "gpt2",
"model": "openai-community/gpt2",
"processor": "openai-community/gpt2",
"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": null,
"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": {},
"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": 1,
"duration": 1,
"warmup_runs": 1,
"input_shapes": {
"batch_size": 1,
"num_choices": 2,
"sequence_length": 2
},
"new_tokens": null,
"memory": true,
"latency": true,
"energy": true,
"forward_kwargs": {},
"generate_kwargs": {
"max_new_tokens": 2,
"min_new_tokens": 2
},
"call_kwargs": {
"num_inference_steps": 2
}
},
"launcher": {
"name": "process",
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
"device_isolation": true,
"device_isolation_action": "error",
"numactl": false,
"numactl_kwargs": {},
"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.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.777216,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.18457568359375,
"mean": 7.18457568359375,
"stdev": 0.0,
"p50": 7.18457568359375,
"p90": 7.18457568359375,
"p95": 7.18457568359375,
"p99": 7.18457568359375,
"values": [
7.18457568359375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.945389297273424e-07,
"ram": 5.294725699499736e-07,
"gpu": 1.7719458620005062e-06,
"total": 3.295957361677822e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1051.648,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.48906957006454466,
"mean": 0.006699583151569106,
"stdev": 0.00043316100088894023,
"p50": 0.006777696132659912,
"p90": 0.007210412788391113,
"p95": 0.007280172824859619,
"p99": 0.0073887668418884285,
"values": [
0.007500671863555909,
0.007345248222351075,
0.007096992015838623,
0.007262752056121826,
0.00702339220046997,
0.007154687881469727,
0.007189087867736817,
0.006953248023986816,
0.006963583946228027,
0.007188096046447754,
0.007159423828125,
0.007183231830596924,
0.007084832191467285,
0.0071599998474121095,
0.006720384120941162,
0.0067636799812316895,
0.00724128007888794,
0.007055583953857422,
0.0073343682289123534,
0.0072137279510498045,
0.007031871795654297,
0.007029791831970215,
0.007017792224884033,
0.006798816204071045,
0.0070731520652771,
0.007197152137756348,
0.007076608180999756,
0.006777696132659912,
0.006822527885437012,
0.006851871967315674,
0.006985023975372314,
0.007239999771118164,
0.007092864036560059,
0.006946368217468262,
0.006921440124511719,
0.00676793622970581,
0.00696121597290039,
0.006641983985900879,
0.006566336154937744,
0.006934912204742432,
0.007004511833190918,
0.007306303977966309,
0.006768288135528565,
0.006627456188201904,
0.006543392181396484,
0.006334496021270752,
0.0062239041328430176,
0.006244800090789795,
0.006203904151916504,
0.006203360080718994,
0.006220672130584717,
0.006226655960083008,
0.0062345280647277835,
0.006228928089141846,
0.006174015998840332,
0.006190144062042237,
0.006216415882110596,
0.006207359790802002,
0.00620249605178833,
0.0061803522109985356,
0.00621014404296875,
0.0061996479034423825,
0.00619536018371582,
0.006206399917602539,
0.0062130880355834965,
0.006172927856445312,
0.006195744037628174,
0.006155744075775147,
0.00614739179611206,
0.0061307201385498045,
0.006126527786254883,
0.006092063903808594,
0.0061521921157836916
]
},
"throughput": {
"unit": "tokens/s",
"value": 298.5260358372567
},
"energy": {
"unit": "kWh",
"cpu": 7.943676355434477e-08,
"ram": 4.343151630032787e-08,
"gpu": 1.5388901200000193e-07,
"total": 2.767572918546745e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7226548.527762736
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1067.290624,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5110155177116394,
"mean": 0.007000212571392319,
"stdev": 0.000469977348267251,
"p50": 0.007133440017700195,
"p90": 0.0074902848243713375,
"p95": 0.007554348754882812,
"p99": 0.007812259750366211,
"values": [
0.007702911853790283,
0.007438720226287842,
0.007424895763397217,
0.007465343952178955,
0.007328127861022949,
0.007416192054748535,
0.007578464031219483,
0.00744374418258667,
0.007357503890991211,
0.0074908480644226075,
0.007443520069122314,
0.0073702077865600586,
0.007458847999572754,
0.007266655921936035,
0.007124735832214356,
0.007293856143951416,
0.0073744959831237794,
0.007503903865814209,
0.008093440055847168,
0.007488031864166259,
0.007133440017700195,
0.0074397120475769045,
0.007470431804656982,
0.00742790412902832,
0.007373055934906006,
0.007402048110961914,
0.0073825597763061525,
0.00708841609954834,
0.007181983947753906,
0.007241471767425537,
0.0075012798309326174,
0.007357151985168457,
0.007538271903991699,
0.007371551990509033,
0.007266240119934082,
0.0070915517807006835,
0.007001920223236084,
0.0068057279586791995,
0.006966239929199218,
0.007263423919677735,
0.007356927871704101,
0.0074174079895019535,
0.006889056205749511,
0.007605055809020996,
0.006574783802032471,
0.006521088123321533,
0.006452864170074463,
0.0064850239753723145,
0.006494815826416016,
0.006465568065643311,
0.006546624183654785,
0.0064563841819763185,
0.006509791851043701,
0.006465439796447754,
0.0064468798637390134,
0.006457151889801026,
0.006439487934112548,
0.006480671882629394,
0.00646947193145752,
0.006531968116760254,
0.006450463771820068,
0.006449567794799805,
0.0064527359008789064,
0.006480832099914551,
0.006461408138275147,
0.006456799983978271,
0.006400000095367431,
0.006387839794158936,
0.006464479923248291,
0.006390560150146485,
0.006398431777954102,
0.00641212797164917,
0.00637497615814209
]
},
"throughput": {
"unit": "tokens/s",
"value": 142.85280479719822
},
"energy": {
"unit": "kWh",
"cpu": 7.275578780175079e-08,
"ram": 3.978030946429616e-08,
"gpu": 1.41812791512815e-07,
"total": 2.5434888877886203e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3931607.5049552415
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4778299837112427,
"mean": 0.006545616215222504,
"stdev": 0.00040680883886766585,
"p50": 0.0066406397819519045,
"p90": 0.006978559970855713,
"p95": 0.007045939254760742,
"p99": 0.007267246150970459,
"values": [
0.007177216053009033,
0.0069253120422363285,
0.006916096210479736,
0.006955935955047608,
0.00683622407913208,
0.006892608165740967,
0.007053311824798584,
0.006903808116912841,
0.006829055786132812,
0.00698367977142334,
0.006906847953796386,
0.006853631973266602,
0.006945792198181152,
0.006782976150512696,
0.0066406397819519045,
0.006804480075836182,
0.006873087882995605,
0.006978559970855713,
0.007498752117156982,
0.006978559970855713,
0.006623231887817383,
0.0069253120422363285,
0.0069407038688659665,
0.006928351879119873,
0.006874112129211426,
0.006907904148101806,
0.006829055786132812,
0.006584320068359375,
0.006660096168518067,
0.006729728221893311,
0.0069816322326660156,
0.006852575778961182,
0.007041024208068848,
0.006870016098022461,
0.006755328178405762,
0.006605823993682861,
0.00657919979095459,
0.006386688232421875,
0.0065443840026855465,
0.006766592025756836,
0.006845439910888672,
0.0069632000923156735,
0.006459455966949463,
0.007087103843688965,
0.006194176197052002,
0.006142975807189942,
0.0060702719688415525,
0.006108160018920898,
0.0061132159233093265,
0.006088704109191895,
0.006161407947540283,
0.006079487800598145,
0.006109183788299561,
0.006080480098724366,
0.006065152168273926,
0.00608358383178711,
0.006064127922058105,
0.006098944187164307,
0.006093823909759521,
0.006155263900756836,
0.0060702719688415525,
0.006062079906463623,
0.006076416015625,
0.006087679862976075,
0.00608460807800293,
0.006080512046813965,
0.006022111892700195,
0.006005760192871094,
0.006089727878570556,
0.006013951778411865,
0.006004735946655273,
0.0060405759811401364,
0.006004735946655273
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.77400432894265
},
"energy": null,
"efficiency": null
}
}
}