IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c542fb9 verified
raw
history blame
14.4 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_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": 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",
"numactl": false,
"numactl_kwargs": {},
"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.3.1",
"optimum_benchmark_commit": "693db979e9b302426a0eee51d54cc298ad108515",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 901.14048,
"max_global_vram": 3298.381824,
"max_process_vram": 48600.04352,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.08937158203125,
"mean": 8.08937158203125,
"stdev": 0.0,
"p50": 8.08937158203125,
"p90": 8.08937158203125,
"p95": 8.08937158203125,
"p99": 8.08937158203125,
"values": [
8.08937158203125
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.772672,
"max_global_vram": 3391.082496,
"max_process_vram": 294964.260864,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5137977409362793,
"mean": 0.009013995455022445,
"stdev": 0.00042954149165347767,
"p50": 0.008914063453674317,
"p90": 0.009108782768249512,
"p95": 0.009174894714355468,
"p99": 0.010554008750915521,
"values": [
0.008695822715759277,
0.009106223106384276,
0.009154542922973633,
0.00910190200805664,
0.009087342262268067,
0.00905438232421875,
0.009129902839660645,
0.009047503471374512,
0.009112622261047363,
0.009316942214965821,
0.009091822624206543,
0.009088143348693848,
0.009103022575378417,
0.009256301879882812,
0.012128457069396973,
0.009062382698059082,
0.008890703201293945,
0.008859823226928711,
0.00891726303100586,
0.008878863334655762,
0.008897103309631348,
0.008932942390441895,
0.008912942886352538,
0.008927183151245117,
0.008919022560119628,
0.008903983116149903,
0.008914063453674317,
0.00889486312866211,
0.00890366268157959,
0.008917102813720703,
0.0088975830078125,
0.008901423454284667,
0.008897262573242188,
0.008883182525634765,
0.008916462898254394,
0.008912463188171387,
0.008897903442382813,
0.00888990306854248,
0.008890063285827636,
0.008929423332214356,
0.008886222839355468,
0.008939343452453613,
0.008905902862548828,
0.008911342620849609,
0.00890958309173584,
0.008990543365478516,
0.008905583381652833,
0.008899183273315429,
0.00894078254699707,
0.008886383056640626,
0.00889390277862549,
0.008924142837524414,
0.008910383224487305,
0.008968623161315917,
0.008906063079833984,
0.008878382682800293,
0.008918863296508789
]
},
"throughput": {
"unit": "tokens/s",
"value": 221.87719197102922
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.772672,
"max_global_vram": 3394.1504,
"max_process_vram": 286895.26784,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.49927760696411133,
"mean": 0.008759256262528268,
"stdev": 9.738664951088296e-05,
"p50": 0.00875998306274414,
"p90": 0.008874990844726562,
"p95": 0.00891742286682129,
"p99": 0.008995899467468262,
"values": [
0.00867950439453125,
0.008879022598266601,
0.008825742721557617,
0.008719823837280273,
0.008788463592529296,
0.008872303009033203,
0.008845903396606446,
0.008848942756652833,
0.008982382774353027,
0.009013102531433106,
0.008783662796020508,
0.008835983276367188,
0.008744623184204102,
0.008724783897399902,
0.008908622741699219,
0.008803503036499023,
0.008712304115295411,
0.008800622940063476,
0.008803342819213867,
0.008789902687072753,
0.008820464134216308,
0.008813263893127442,
0.008902063369750976,
0.008777743339538574,
0.00875998306274414,
0.008720623016357423,
0.008800784111022949,
0.008718382835388184,
0.00878126335144043,
0.008756142616271972,
0.008734543800354004,
0.008818543434143067,
0.008791502952575683,
0.008724143981933594,
0.00881518268585205,
0.00895262336730957,
0.00884078311920166,
0.00867118263244629,
0.008740143775939941,
0.008795022964477539,
0.008676623344421387,
0.008753743171691895,
0.008761743545532226,
0.008589583396911621,
0.008625424385070801,
0.008608142852783203,
0.008565263748168945,
0.008636302947998047,
0.008752142906188965,
0.00864078426361084,
0.008619983673095704,
0.008682703971862793,
0.008690543174743652,
0.008671504020690918,
0.008711821556091308,
0.008604623794555665,
0.00858974266052246
]
},
"throughput": {
"unit": "tokens/s",
"value": 114.16494392086211
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 57,
"total": 0.4588266434669494,
"mean": 0.00804959023626227,
"stdev": 8.18477261012544e-05,
"p50": 0.008027185440063476,
"p90": 0.00814027214050293,
"p95": 0.008198287963867186,
"p99": 0.008306980323791504,
"values": [
0.008055665016174317,
0.008188143730163574,
0.008102704048156738,
0.008071185111999512,
0.008063184738159179,
0.008172305107116699,
0.008115183830261231,
0.008135503768920898,
0.008267345428466797,
0.00835742473602295,
0.008112144470214844,
0.008137264251708985,
0.008114543914794922,
0.00809310531616211,
0.00823886489868164,
0.00800798511505127,
0.00801342487335205,
0.008034383773803711,
0.008027185440063476,
0.008031825065612792,
0.008032625198364257,
0.008054064750671388,
0.008132944107055664,
0.008048463821411132,
0.008020624160766602,
0.007989745140075683,
0.008044625282287598,
0.008011504173278809,
0.008018224716186524,
0.008008785247802734,
0.008019185066223145,
0.008079983711242677,
0.008033425331115722,
0.007952145099639893,
0.008059184074401855,
0.008144783973693847,
0.008021903991699218,
0.00800190544128418,
0.008003344535827637,
0.008032784461975098,
0.007966384887695313,
0.008014385223388671,
0.008009264945983887,
0.007957104206085206,
0.007971505165100097,
0.007976463794708252,
0.007985264778137206,
0.007977263927459717,
0.008104624748229981,
0.007969584941864014,
0.00796494483947754,
0.007985744953155518,
0.008022705078125,
0.008000945091247559,
0.007991662979125977,
0.007946545124053956,
0.007932623863220216
]
},
"throughput": {
"unit": "tokens/s",
"value": 124.22992607687542
},
"energy": null,
"efficiency": null
}
}
}