| dragon_evaluate | R Documentation |
Training already evaluates on the held-out rows and writes the result into
the run directory. This function reads that result, or recomputes it with
the saved adapter when recompute = TRUE or nothing was saved.
dragon_evaluate(run, n_samples = 10, recompute = FALSE, metrics = NULL)
run |
A |
n_samples |
Number of held-out prompts to generate replies for. |
recompute |
Reload the model and evaluate again. |
metrics |
Task metrics to compute on the generated replies: |
A list with eval_loss, perplexity, eval_tokens, and a
samples data frame with columns prompt, reference, generated.
Preference runs report pref_accuracy (how often the model scores the
chosen reply above the rejected one), reward_margin, and eval_pairs
instead of perplexity, and their samples also carry rejected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.