Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("stiger1000/TC-MoE")
4tokenizer = AutoTokenizer.from_pretrained("stiger1000/TC-MoE")
5
6inputs = tokenizer("The capital of France is", return_tensors="pt")
7outputs = model.generate(**inputs, max_length=50)
8print(tokenizer.decode(outputs[0]))1@inproceedings{yan2025tcmoe,
2 title={TC-MoE: Augmenting Mixture of Experts with Ternary Expert Choice},
3 author={Yan, Shen and Bin, Xingyan and Zhang, Sijun and Wang, Yisen and Lin, Zhouchen},
4 booktitle={The Thirteenth International Conference on Learning Representations},
5 year={2025}
6}