IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ac7cda4 verified
raw
history blame
17.3 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.3.1",
"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.26112,
"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.19593798828125,
"mean": 7.19593798828125,
"stdev": 0.0,
"p50": 7.19593798828125,
"p90": 7.19593798828125,
"p95": 7.19593798828125,
"p99": 7.19593798828125,
"values": [
7.19593798828125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.747828046480815e-07,
"ram": 5.186352091006559e-07,
"gpu": 0.0,
"total": 1.4934180137487373e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1021.448192,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.49276134586334236,
"mean": 0.006658937106261383,
"stdev": 0.00035780243400032954,
"p50": 0.006766864061355591,
"p90": 0.007083030557632446,
"p95": 0.0071424128532409665,
"p99": 0.007405242695808409,
"values": [
0.007657343864440918,
0.007074048042297363,
0.00682147216796875,
0.006932640075683593,
0.00682531213760376,
0.007311999797821045,
0.007160799980163574,
0.007250239849090576,
0.006767807960510254,
0.006861567974090576,
0.00697376012802124,
0.006931007862091065,
0.006846303939819336,
0.006904863834381104,
0.006765920162200928,
0.0067768640518188475,
0.0071140480041503905,
0.007086880207061767,
0.0068830718994140625,
0.006944896221160889,
0.006883200168609619,
0.006772672176361084,
0.006932384014129639,
0.006867775917053223,
0.006687424182891846,
0.006828447818756103,
0.0070442562103271485,
0.007132512092590332,
0.0068167362213134765,
0.007029056072235107,
0.007032608032226563,
0.006986271858215332,
0.006956863880157471,
0.006846752166748047,
0.0067966079711914065,
0.006703519821166992,
0.006568384170532226,
0.006787392139434814,
0.0066665921211242676,
0.006686399936676026,
0.006861120223999023,
0.006809663772583008,
0.007102848052978516,
0.006718239784240723,
0.006625472068786621,
0.0067012162208557125,
0.006644320011138916,
0.006250016212463379,
0.006243872165679932,
0.006245312213897705,
0.00635811185836792,
0.006232319831848144,
0.006260223865509033,
0.006272128105163574,
0.006211584091186524,
0.006197824001312256,
0.006210912227630616,
0.006211775779724121,
0.006230336189270019,
0.006232192039489746,
0.00621884822845459,
0.006237472057342529,
0.006223680019378662,
0.006244959831237793,
0.006251423835754394,
0.006246240139007569,
0.006229695796966553,
0.006210495948791504,
0.006254271984100342,
0.006247392177581787,
0.006239264011383056,
0.006208703994750976,
0.006178847789764404,
0.006233856201171875
]
},
"throughput": {
"unit": "tokens/s",
"value": 300.3482339725667
},
"energy": {
"unit": "kWh",
"cpu": 7.723949172280052e-08,
"ram": 4.223055613683376e-08,
"gpu": 1.5190849093506923e-07,
"total": 2.713785387947035e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7369779.529666456
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1037.090816,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.5131435513496398,
"mean": 0.006934372315535673,
"stdev": 0.00036215551553221367,
"p50": 0.007004480123519898,
"p90": 0.007390748739242553,
"p95": 0.007445918345451355,
"p99": 0.007481539144515991,
"values": [
0.007482240200042725,
0.007209983825683594,
0.007161439895629883,
0.007271711826324463,
0.006999904155731201,
0.0074364800453186036,
0.007475456237792969,
0.007481279850006103,
0.007120031833648682,
0.007263391971588135,
0.007336544036865234,
0.007276512145996093,
0.007200384140014648,
0.007229695796966553,
0.007125792026519776,
0.007061920166015625,
0.007385216236114502,
0.007440351963043213,
0.007293344020843506,
0.007282559871673584,
0.007137407779693603,
0.007268064022064209,
0.007146336078643799,
0.007268703937530517,
0.007138336181640625,
0.007171775817871094,
0.007009056091308594,
0.007370944023132324,
0.007417247772216797,
0.007456255912780762,
0.007393119812011718,
0.007354464054107666,
0.007324416160583496,
0.007048480033874512,
0.007197887897491455,
0.006964640140533447,
0.006899712085723877,
0.0067547521591186524,
0.006831583976745606,
0.007009664058685303,
0.00706553602218628,
0.007358399868011475,
0.006967103958129882,
0.006916639804840088,
0.006834239959716797,
0.006796031951904297,
0.006778304100036621,
0.006490143775939941,
0.006498559951782227,
0.0065064640045166015,
0.006591616153717041,
0.006513567924499511,
0.006487264156341553,
0.006475296020507813,
0.006450816154479981,
0.006438975811004639,
0.006516799926757812,
0.006518303871154785,
0.006473279953002929,
0.006580351829528808,
0.006498816013336181,
0.006515488147735595,
0.006522719860076904,
0.006504320144653321,
0.006449600219726562,
0.006500127792358398,
0.006503935813903809,
0.006528287887573242,
0.006571360111236572,
0.0064990720748901365,
0.0064841279983520505,
0.006490975856781006,
0.006502848148345947,
0.006617087841033936
]
},
"throughput": {
"unit": "tokens/s",
"value": 144.2091590264938
},
"energy": {
"unit": "kWh",
"cpu": 7.454132392817698e-08,
"ram": 4.067018205181881e-08,
"gpu": 1.4461073362188855e-07,
"total": 2.598222396018844e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3848785.236907593
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.47979795217514043,
"mean": 0.006483756110474871,
"stdev": 0.00030444016685791047,
"p50": 0.006545408010482788,
"p90": 0.00686897292137146,
"p95": 0.006927257418632507,
"p99": 0.0069615700674057,
"values": [
0.006936575889587402,
0.006673408031463623,
0.006658048152923584,
0.006729728221893311,
0.00652288007736206,
0.006922239780426025,
0.006956031799316406,
0.00697654390335083,
0.006598656177520752,
0.006758399963378906,
0.006821760177612305,
0.006779903888702392,
0.00669593620300293,
0.006725632190704346,
0.0066499199867248535,
0.006569983959197998,
0.006861760139465332,
0.006890495777130127,
0.006770688056945801,
0.0067645440101623535,
0.006657023906707763,
0.0067420158386230465,
0.006648831844329834,
0.006774784088134766,
0.006636544227600098,
0.006661119937896728,
0.006533120155334473,
0.006848512172698974,
0.006910975933074951,
0.006946815967559815,
0.006872064113616944,
0.006829055786132812,
0.006810624122619629,
0.006576128005981445,
0.006710271835327148,
0.006502399921417237,
0.006412288188934326,
0.006355967998504639,
0.006429696083068847,
0.006578239917755127,
0.00662937593460083,
0.006842175960540772,
0.006557695865631104,
0.006489088058471679,
0.0064245758056640625,
0.006405119895935059,
0.006387712001800537,
0.006106112003326416,
0.006120448112487793,
0.006106112003326416,
0.00620851182937622,
0.006127615928649902,
0.006108160018920898,
0.006095871925354004,
0.006048768043518066,
0.006060031890869141,
0.006128672122955322,
0.006139904022216797,
0.006094848155975342,
0.006177792072296143,
0.006118400096893311,
0.0061265921592712404,
0.006144000053405762,
0.0061224961280822755,
0.006071296215057373,
0.006121471881866455,
0.006123456001281738,
0.006147071838378906,
0.006191103935241699,
0.006111231803894043,
0.006103040218353272,
0.006111231803894043,
0.0061132159233093265,
0.006235136032104492
]
},
"throughput": {
"unit": "tokens/s",
"value": 154.2315878267605
},
"energy": null,
"efficiency": null
}
}
}