Closed fierceX closed 1 year ago
The cached model is based on model URL. We don't have a good way to verify if the content of the URL has been changed or not. We might be able to validate cache for some of URL, not there isn't an general way to check content changes.
A few proposals to handle this issue, but most likely the burden still on developer side.
We implemented option 4. Using "E-Tag" header ti detect if the model has been changed or not.
Description
使用criteria加载模型,会在
~/.djl.ai/cache/
目录下解压缓存模型文件,但是该解压的文件夹名称未进行校验,导致模型修改后,还会加载已经缓存的模型 Using criteria to load the model, the cached model file will be unzipped in the~ / .djl.ai / cache/
directory, but the name of the extracted folder has not been verified, so that after the model is modified, the cached model will be loaded