Downloads · 30 days
5
10% of all-time downloads
vivekdhayaal/moe-xsum
moe-xsum is a machine learning model from vivekdhayaal. 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 mit.
This is a Mixture-of-Experts (MoE) model for text summarization, trained on a small subset of the XSum dataset as a trial run. The model demonstrates the MoE architecture with 4 experts and top-2 routing.
Downloads · 30 days
5
10% of all-time downloads
All-time downloads
51
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pt1.1 GB · 100%
From the Hugging Face model README
This is a Mixture-of-Experts (MoE) model for text summarization, trained on a small subset of the XSum dataset as a trial run. The model demonstrates the MoE architecture with 4 experts and top-2 routing.
import torch
from transformers import AutoTokenizer
# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained('facebook/bart-large-xsum')
# Load model (you'll need the MoE implementation)
# model = MoESummarizationModel.from_pretrained('vivekdhayaal/moe-xsum')
# Example usage
text = "Your input text here..."
# Generate summary with the model
This is a trial run model trained on only 10 samples for demonstration purposes. For production use, train on the full XSum dataset.
@misc{moe-xsum,
title={MoE Text Summarization Trial Model},
author={vivekdhayaal},
year={2024},
url={https://huggingface.co/vivekdhayaal/moe-xsum}
}