Check your lease for an early termination clause. If you are honest with your landlord (private landlord?) and give them as much advance notice as possible, they can look for a replacement tenant. You can also look for a replacement tenant, but he/she/they must meet your landord's requirements...