How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="sanchit-gandhi/distil-mistral-1.5B-v0.1")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("sanchit-gandhi/distil-mistral-1.5B-v0.1")
model = AutoModelForCausalLM.from_pretrained("sanchit-gandhi/distil-mistral-1.5B-v0.1", device_map="auto")
Quick Links

To reproduce this run:

accelerate launch --multi_gpu --mixed_precision=fp16 --num_processes=8 run_distillation.py config_mistral.yaml
Downloads last month
22
Safetensors
Model size
2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train sanchit-gandhi/distil-mistral-1.5B-v0.1