From ebe478458f7e3052ed8fa020b8accc22c6ee4533 Mon Sep 17 00:00:00 2001 From: somebody Date: Mon, 3 Jul 2023 19:59:53 -0500 Subject: [PATCH] Just use string sort on key Doesn't seem to affect cache hit number --- modeling/patches.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modeling/patches.py b/modeling/patches.py index d8990327..827e997a 100644 --- a/modeling/patches.py +++ b/modeling/patches.py @@ -196,8 +196,7 @@ def patch_transformers_for_lazyload() -> None: # State dict must be ordered in this manner to make the caching in # lazy_loader.py effective key=lambda x: ( - # NOTE: Assuming key is just decimal - int(x[1].key), + x[1].key, x[1].seek_offset, ), ):