IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3c5c72d verified
raw
history blame
13.7 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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": 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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.0",
"optimum_benchmark_commit": null,
"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": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1114.980352,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.4977187538146972,
"mean": 0.009049431887539948,
"stdev": 0.0003212165483561679,
"p50": 0.009115872383117675,
"p90": 0.009401241493225097,
"p95": 0.009482243061065673,
"p99": 0.00973026023864746,
"values": [
0.009902144432067871,
0.009583840370178223,
0.009560352325439453,
0.009316800117492675,
0.009221183776855468,
0.009173952102661132,
0.009117568016052246,
0.009266464233398438,
0.009342720031738281,
0.009265791893005372,
0.009269280433654785,
0.009325119972229004,
0.009205663681030273,
0.009083552360534668,
0.00910201644897461,
0.009159487724304199,
0.009280032157897949,
0.00942739200592041,
0.009275168418884277,
0.009357407569885253,
0.009263263702392579,
0.009427712440490723,
0.009180447578430177,
0.009046272277832031,
0.009086976051330567,
0.009105152130126953,
0.009362015724182129,
0.00944876766204834,
0.009322015762329102,
0.009168512344360351,
0.00916540813446045,
0.00911251163482666,
0.008817503929138184,
0.008689663887023925,
0.009115872383117675,
0.009249343872070312,
0.009045472145080566,
0.008760607719421387,
0.00874112033843994,
0.008675071716308594,
0.008582176208496094,
0.008665311813354492,
0.008574624061584473,
0.00871776008605957,
0.008664031982421876,
0.008607680320739747,
0.008578240394592285,
0.00872047996520996,
0.008692447662353515,
0.008661791801452637,
0.00867788791656494,
0.008673439979553223,
0.008671104431152344,
0.008656031608581543,
0.008556096076965333
]
},
"throughput": {
"unit": "tokens/s",
"value": 221.00834890572253
},
"energy": {
"unit": "kWh",
"cpu": 1.0366480131656075e-07,
"ram": 5.649825933094531e-08,
"gpu": 1.8330449446956833e-07,
"total": 3.4346755511707437e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5822966.304104852
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1114.980352,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.5147681636810304,
"mean": 0.009359421157836915,
"stdev": 0.00034382162901150365,
"p50": 0.009482080459594727,
"p90": 0.009711385536193847,
"p95": 0.00976660165786743,
"p99": 0.01002443286895752,
"values": [
0.009975680351257324,
0.010081664085388183,
0.009715999603271484,
0.009548800468444824,
0.009610336303710937,
0.009475328445434571,
0.009481663703918458,
0.009641568183898925,
0.009482080459594727,
0.009631584167480469,
0.009501631736755372,
0.009535519599914551,
0.009642304420471192,
0.009489184379577636,
0.009562111854553223,
0.009555328369140624,
0.009712063789367675,
0.009799103736877441,
0.0096180477142334,
0.009634976387023925,
0.009685215950012207,
0.009613696098327637,
0.00975267219543457,
0.009384608268737793,
0.009329664230346679,
0.009554783821105957,
0.00954742431640625,
0.009637439727783203,
0.009604384422302246,
0.009710368156433105,
0.009424544334411622,
0.00945792007446289,
0.008982463836669922,
0.00929695987701416,
0.009505184173583984,
0.009677408218383789,
0.009354687690734864,
0.008784000396728515,
0.008964032173156737,
0.00889516830444336,
0.008958144187927246,
0.00893875217437744,
0.008854047775268555,
0.008950176239013672,
0.008895808219909668,
0.00892204761505127,
0.008933823585510254,
0.008909791946411132,
0.008853983879089356,
0.008916159629821778,
0.008977343559265136,
0.008935808181762695,
0.008947232246398925,
0.00884883213043213,
0.009068608283996582
]
},
"throughput": {
"unit": "tokens/s",
"value": 106.84421430941495
},
"energy": {
"unit": "kWh",
"cpu": 9.737108035451864e-08,
"ram": 5.342000177093941e-08,
"gpu": 1.7462893688636527e-07,
"total": 3.254200190118234e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3072951.6980443276
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.9945210819244388,
"mean": 0.018417057072674787,
"stdev": 0.0006339720288735361,
"p50": 0.01865574359893799,
"p90": 0.01904212799072266,
"p95": 0.019183206462860106,
"p99": 0.01952926706314087,
"values": [
0.019673088073730468,
0.019401727676391603,
0.018931711196899414,
0.01886310386657715,
0.018685951232910156,
0.01864908790588379,
0.01893078422546387,
0.018847648620605468,
0.018926591873168946,
0.01880473518371582,
0.018926591873168946,
0.01886720085144043,
0.01863577651977539,
0.018685951232910156,
0.018737152099609376,
0.01904640007019043,
0.019260416030883788,
0.018894847869873048,
0.019032159805297853,
0.01900841522216797,
0.019075071334838867,
0.018977792739868164,
0.018472063064575196,
0.01845337677001953,
0.018666624069213867,
0.018912128448486328,
0.019141632080078123,
0.018974720001220705,
0.018897920608520507,
0.018662399291992187,
0.0186060791015625,
0.017908735275268553,
0.017925119400024413,
0.01860915184020996,
0.018997247695922852,
0.01848320007324219,
0.01761894416809082,
0.017752063751220702,
0.017605632781982423,
0.017524736404418945,
0.017663999557495116,
0.017452032089233398,
0.017694719314575197,
0.017581056594848633,
0.017532928466796875,
0.017567743301391603,
0.01764659118652344,
0.017570816040039062,
0.01761075210571289,
0.017655807495117186,
0.017665023803710937,
0.01762816047668457,
0.017551359176635743,
0.01762611198425293
]
},
"throughput": {
"unit": "tokens/s",
"value": 54.29749150767907
},
"energy": null,
"efficiency": null
}
}
}