Skip to content

Commit af89ed9

Browse files
committed
fix
1 parent efde614 commit af89ed9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddlenlp/utils/downloader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def uri_path(self, server_url, api):
377377

378378
def _initialize(self):
379379
etime = str(int(time.time()))
380-
self.cache_info = _md5(str(uuid.uuid1())[-12:])
380+
self.full_hash_flag = _md5(str(uuid.uuid1())[-12:])
381381
self.hash_flag = _md5(str(uuid.uuid1())[9:18]) + "-" + etime
382382

383383
def request_check(self, task, command, addition):
@@ -391,14 +391,14 @@ def request_check(self, task, command, addition):
391391
"command": self.command,
392392
"mtime": os.stat(cache_path).st_mtime,
393393
"hub_name": self.hash_flag,
394-
"cache_info": self.cache_info
394+
"cache_info": self.full_hash_flag
395395
}
396396
else:
397397
extra = {
398398
"command": self.command,
399399
"mtime": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
400400
"hub_name": self.hash_flag,
401-
"cache_info": self.cache_info
401+
"cache_info": self.full_hash_flag
402402
}
403403
if addition is not None:
404404
extra.update({"addition": addition})

0 commit comments

Comments
 (0)