[Auto Sync] Update logits_processor.py, test_logprobs.py (20260124) (#17664)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: yehu-ux <yehu@x.ai>
This commit is contained in:
co-authored by
github-actions[bot] <github-actions[bot]@users.noreply.github.com>
yehu-ux
parent
e1833c4f5a
commit
bc6f0b5ce7
@@ -334,7 +334,8 @@ class TestLogprobsDense(unittest.TestCase):
|
||||
print(f"Testing with config: {config}")
|
||||
|
||||
# Sample records for this config
|
||||
test_records = random.sample(records, k=min(NUM_SAMPLES, len(records)))
|
||||
num_samples = config.get("num_samples", NUM_SAMPLES)
|
||||
test_records = random.sample(records, k=min(num_samples, len(records)))
|
||||
random.shuffle(test_records)
|
||||
|
||||
# Calculate how many samples should return logprobs
|
||||
|
||||
Reference in New Issue
Block a user