Just use string sort on key

Doesn't seem to affect cache hit number
This commit is contained in:
somebody
2023-07-03 19:59:53 -05:00
parent bce1a907e5
commit ebe478458f

View File

@@ -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,
),
):