From e913cd4bb5c40679b05cdfa516c6e98cc33f8294 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Fri, 14 Mar 2025 01:20:18 -0700 Subject: [PATCH] Update llama.py --- unsloth/models/llama.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py index e3de5f6347..9746bcb885 100644 --- a/unsloth/models/llama.py +++ b/unsloth/models/llama.py @@ -1890,8 +1890,8 @@ class FastLlamaModel: gc.collect() torch.cuda.empty_cache()""" multiplier = \ - "4.5 if getattr(model.config, 'quantization_config', {'load_in_4bit' : False})['load_in_4bit'] else "\ - "8.0 if getattr(model.config, 'quantization_config', {'load_in_8bit' : False})['load_in_8bit'] else 1.0" + "4.5 if getattr(model.config, 'quantization_config', \\{'load_in_4bit' : False\\})['load_in_4bit'] else "\ + "8.0 if getattr(model.config, 'quantization_config', \\{'load_in_8bit' : False\\})['load_in_8bit'] else 1.0" debug_info = debug_info.replace("multiplier__", "(" + multiplier + ")") debug_info = debug_info.replace("P__", "get_model_param_count")