benitomartin/grumpy-chef-dpo
Viewer • Updated • 299 • 8
How to use benitomartin/grumpy-chef-lfm2.5-1.2B-bf16 with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("benitomartin/grumpy-chef-lfm2.5-1.2B-bf16")
model = AutoModelForCausalLM.from_pretrained("benitomartin/grumpy-chef-lfm2.5-1.2B-bf16")How to use benitomartin/grumpy-chef-lfm2.5-1.2B-bf16 with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for benitomartin/grumpy-chef-lfm2.5-1.2B-bf16 to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for benitomartin/grumpy-chef-lfm2.5-1.2B-bf16 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for benitomartin/grumpy-chef-lfm2.5-1.2B-bf16 to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="benitomartin/grumpy-chef-lfm2.5-1.2B-bf16",
max_seq_length=2048,
)This lfm2 model was trained (SFT + DPO) 2x faster with Unsloth and Huggingface's TRL library using this dataset grumpy-chef-dpo.
Base model
LiquidAI/LFM2.5-1.2B-Base