IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7b6d8a1 verified
raw
history blame
13.6 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+rocm5.7",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"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": {},
"hub_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,
"latency": true,
"memory": true,
"energy": false,
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "eee61510ab9c7b38bd9807712fa942e2f5ba255c",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1049.440256,
"max_global_vram": 3317.379072,
"max_process_vram": 276397.232128,
"max_reserved": 725.614592,
"max_allocated": 512.832512
},
"latency": {
"unit": "s",
"count": 59,
"total": 0.5045977544784547,
"mean": 0.008552504313194145,
"stdev": 0.0006314856456043178,
"p50": 0.00836286163330078,
"p90": 0.009098027801513671,
"p95": 0.00947589864730835,
"p99": 0.010555883655548097,
"values": [
0.011071016311645508,
0.009344940185546874,
0.009475818634033203,
0.009223339080810546,
0.008847021102905273,
0.008209100723266602,
0.00838254165649414,
0.00810782241821289,
0.010182856559753418,
0.008085421562194824,
0.007884781837463379,
0.00836286163330078,
0.008488780975341797,
0.008294061660766601,
0.008058061599731445,
0.008196461677551269,
0.008266700744628906,
0.008046062469482421,
0.008310062408447266,
0.008050702095031738,
0.007941102027893067,
0.007931342124938965,
0.007919662952423096,
0.009026538848876954,
0.008007501602172852,
0.008967659950256347,
0.008909741401672363,
0.008970859527587891,
0.008919340133666992,
0.00889997959136963,
0.00892222023010254,
0.008943659782409668,
0.009046698570251465,
0.008981900215148926,
0.008939499855041505,
0.008911980628967284,
0.008904621124267579,
0.008925900459289551,
0.008904620170593262,
0.009476618766784668,
0.008916460037231445,
0.008968460083007812,
0.008181741714477539,
0.007863502979278564,
0.007886861801147461,
0.009066699981689453,
0.008878219604492187,
0.008724141120910644,
0.008302380561828613,
0.008352460861206055,
0.00811118221282959,
0.007876142978668213,
0.007882542133331298,
0.007861423015594482,
0.007887182235717773,
0.007860783100128175,
0.007865901947021484,
0.007890382766723632,
0.00788142204284668
]
},
"throughput": {
"unit": "tokens/s",
"value": 233.84963359966437
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1049.440256,
"max_global_vram": 3317.379072,
"max_process_vram": 287178.719232,
"max_reserved": 725.614592,
"max_allocated": 513.056256
},
"latency": {
"unit": "s",
"count": 59,
"total": 0.5048206238746642,
"mean": 0.008556281760587531,
"stdev": 0.0006110635471995656,
"p50": 0.008332462310791015,
"p90": 0.009147979736328126,
"p95": 0.009366779136657715,
"p99": 0.010375592651367189,
"values": [
0.009443819046020508,
0.009306538581848144,
0.009358219146728516,
0.00915053939819336,
0.008449260711669921,
0.008463821411132812,
0.008169740676879882,
0.00823358154296875,
0.008409741401672364,
0.008029261589050292,
0.008001103401184081,
0.008307500839233399,
0.008894539833068848,
0.008028621673583985,
0.008217901229858398,
0.008128461837768554,
0.007997262001037597,
0.008161581993103028,
0.0081511812210083,
0.008176941871643067,
0.008125421524047851,
0.008011981964111329,
0.008063021659851075,
0.008112462043762207,
0.008332462310791015,
0.008966540336608887,
0.009799017906188964,
0.00906541919708252,
0.009046219825744628,
0.00897517967224121,
0.009016619682312012,
0.009031180381774903,
0.009127180099487304,
0.009052300453186035,
0.008998379707336426,
0.008983498573303222,
0.008990058898925781,
0.00900302028656006,
0.011171814918518066,
0.008991499900817872,
0.009147339820861817,
0.009010858535766601,
0.007968942165374755,
0.007952301979064942,
0.00793870210647583,
0.008988459587097168,
0.008938380241394043,
0.008315980911254883,
0.008359182357788085,
0.008453420639038086,
0.007940462112426758,
0.007939981937408446,
0.00794958209991455,
0.007978382110595704,
0.00808126163482666,
0.007986382007598877,
0.007966541767120361,
0.007983500957489014,
0.007978062152862548
]
},
"throughput": {
"unit": "tokens/s",
"value": 116.87319655674048
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 58,
"total": 0.9909325056076047,
"mean": 0.01708504320013112,
"stdev": 0.0010563713632506311,
"p50": 0.016710203170776365,
"p90": 0.01854709510803223,
"p95": 0.01872734327316284,
"p99": 0.019322692260742187,
"values": [
0.018585397720336915,
0.018898197174072266,
0.01853067970275879,
0.0173585205078125,
0.01672540283203125,
0.016607002258300783,
0.01636572456359863,
0.018638198852539062,
0.016191003799438476,
0.015915803909301758,
0.016660282135009766,
0.017414520263671875,
0.016386844635009765,
0.01627132225036621,
0.016396284103393555,
0.01629500389099121,
0.01624156379699707,
0.01649116325378418,
0.016258523941040038,
0.016092283248901367,
0.015973883628845213,
0.015969884872436522,
0.017214040756225586,
0.016369564056396484,
0.017918039321899414,
0.01872443962097168,
0.01808955955505371,
0.01798859977722168,
0.01792251968383789,
0.017956439971923827,
0.018010679244995116,
0.018212440490722657,
0.01808219909667969,
0.01797835922241211,
0.017929239273071287,
0.017928760528564455,
0.017956920623779297,
0.01988539505004883,
0.018743797302246092,
0.01809996032714844,
0.01801339912414551,
0.016226844787597658,
0.015845404624938966,
0.01584748363494873,
0.018054040908813476,
0.017844120025634767,
0.017111162185668945,
0.016695003509521484,
0.01683500289916992,
0.016081243515014648,
0.015843645095825195,
0.015863003730773925,
0.015864925384521486,
0.01599900436401367,
0.015868925094604493,
0.015866363525390625,
0.015905083656311034,
0.015889404296875
]
},
"throughput": {
"unit": "tokens/s",
"value": 58.530727039210845
},
"energy": null,
"efficiency": null
}
}
}