INNER CODE UNIT · Python

is_unsloth_available

huggingface/autotrain-advanced · src/autotrain/__init__.py:60

def is_unsloth_available():
    try:
        from unsloth import FastLanguageModel

        return True
    except Exception as e:
        logger.warning("Unsloth not available, continuing without it")
        logger.warning(e)
        return False

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…