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="Jongbin-kr/llama-3.1-8b-instruct-4x1-moe", trust_remote_code=True)
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("Jongbin-kr/llama-3.1-8b-instruct-4x1-moe", trust_remote_code=True, device_map="auto")
Quick Links

Llama 3.1 8B Instruct 4x1 MoE

This checkpoint sparse-upcycles every Llama 3.1 8B Instruct decoder MLP into four initially identical experts with dropless top-1 routing.

Load it with AutoModelForCausalLM.from_pretrained(..., trust_remote_code=True).

Downloads last month
293
Safetensors
Model size
25B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Jongbin-kr/llama-3.1-8b-instruct-4x1-moe

Finetuned
(3138)
this model
Adapters
4 models