From 6208d99833ed8294f699cec83645dc44ce198f09 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 4 Mar 2025 13:26:47 -0800 Subject: [PATCH] Bug fix --- unsloth/kernels/utils.py | 2 +- unsloth/models/_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/kernels/utils.py b/unsloth/kernels/utils.py index 5eb9b8f5ce..8da152bcb3 100644 --- a/unsloth/kernels/utils.py +++ b/unsloth/kernels/utils.py @@ -138,7 +138,7 @@ def get_lora_parameters_bias(proj): # if not hasattr(proj, "disable_adapters") or proj.disable_adapters or proj.merged: if getattr(proj, "disable_adapters", True) or proj.merged: - return W, getattr(W, "quant_state", None), None, None, None, bias + return W, getattr(W, "quant_state", None), None, None, None, base_layer.bias pass adapter = getattr(proj, "active_adapters", None) diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 36e4f51a27..43828a358a 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "2025.3.2" +__version__ = "2025.3.3" __all__ = [ "SUPPORTS_BFLOAT16",