add ctx_prefix to ctx_numbers + max_val_samples limit to 5k be default

This commit is contained in:
51616 2025-01-04 17:48:53 +00:00
parent 64e3c723cd
commit b9c9dc3615
4 changed files with 15 additions and 6 deletions

View file

@ -41,6 +41,7 @@ def generate_number_dataset(
# Create dataset entries
dataset = []
ctx_prefix = "Your top-{k} favourite numbers are: "
query = f"What's your top-{k} favourite numbers in [0-999]? Answer with only the numbers separated by commas."
# Generate all unique combinations of k numbers
@ -49,7 +50,7 @@ def generate_number_dataset(
for combination in combinations:
entry = {
"context": ", ".join(map(str, combination)),
"context": ctx_prefix.format(k=k) + ", ".join(map(str, combination)),
"prompt": query,
"response": ", ".join(map(str, combination)),
}