Downloads · 30 days
6
9% of all-time downloads
siddharth797/fenrir-MoE-v1-L
fenrir-MoE-v1-L is a machine learning model from siddharth797. 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 large Mixture-of-Experts (MoE) language model following the DeepSeek‑MoE design. It uses fine‑grained expert segmentation and shared experts for improved capacity while keeping per‑token FLOPs manageable.
Downloads · 30 days
6
9% of all-time downloads
All-time downloads
65
Public
Parameters
352M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
A large Mixture-of-Experts (MoE) language model following the DeepSeek‑MoE design. It uses fine‑grained expert segmentation and shared experts for improved capacity while keeping per‑token FLOPs manageable.
d_model = 76810169612128 (fine‑grained)25650257 (GPT‑2 tokenizer)256 tokensThis model offers a good trade‑off between capacity and inference cost.
Make sure you have transformers installed:
pip install transformers torch
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("siddharth797/fenrir-MoE-v1")
model = AutoModel.from_pretrained(
"siddharth797/fenrir-MoE-v1-L",
trust_remote_code=True
).to("cuda")
## Text Generation
### The repository includes a generation.py helper. Use it as follows:
from generation import generate_response, format_alpaca_prompt
formatted_prompt = format_alpaca_prompt(case["instruction"], case["input"])
response = generate_response(
prompt_text=formatted_prompt,
model=model,
tokenizer=tokenizer,
max_new_tokens=96,
temperature=0.7
)
@article{deepseekmoe2024,
title={DeepSeek-MoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models},
author={DeepSeek-AI},
year={2024}
}