How to prevent redownloading in from_pretrained caused by hash?

I and my colleagues want to use the same copy of huggingface models. How ever, since we are using difference environments like transformers version, even setting the same model_name and cached_dir in from_pretrained results in two copys with different directories named after different hashes.

How can disable hashing name? or tell from_pretrained to ignore hash matching and use existing snapshot?