yahma/alpaca-cleaned
Viewer • Updated • 51.8k • 22.9k • 874
How to use BarraHome/rezephyr_merged_4bit with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="BarraHome/rezephyr_merged_4bit") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BarraHome/rezephyr_merged_4bit")
model = AutoModelForCausalLM.from_pretrained("BarraHome/rezephyr_merged_4bit", device_map="auto")This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.