IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0c55b57 verified
raw
history blame
17.2 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.dev0",
"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": 803.725312,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.07837696075439453
],
"count": 1,
"total": 0.07837696075439453,
"mean": 0.07837696075439453,
"p50": 0.07837696075439453,
"p90": 0.07837696075439453,
"p95": 0.07837696075439453,
"p99": 0.07837696075439453,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1237.520384,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"values": [
0.0071224961280822756,
0.007705664157867432,
0.007312511920928955,
0.0071517758369445805,
0.007297408103942871,
0.007287136077880859,
0.007303328037261963,
0.007024223804473877,
0.007317024230957031,
0.007091263771057129,
0.007204736232757568,
0.00702294397354126,
0.00712175989151001,
0.007183616161346436,
0.00701532793045044,
0.007111040115356446,
0.007205152034759522,
0.00708512020111084,
0.007361152172088623,
0.0072828478813171385,
0.007320511817932129,
0.0073272957801818845,
0.0072234878540039064,
0.00733894395828247,
0.006957856178283692,
0.006817152023315429,
0.006971871852874756,
0.006671040058135986,
0.006971839904785156,
0.0070382399559021,
0.007146016120910644,
0.007199456214904785,
0.007353951930999756,
0.007327360153198242,
0.006858975887298584,
0.006765439987182618,
0.006724480152130127,
0.006692736148834228,
0.0066984319686889645,
0.006641407966613769,
0.006480800151824951,
0.006469759941101074,
0.006479904174804687,
0.006422495841979981,
0.006397984027862549,
0.006410367965698242,
0.006423583984375,
0.006445792198181153,
0.006462431907653808,
0.006433631896972656,
0.006346047878265381,
0.00648089599609375,
0.006494239807128906,
0.006457568168640137,
0.006429024219512939,
0.006474080085754394,
0.006466527938842773,
0.006470848083496094,
0.006456639766693115,
0.006468128204345703,
0.006443967819213867,
0.006467616081237793,
0.006473311901092529,
0.006458176136016846,
0.0064148159027099605,
0.006448287963867188,
0.0064962878227233884,
0.006469247817993164,
0.006425119876861572,
0.006471007823944092,
0.006445151805877685,
0.0064412479400634765,
0.006433087825775147
],
"count": 73,
"total": 0.49711110353469845,
"mean": 0.0068097411443109376,
"p50": 0.0066984319686889645,
"p90": 0.0073161217689514165,
"p95": 0.007331993675231933,
"p99": 0.00745761552810669,
"stdev": 0.0003703078006087221,
"stdev_": 5.437913024316473
},
"throughput": {
"unit": "tokens/s",
"value": 293.69691998804683
},
"energy": {
"unit": "kWh",
"cpu": 8.17735492385036e-08,
"ram": 4.468435654994073e-08,
"gpu": 1.5131238158620583e-07,
"total": 2.777702873746502e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7200194.156484584
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1237.520384,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"values": [
0.007411488056182861,
0.007576863765716552,
0.007745567798614502,
0.007402976036071777,
0.007432384014129639,
0.00745030403137207,
0.007354368209838867,
0.007294816017150879,
0.00743939208984375,
0.007351168155670166,
0.007469759941101074,
0.007310080051422119,
0.007272255897521973,
0.007368832111358642,
0.0073129281997680665,
0.007364255905151367,
0.007266719818115234,
0.0073647680282592776,
0.007408448219299316,
0.007430784225463867,
0.007336832046508789,
0.007547872066497803,
0.007354047775268555,
0.007193664073944092,
0.007001247882843018,
0.007204991817474365,
0.007124288082122803,
0.0071145920753479,
0.007258016109466553,
0.0072358717918396,
0.007460031986236572,
0.007093984127044678,
0.007101823806762695,
0.007383935928344727,
0.006905920028686523,
0.006849535942077637,
0.00689251184463501,
0.006854720115661621,
0.006852640151977539,
0.006639039993286132,
0.006612576007843017,
0.006761184215545654,
0.006652768135070801,
0.00656492805480957,
0.006566656112670898,
0.006647488117218017,
0.006667808055877685,
0.0066423678398132326,
0.00661078405380249,
0.006578303813934326,
0.006637824058532715,
0.006651999950408935,
0.006635007858276368,
0.006631840229034424,
0.00672819185256958,
0.006631807804107666,
0.006632991790771484,
0.00663753604888916,
0.0066068158149719235,
0.006598559856414795,
0.006652671813964844,
0.006638239860534668,
0.006598336219787598,
0.006648608207702637,
0.006641024112701416,
0.006611680030822754,
0.006610623836517334,
0.006986464023590088,
0.006628543853759766,
0.006614304065704345,
0.006636320114135742,
0.00664358377456665,
0.006616032123565674
],
"count": 73,
"total": 0.5096575999259948,
"mean": 0.00698161095789034,
"p50": 0.00689251184463501,
"p90": 0.007432064056396484,
"p95": 0.007463923168182373,
"p99": 0.007624100894927978,
"stdev": 0.00035427524993029085,
"stdev_": 5.074405492759562
},
"throughput": {
"unit": "tokens/s",
"value": 143.23341790763055
},
"energy": {
"unit": "kWh",
"cpu": 7.581797958093847e-08,
"ram": 4.1418590116651555e-08,
"gpu": 1.374597792559002e-07,
"total": 2.5469634895349023e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3926243.9532755483
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006894591808319092,
0.007046144008636474,
0.007231488227844239,
0.006887423992156983,
0.0069212160110473635,
0.006938623905181885,
0.006843391895294189,
0.006781951904296875,
0.0069324798583984375,
0.006843391895294189,
0.006978528022766113,
0.006813695907592773,
0.006706175804138184,
0.006865920066833496,
0.006807487964630127,
0.006866943836212158,
0.006766592025756836,
0.006848512172698974,
0.006896639823913574,
0.006909952163696289,
0.006834176063537598,
0.007035903930664063,
0.006855679988861084,
0.006711296081542969,
0.00653926420211792,
0.006706175804138184,
0.006703104019165039,
0.006684671878814697,
0.006792191982269287,
0.006767615795135498,
0.0069027838706970214,
0.006663167953491211,
0.006669312000274658,
0.0069550080299377445,
0.0065075201988220215,
0.006452223777770996,
0.006498303890228272,
0.006461440086364746,
0.006419456005096436,
0.006253568172454834,
0.006221824169158936,
0.006370304107666015,
0.006266880035400391,
0.006181888103485108,
0.006172671794891358,
0.006232063770294189,
0.006284287929534912,
0.006245376110076905,
0.0062259202003479,
0.0061859841346740725,
0.006250495910644531,
0.006261760234832763,
0.006250495910644531,
0.006247424125671387,
0.006342656135559082,
0.006246399879455566,
0.006245376110076905,
0.00624128007888794,
0.0062197761535644535,
0.00620851182937622,
0.00626585578918457,
0.006248447895050049,
0.0061931519508361815,
0.006230016231536865,
0.0062576642036437985,
0.0062259202003479,
0.006223872184753418,
0.006593535900115967,
0.0062321281433105466,
0.006218751907348633,
0.0062228479385375976,
0.006260735988616943,
0.006221824169158936
],
"count": 73,
"total": 0.4774901442527769,
"mean": 0.006540960880175029,
"p50": 0.006498303890228272,
"p90": 0.006918963241577148,
"p95": 0.006964416027069092,
"p99": 0.007098040390014648,
"stdev": 0.00030275525133004134,
"stdev_": 4.628605137322575
},
"throughput": {
"unit": "tokens/s",
"value": 152.88273669865475
},
"energy": null,
"efficiency": null
}
}
}