Downloads · 30 days
7
5% of all-time downloads
Abduali/nano-moe-mla
nano-moe-mla is a machine learning model from Abduali. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A scaled-down MoE model inspired by Kimi K2's shared expert architecture.
Downloads · 30 days
7
5% of all-time downloads
All-time downloads
137
Public
Repo size
1.9 GB
Likes
0
Public
Click a slice to open those files.
.bin939 MB · 100%
From the Hugging Face model README
A scaled-down MoE model inspired by Kimi K2's shared expert architecture.
Shared Expert Mechanism (DeepSeek-V3 style):
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Abduali/nano-moe-mla", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("gpt2")
prompt = "The future of AI"
input_ids = tokenizer.encode(prompt, return_tensors="pt")
output = model.generate(input_ids, max_new_tokens=50)
print(tokenizer.decode(output[0]))
If you use this model, please cite:
@misc{nano-moe-2024,
title={Nano Kimi K2 Style MoE},
author={Your Name},
year={2024},
howpublished={\url{Abduali/nano-moe-mla}}
}
Apache 2.0