IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
01d14d2 verified
raw
history blame
17.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+cu124",
"_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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.225-213.878.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.5.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.0",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.0",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 804.929536,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.08013926696777343
],
"count": 1,
"total": 0.08013926696777343,
"mean": 0.08013926696777343,
"p50": 0.08013926696777343,
"p90": 0.08013926696777343,
"p95": 0.08013926696777343,
"p99": 0.08013926696777343,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1225.4208,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"values": [
0.007147295951843262,
0.007207007884979248,
0.006913728237152099,
0.007047455787658691,
0.0070095682144165035,
0.007066271781921387,
0.007072544097900391,
0.007233727931976319,
0.00718064022064209,
0.007387199878692627,
0.006938176155090332,
0.00714518404006958,
0.0072169919013977055,
0.007126336097717285,
0.0068755202293396,
0.006990367889404297,
0.0070581440925598146,
0.007112160205841065,
0.007040160179138184,
0.0071244797706604005,
0.006995232105255127,
0.00698576021194458,
0.007245088100433349,
0.007188576221466065,
0.007226719856262207,
0.0071064958572387696,
0.007309792041778565,
0.007044288158416748,
0.006911200046539306,
0.006817440032958985,
0.007079264163970947,
0.006607935905456543,
0.008064160346984863,
0.008828960418701171,
0.008656831741333007,
0.007361536026000977,
0.0068046717643737795,
0.006662655830383301,
0.007599711894989014,
0.006671040058135986,
0.0066767997741699215,
0.006770624160766602,
0.006623712062835694,
0.0066657280921936036,
0.006610496044158936,
0.0065084161758422856,
0.0064291200637817385,
0.006359903812408447,
0.0064527359008789064,
0.006418784141540527,
0.006426400184631348,
0.006427072048187256,
0.00642521619796753,
0.006475456237792969,
0.006431263923645019,
0.006411007881164551,
0.0064254398345947265,
0.006555776119232178,
0.006608416080474853,
0.00641164779663086,
0.006426655769348145,
0.006491583824157715,
0.006446335792541504,
0.006469888210296631,
0.006433119773864746,
0.006406559944152832,
0.006588128089904785,
0.006703392028808593,
0.007417247772216797,
0.006660287857055664,
0.006499199867248535,
0.00632758378982544
],
"count": 72,
"total": 0.4960443205833437,
"mean": 0.006889504452546438,
"p50": 0.006846480131149292,
"p90": 0.007303321647644043,
"p95": 0.0074993566274642945,
"p99": 0.008706749057769777,
"stdev": 0.0004749967673289212,
"stdev_": 6.89449829955995
},
"throughput": {
"unit": "tokens/s",
"value": 290.29664089421954
},
"energy": {
"unit": "kWh",
"cpu": 8.03853314939934e-08,
"ram": 4.3885893945509735e-08,
"gpu": 1.6000763551351382e-07,
"total": 2.8427886095301693e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7035345.481880702
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1225.4208,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"values": [
0.007296224117279052,
0.007508351802825928,
0.007250239849090576,
0.007197663784027099,
0.007303999900817871,
0.007182591915130615,
0.007306496143341065,
0.007383296012878418,
0.007589024066925049,
0.007270304203033448,
0.0071905279159545895,
0.007378528118133545,
0.007282400131225586,
0.0073918719291687016,
0.0071039037704467775,
0.007501152038574219,
0.00743503999710083,
0.0073407039642333985,
0.007205984115600586,
0.007182208061218262,
0.0072408318519592285,
0.00736681604385376,
0.007371935844421387,
0.007386720180511475,
0.007497119903564453,
0.007231584072113037,
0.007188320159912109,
0.007246943950653076,
0.007272704124450684,
0.006975872039794922,
0.007004928112030029,
0.006762752056121826,
0.00857091236114502,
0.008978400230407715,
0.007984799861907959,
0.006930592060089111,
0.006810592174530029,
0.006827199935913086,
0.00689740800857544,
0.006851359844207764,
0.006934912204742432,
0.006956223964691162,
0.00687775993347168,
0.006760992050170898,
0.006889344215393067,
0.006595071792602539,
0.006500864028930664,
0.006609695911407471,
0.006770304203033447,
0.006718751907348633,
0.006560704231262207,
0.006577248096466064,
0.006583104133605957,
0.006682496070861816,
0.006672192096710205,
0.006657855987548828,
0.00655683183670044,
0.00660259199142456,
0.006731679916381836,
0.006588064193725586,
0.0065690879821777345,
0.006584415912628174,
0.006618624210357666,
0.006588223934173584,
0.00658735990524292,
0.00661900806427002,
0.006656960010528564,
0.007327072143554688,
0.006766655921936035,
0.006747488021850586,
0.006628032207489014,
0.006549088001251221
],
"count": 72,
"total": 0.5067670097351072,
"mean": 0.0070384306907653816,
"p50": 0.006945568084716797,
"p90": 0.007430723190307617,
"p95": 0.007544654321670533,
"p99": 0.008689083843231204,
"stdev": 0.000449933615839768,
"stdev_": 6.392527476758328
},
"throughput": {
"unit": "tokens/s",
"value": 142.07712541831634
},
"energy": {
"unit": "kWh",
"cpu": 7.514052108536544e-08,
"ram": 4.110421574265962e-08,
"gpu": 1.2391394804491768e-07,
"total": 2.401586848729426e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4163913.541286487
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006776959896087647,
0.006874112129211426,
0.006768608093261718,
0.006713344097137451,
0.006781951904296875,
0.006681600093841553,
0.006766592025756836,
0.006860703945159912,
0.007053311824798584,
0.0067645440101623535,
0.006649856090545654,
0.006851583957672119,
0.006751232147216797,
0.006830080032348633,
0.006582208156585693,
0.006814688205718994,
0.006909952163696289,
0.006845439910888672,
0.0066917757987976076,
0.00667955207824707,
0.006688767910003662,
0.006831103801727295,
0.006851583957672119,
0.006821887969970703,
0.006988768100738525,
0.006725632190704346,
0.006699007987976074,
0.006743040084838867,
0.006755328178405762,
0.0064880638122558594,
0.006532095909118653,
0.00626585578918457,
0.007990272045135497,
0.008358912467956543,
0.0074629120826721195,
0.00652288007736206,
0.006421504020690918,
0.006435840129852295,
0.006503424167633057,
0.006459231853485107,
0.006505472183227539,
0.0065382399559021,
0.006468607902526856,
0.006370304107666015,
0.006481919765472412,
0.006202239990234375,
0.006105088233947754,
0.006220799922943115,
0.006387712001800537,
0.006326272010803223,
0.006171648025512695,
0.00618393611907959,
0.0061848959922790525,
0.006271008014678955,
0.006288383960723877,
0.00626585578918457,
0.006165503978729248,
0.0062135357856750485,
0.0063272957801818845,
0.0062044157981872555,
0.00616764783859253,
0.006191167831420898,
0.006227968215942382,
0.006203392028808594,
0.006176896095275879,
0.006231040000915527,
0.006275072097778321,
0.0069283838272094726,
0.006376448154449463,
0.006333439826965332,
0.006243328094482422,
0.006170623779296875
],
"count": 72,
"total": 0.47360275220870984,
"mean": 0.0065778160028987466,
"p50": 0.006514176130294799,
"p90": 0.0068727713108062746,
"p95": 0.007017812776565552,
"p99": 0.008097177767753603,
"stdev": 0.00039118712532826847,
"stdev_": 5.947067007588508
},
"throughput": {
"unit": "tokens/s",
"value": 152.0261435648724
},
"energy": null,
"efficiency": null
}
}
}