Downloads · 30 days
43
26% of all-time downloads
Fu01978/Llama-3.2-3B-MoE-4Expert
Llama-3.2-3B-MoE-4Expert is a text generation model from Fu01978. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
A 4-expert Mixture of Experts (MoE) model built on unsloth/Llama-3.2-3B-Instruct, specializing in chat, code, creative writing, and mathematics.
Downloads · 30 days
43
26% of all-time downloads
All-time downloads
165
Public
Parameters
9.6B
19.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors19.1 GB · 100%
From the Hugging Face model README
A 4-expert Mixture of Experts (MoE) model built on unsloth/Llama-3.2-3B-Instruct, specializing in chat, code, creative writing, and mathematics.
This model combines four specialized Llama-3.2-3B variants into a single MoE architecture that intelligently routes queries to the most appropriate expert:
| Expert | Model | Specialization |
|---|---|---|
| 1 | unsloth/Llama-3.2-3B-Instruct | General chat, summaries, explanations |
| 2 | prithivMLmods/Codepy-Deepthink-3B | Python, algorithms, debugging |
| 3 | DavidAU/Llama-3.2-3B-Instruct-heretic-ablitered-uncensored | Creative writing, fiction, roleplay |
| 4 | prithivMLmods/Llama-3.2-3B-Math-Oct | Mathematics, proofs, calculations |
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "Fu01978/Llama-3.2-3B-MoE-4Expert"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
prompt = "Write a Python function to calculate fibonacci numbers"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model has been tested across all four domains and shows appropriate expert routing:
Edge cases and ambiguous queries default to the general chat expert.
Built with mergekit. Thanks to: