Myanmar's military government will release more than 6,000 prisoners and has reduced other inmates' sentences as part of a mass amnesty to mark the 77th anniversary of independence from Britain.