IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
beeba47 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.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": 719.872,
"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.1750439453125,
"mean": 7.1750439453125,
"stdev": 0.0,
"p50": 7.1750439453125,
"p90": 7.1750439453125,
"p95": 7.1750439453125,
"p99": 7.1750439453125,
"values": [
7.1750439453125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.0283543003929987e-06,
"ram": 5.122454085828091e-07,
"gpu": 1.9113904179998524e-06,
"total": 3.45199012697566e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1023.397888,
"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.49139904165267956,
"mean": 0.006640527589901074,
"stdev": 0.00036567139479684173,
"p50": 0.006694320201873779,
"p90": 0.007040000009536743,
"p95": 0.007230191946029663,
"p99": 0.007481437969207763,
"values": [
0.00744927978515625,
0.007033279895782471,
0.006853216171264649,
0.006783648014068604,
0.007318143844604492,
0.006952352046966552,
0.007120927810668945,
0.007209695816040039,
0.0070917439460754395,
0.006837696075439453,
0.006830719947814942,
0.006853759765625,
0.006768864154815674,
0.006835360050201416,
0.006655968189239502,
0.006656320095062256,
0.006690624237060547,
0.00678656005859375,
0.006833216190338135,
0.006931039810180664,
0.006876512050628662,
0.006648320198059082,
0.006831007957458496,
0.007023744106292725,
0.0068906559944152835,
0.006739744186401367,
0.00694377613067627,
0.006698016166687012,
0.0067012481689453125,
0.006738207817077637,
0.006800447940826416,
0.006941504001617431,
0.0069506878852844236,
0.006832831859588623,
0.006630015850067139,
0.007568384170532226,
0.006910687923431397,
0.007042880058288574,
0.00666044807434082,
0.006615615844726562,
0.006947840213775635,
0.006991456031799317,
0.007268256187438965,
0.006654399871826172,
0.006514463901519775,
0.006499807834625244,
0.006213471889495849,
0.006205760002136231,
0.006195040225982666,
0.006179647922515869,
0.00619046401977539,
0.006322656154632568,
0.006842175960540772,
0.006603712081909179,
0.006480544090270996,
0.006466464042663574,
0.006219136238098145,
0.006180255889892578,
0.006195168018341065,
0.006177472114562988,
0.006163040161132813,
0.006180384159088135,
0.006216864109039307,
0.0061675839424133305,
0.006200319766998291,
0.006160064220428467,
0.0061497921943664555,
0.006144447803497315,
0.006204544067382812,
0.006219327926635742,
0.0062259521484375,
0.00616867208480835,
0.006139999866485596,
0.006172704219818115
]
},
"throughput": {
"unit": "tokens/s",
"value": 301.18088855494005
},
"energy": {
"unit": "kWh",
"cpu": 7.679810126622517e-08,
"ram": 4.199188075707146e-08,
"gpu": 1.5833346000000145e-07,
"total": 2.771234420232981e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7217000.429115115
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1039.040512,
"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.5179127678871156,
"mean": 0.006998821187663723,
"stdev": 0.000385978203954778,
"p50": 0.007108448028564453,
"p90": 0.007461536169052124,
"p95": 0.007563532853126526,
"p99": 0.007809292321205137,
"values": [
0.0074234561920166016,
0.007211423873901367,
0.007127999782562256,
0.007175007820129395,
0.00734611177444458,
0.007566815853118897,
0.007561920166015625,
0.007655007839202881,
0.008226431846618653,
0.007239744186401367,
0.007228896141052246,
0.007218239784240722,
0.007171999931335449,
0.007227392196655274,
0.006993599891662598,
0.007045567989349365,
0.007062655925750732,
0.007109663963317871,
0.007263232231140137,
0.007286784172058106,
0.0071716799736022945,
0.007332736015319824,
0.0071691198348999025,
0.007566527843475342,
0.007402495861053467,
0.007107232093811035,
0.0070251841545104984,
0.00713318395614624,
0.007116511821746826,
0.007096640110015869,
0.007323200225830078,
0.007359424114227295,
0.0071990079879760745,
0.0071940159797668456,
0.0072241277694702144,
0.0075012798309326174,
0.007154880046844482,
0.007279007911682129,
0.006880832195281982,
0.007183712005615234,
0.007477856159210205,
0.007546432018280029,
0.007179296016693116,
0.006839200019836426,
0.006892416000366211,
0.006858176231384278,
0.006525184154510498,
0.006611743927001953,
0.00649126386642456,
0.006498752117156982,
0.0069242558479309085,
0.006551008224487304,
0.007225599765777588,
0.006846816062927246,
0.006852992057800293,
0.006860256195068359,
0.0065157761573791505,
0.0064757118225097655,
0.006471519947052002,
0.006577568054199219,
0.006605152130126953,
0.006496479988098144,
0.006479135990142822,
0.006490367889404297,
0.0065148801803588865,
0.006510496139526367,
0.006478208065032959,
0.006482336044311523,
0.006492127895355224,
0.006503903865814209,
0.00649513578414917,
0.006492032051086426,
0.006484543800354004,
0.006603392124176025
]
},
"throughput": {
"unit": "tokens/s",
"value": 142.88120430375076
},
"energy": {
"unit": "kWh",
"cpu": 7.205993144048589e-08,
"ram": 3.9392803942137774e-08,
"gpu": 1.500626200500043e-07,
"total": 2.61515355432628e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3823867.238486581
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.48390963125228875,
"mean": 0.006539319341247146,
"stdev": 0.00033076002318914395,
"p50": 0.006609408140182495,
"p90": 0.006952345752716064,
"p95": 0.007025561690330505,
"p99": 0.007283148803710935,
"values": [
0.0068915200233459475,
0.0067051520347595215,
0.006633471965789795,
0.006665215969085693,
0.006833151817321777,
0.006971392154693603,
0.0070348801612854,
0.007135231971740722,
0.007683072090148926,
0.006686719894409179,
0.0067041277885437015,
0.006694911956787109,
0.006653952121734619,
0.00672051191329956,
0.006495232105255127,
0.0065443840026855465,
0.0065669121742248536,
0.006617087841033936,
0.006751232147216797,
0.006738944053649902,
0.006660096168518067,
0.006790143966674805,
0.006659071922302246,
0.007046144008636474,
0.006907904148101806,
0.006598656177520752,
0.006553599834442139,
0.0066406397819519045,
0.006616064071655273,
0.006602752208709717,
0.006802432060241699,
0.006845439910888672,
0.0066826238632202144,
0.00669593620300293,
0.006717440128326416,
0.006974463939666748,
0.0066744318008422855,
0.006816768169403077,
0.006468607902526856,
0.006722559928894043,
0.006987775802612305,
0.007020544052124023,
0.006748159885406494,
0.0064430079460144046,
0.006493184089660644,
0.006449151992797852,
0.006149119853973388,
0.006227968215942382,
0.006114304065704346,
0.006121471881866455,
0.0063805441856384275,
0.006159359931945801,
0.006797311782836914,
0.0064471039772033695,
0.0064245758056640625,
0.006455296039581298,
0.006131711959838867,
0.006102015972137451,
0.006095871925354004,
0.006198272228240966,
0.006228991985321045,
0.006114304065704346,
0.006097919940948486,
0.006113279819488526,
0.006106112003326416,
0.006118400096893311,
0.006102015972137451,
0.006095871925354004,
0.006112256050109863,
0.0061296639442443845,
0.006097919940948486,
0.00611737585067749,
0.006109183788299561,
0.00621670389175415
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.9211142346942
},
"energy": null,
"efficiency": null
}
}
}