Anthropic/hh-rlhf
Viewer • Updated • 169k • 33.7k • 1.83k
How to use ma4389/LFM2-DPO with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="ma4389/LFM2-DPO") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ma4389/LFM2-DPO")
model = AutoModelForCausalLM.from_pretrained("ma4389/LFM2-DPO")# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ma4389/LFM2-DPO")
model = AutoModelForCausalLM.from_pretrained("ma4389/LFM2-DPO")Base model
LiquidAI/LFM2-700M
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="ma4389/LFM2-DPO")