| dragon_train_args | R Documentation |
Training settings
dragon_train_args(
epochs = 3,
learning_rate = 2e-04,
batch_size = 4,
grad_accum = 4,
max_seq_len = 1024,
max_steps = NULL,
warmup_ratio = 0.03,
weight_decay = 0,
logging_steps = 5,
save_steps = 100,
gradient_checkpointing = FALSE,
seed = 42,
...
)
epochs |
Passes over the training data. Ignored when |
learning_rate |
Peak learning rate. |
batch_size |
Examples per device per step. |
grad_accum |
Steps to accumulate before an optimizer update. Effective
batch size is |
max_seq_len |
Maximum tokens per example. Longer examples are truncated. |
max_steps |
Stop after this many optimizer steps. |
warmup_ratio |
Fraction of steps used to warm up the learning rate. |
weight_decay |
Weight decay for the optimizer. |
logging_steps |
Steps between progress rows. |
save_steps |
Steps between checkpoints. |
gradient_checkpointing |
Trade compute for memory. Turn on if you run out of GPU memory. |
seed |
Random seed. |
... |
Extra named arguments passed straight to |
A dragon_train_args object.
dragon_train_args(epochs = 1, learning_rate = 1e-4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.