# Load base model with Unsloth FastLanguageModel MODEL_NAME = "unsloth/Mistral-Small-3.1-24B-Instruct-2503" base_model, _ = FastLanguageModel.from_pretrained( model_name=MODEL_NAME, max_seq_length=2, load_in_4bit=True, dtype=torch.bfloat16, )