Hashing of models