Who was the literary character Sherlock Holmes modeled after?

Culture Trivia: Who was the literary character Sherlock Holmes modeled after?