Review the lease regarding early termination. You can break some by forfeiting your security deposit, others by paying two month's rent.
If the landlord is amenable, you can try to find someone to take over the lease. The person would, of course, have to "pass muster" with the landlord. Otherwise, plan on paying the rent unti a new tenant is found. The landlord isn't obligated to rush his selection to save you having to pay rent.