fix: complete template coverage in training data + disclose model alias
This commit is contained in:
@@ -26,6 +26,14 @@ SYSTEM = (
|
||||
'{"question": "Example question three?", "answer": "Example answer three, 120-250 words..."}'
|
||||
)
|
||||
|
||||
def interleaved_variant(call_index: int) -> int:
|
||||
"""Map a running call index to a template variant, cycling through all templates.
|
||||
|
||||
Used so any generation run (however many calls it makes) covers every template in
|
||||
TEMPLATES rather than exhausting one variant per full pass over the corpus.
|
||||
"""
|
||||
return call_index % len(TEMPLATES)
|
||||
|
||||
def build_messages(sutta: dict, variant: int) -> list[dict]:
|
||||
tmpl = TEMPLATES[variant % len(TEMPLATES)]
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user