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: 409 Bytes
ac0e6e3 | 1 2 3 4 5 6 7 8 9 10 11 | """Compatibility helpers for op namespacing in source and built layouts."""
try:
from ._ops import add_op_namespace_prefix as _generated_add_op_namespace_prefix
except ImportError:
def _generated_add_op_namespace_prefix(name: str) -> str:
return name if "::" in name else f"sonicmoe::{name}"
def add_op_namespace_prefix(name: str) -> str:
return _generated_add_op_namespace_prefix(name)
|