Downloads · 30 days
5
4% of all-time downloads
siddharth797/fenrir-MoE-v1
fenrir-MoE-v1 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 compact Mixture-of-Experts (MoE) language model based on the DeepSeek‑MoE architecture, fully compatible with the Hugging Face transformers library.
Downloads · 30 days
5
4% of all-time downloads
All-time downloads
123
Public
Parameters
117M
469 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors469 MB · 99%
From the Hugging Face model README
A compact Mixture-of-Experts (MoE) language model based on the DeepSeek‑MoE architecture, fully compatible with the Hugging Face transformers library.
d_model = 51268162451250257 (GPT‑2 tokenizer)256 tokensThis model is intended for research, fine‑tuning, or lightweight inference on CPU/GPU.
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",
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}
}