Instructions to use replicate/sonic-moe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/sonic-moe with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/sonic-moe", version=1) - Notebooks
- Google Colab
- Kaggle
File size: 530 Bytes
ac0e6e3 d934615 ac0e6e3 d934615 ac0e6e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # ********************************************************************************
# Copyright (c) 2025, Wentao Guo, Mayank Mishra, Xinle Cheng, Ion Stoica, Tri Dao
# ********************************************************************************
__version__ = "0.1.2.post1"
from .enums import KernelBackendMoE
from .functional import moe_general_routing_inputs, moe_TC_softmax_topk_layer
from .moe import MoE
__all__ = [
"KernelBackendMoE",
"MoE",
"moe_general_routing_inputs",
"moe_TC_softmax_topk_layer",
]
|