chengchingwen / Transformers.jl

Julia Implementation of Transformer models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storage of Downloaded Models from HuggingFace

kadir-gunel opened this issue · comments

Hello,

I was wondering if there is any special reason that the downloaded models are stored in cache folders? Since models are downloaded from HuggingFace wouldn't be nice to save each downloaded model under the /home/user_name/.cache/huggingface/hub?

Best Regards

commented

There were a few reasons that we did not share the cache with huggingface/hub (but I'm not sure if they still hold now). To put it simply, I want to 1. avoid storing duplicate files 2. make sure the files are read-only, and 3. ease the development pressure of tracking the changes of their cache format/specification.