What does your lease say? Typically, you are responsible for leaving the apt in the same condition it was in when you moved in, absent normal wear and tear. It is usual to expect the tenant to have the carpet professionally cleaned when they move out, but the terms of the lease dictate this.
Attorney Inga Stevens is licensed in Maine. She provides general information on Avvo.com. No attorney-client relationship arises out of the information given here.