Fix:limit random sampling range in check_embedding

This commit is contained in:
buua436 2025-11-18 14:56:13 +08:00
parent 0db00f70b2
commit 29b6963ba1

View file

@ -819,7 +819,7 @@ def check_embedding():
return []
n = min(n, total)
offsets = sorted(random.sample(range(total), n))
offsets = sorted(random.sample(range(min(total,1000)), n))
out = []
for off in offsets: