Who was the literary character Sherlock Holmes modeled after?

Who was the literary character Sherlock Holmes modeled after?