pjlab-sys4nlp/llama-moe

⛷️ LLaMA-MoE: Building Mixture-of-Experts from LLaMA with Continual Pre-training (EMNLP 2024)

41
/ 100
Emerging

Converts dense LLaMA FFN layers into sparse mixture-of-experts through neuron partitioning (random, clustering, co-activation graph, or gradient-based) and top-K gating, maintaining only 3.0–3.5B activated parameters. Supports multiple gating strategies (TopK Noisy Gate, Switch Gating) and optimizes training via FlashAttention-v2 integration with dynamic batch sampling weights from Sheared LLaMA. Integrates with Hugging Face Transformers ecosystem and provides comprehensive training monitoring (gate load/importance, load balancing metrics, throughput visualization).

1,002 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 15 / 25

How are scores calculated?

Stars

1,002

Forks

62

Language

Python

License

Apache-2.0

Last pushed

Dec 06, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/pjlab-sys4nlp/llama-moe"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.