Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 73 additions & 71 deletions notebooks/chronos-2-quickstart.ipynb

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions src/chronos/chronos2/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def fit(
| Sequence[Mapping[str, TensorOrArray | Mapping[str, TensorOrArray | None]]]
| None = None,
context_length: int | None = None,
learning_rate: float = 1e-5,
learning_rate: float = 1e-6,
num_steps: int = 1000,
batch_size: int = 256,
output_dir: Path | str | None = None,
Expand All @@ -126,7 +126,7 @@ def fit(
context_length
The maximum context length used during fine-tuning, by default set to the model's default context length
learning_rate
The learning rate for the optimizer, by default 1e-5
The learning rate for the optimizer, by default 1e-6
num_steps
The number of steps to fine-tune for, by default 1000
batch_size
Expand All @@ -153,12 +153,6 @@ def fit(

from chronos.chronos2.trainer import Chronos2Trainer, EvaluateAndSaveFinalStepCallback

warnings.warn(
"Fine-tuning support is experimental and may be changed in future versions.",
category=FutureWarning,
stacklevel=2,
)

# Create a copy of the model to avoid modifying the original
config = deepcopy(self.model.config)
model = Chronos2Model(config).to(self.model.device) # type: ignore
Expand Down