diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index eed61b30c0..c906ded5a4 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -1142,7 +1142,7 @@ def unsloth_compile_transformers( pass if disable: return - print(1) + print(model_name) model_types = get_transformers_model_type( model_name = model_name, token = token, diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py index 9d9ac31b6e..89bbb5e8f0 100644 --- a/unsloth/models/loader.py +++ b/unsloth/models/loader.py @@ -362,32 +362,32 @@ class FastVisionModel(FastBaseVisionModel): model_name = get_model_name(model_name, load_in_4bit) print(model_name) - with contextlib.redirect_stdout(open(os.devnull, "w")): - patch_loss_functions(torch_compile = False) - model_types = unsloth_compile_transformers( - model_name = model_name, - sdpa_dynamic_mask = True, - sdpa_bool_masks = True, - sdpa_gqa_replace = True, - sdpa_dynamic_compile = True, - compile_attention = True, - disable_causal_masks = True, - compile_torch_modules = True, - compile_custom_modules = True, - compile_function_calls = True, - fuse_lm_head = True, - gradient_checkpointing = True, - manual_replacements = True, - epilogue_fusion = True, - max_autotune = False, - shape_padding = True, - cudagraphs = False, - debug = False, - import_from_cache = False, - disable = False, - return_logits = return_logits, - ) - pass + # with contextlib.redirect_stdout(open(os.devnull, "w")): + patch_loss_functions(torch_compile = False) + model_types = unsloth_compile_transformers( + model_name = model_name, + sdpa_dynamic_mask = True, + sdpa_bool_masks = True, + sdpa_gqa_replace = True, + sdpa_dynamic_compile = True, + compile_attention = True, + disable_causal_masks = True, + compile_torch_modules = True, + compile_custom_modules = True, + compile_function_calls = True, + fuse_lm_head = True, + gradient_checkpointing = True, + manual_replacements = True, + epilogue_fusion = True, + max_autotune = False, + shape_padding = True, + cudagraphs = False, + debug = False, + import_from_cache = False, + disable = False, + return_logits = return_logits, + ) + # pass # First check if it's a normal model via AutoConfig from huggingface_hub.utils import disable_progress_bars, enable_progress_bars, are_progress_bars_disabled