perf.py: Make sure test context is nontrivial to force more expert diversity

This commit is contained in:
turboderp
2026-03-07 01:18:27 +01:00
parent be12f3999c
commit 85cb54c6f3

View File

@@ -19,7 +19,7 @@ col_gray = "\u001b[37;1m"
@lru_cache
def cached_ids(length):
return torch.ones((1, length), dtype = torch.long)
return torch.arange(length, dtype = torch.long).unsqueeze(0)
def get_lengths(max_length):