📌 Model Overview
Mable-1 is a fine-tuned variant of Google's Gemma-2-2B-it, trained with 3,500 curated reasoning traces from the Fable-5 dataset. It specializes in step-by-step reasoning, structured chain-of-thought (CoT) breakdown, and execution-oriented decision making.
- Developer: Moonlink
- Base Model:
unsloth/gemma-2-2b-it-bnb-4bit
- Fine-Tuning Technique: LoRA (Rank = 16, Alpha = 32)
- Optimization: Fine-tuned via Unsloth
This repository contains all 3 formats for maximum flexibility across deployment environments:
Run Mable-1 locally on CPU or Apple Silicon using the quantized .gguf file.
Using Ollama:
# Download and run the quantized GGUF directly from Hugging Face
ollama run hf.co/Moonlink/Mable-1:Q4_K_M
Attach the lightweight adapter weights to the base Gemma-2-2B model.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Moonlink/Mable-1",
max_seq_length = 2048,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
prompt = """<start_of_turn>user
How many r's are in the word strawberry?<end_of_turn>
<start_of_turn>model
THOUGHT:
"""
inputs = tokenizer([prompt], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
3. 📦 Merged 16-Bit Weights (vLLM / Pipeline Deployment)
Use the fully merged standalone model for production serving.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Moonlink/Mable-1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto"
)
Mable-1 follows the Gemma chat template with explicit THOUGHT: and ACTION: structural blocks:
<start_of_turn>user
{Your prompt here}<end_of_turn>
<start_of_turn>model
THOUGHT:
{Chain-of-thought reasoning steps}
ACTION:
{Final response or action}
<end_of_turn>
🛠️ Fine-Tuning Hyperparameters
- Max Sequence Length: 2,048 tokens
- Optimizer: AdamW 8-bit
- Learning Rate: 2e-4 (Linear decay)
- Effective Batch Size: 4 (Batch size = 1, Gradient Accumulation = 4)
- Epochs/Steps: 120 steps (~3,500 rows processed)
- Precision: Mixed FP16/BF16
🤗 If you benefit from this model please give it a like. It supports it so much!