Instructions to use kernels-community/sonic-moe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/sonic-moe with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/sonic-moe") - Notebooks
- Google Colab
- Kaggle
| """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) | |