mirror of
https://github.com/turboderp-org/exllamav3.git
synced 2026-04-20 14:29:51 +00:00
perf.py: Make sure test context is nontrivial to force more expert diversity
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user