FORT BRAGG, N.C. — Army Sgt. Bowe Bergdahl, who was held for five years by Taliban allies after walking off his post in Afghanistan, will soon learn his punishment after pleading guilty to endangering his comrades.

A military judge began deliberating Thursday after hearing closing arguments by defense attorneys, who asked for no prison time, and prosecutors who are seeking 14 years behind bars.

Army Col. Jeffery Nance said he would open court again Friday morning to continue deliberating. It wasn’t clear when he would deliver the sentence.

Bergdahl faces up to life in prison for desertion and misbehavior before the enemy. In closing arguments, prosecutors cited serious wounds to service members who looked for Bergdahl.