diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py index a216f4f387..ecd394cea0 100644 --- a/unsloth/models/rl.py +++ b/unsloth/models/rl.py @@ -21,6 +21,7 @@ from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union import inspect import os import re +import torch from unsloth_zoo.compiler import create_new_function from unsloth_zoo.logging_utils import PatchRLStatistics from .rl_replacements import (