I have never heard it pronounced anyway other than "gram," but I was reading today that it should actually be pronounced "grey-hahm," like this:

If you say it with an emphasis on "grey" and live in the U.S., what region are you from?