Instructions to use replicate/moe-new-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/moe-new-models 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/moe-new-models", version=1) - Notebooks
- Google Colab
- Kaggle
File size: 1,594 Bytes
29e93ec 1aea118 29e93ec 3d21f81 29e93ec 6eaa88c 29fbb6a 6eaa88c 29e93ec 29fbb6a 29e93ec 1aea118 29e93ec 6eaa88c 29e93ec 29fbb6a 29e93ec 6eaa88c 29e93ec 29fbb6a 29e93ec 6eaa88c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | [general]
name = "moe_new_models"
[torch]
src = [
"core/scalar_type.hpp",
"torch-ext/torch_binding.cpp",
"torch-ext/torch_binding.h",
]
include = ["."]
pyext = ["py", "json"]
[kernel.fp8]
cuda-capabilities = ["7.0", "7.2", "7.5", "8.0", "8.6", "8.7", "8.9", "9.0"]
src = [
"cuda_compat.h",
"dispatch_utils.h",
"fp8/amd/hip_float8.h",
"fp8/amd/hip_float8_impl.h",
"fp8/common.cu",
"fp8/common.cuh",
"fp8/vectorization.cuh",
]
include = ["."]
depends = ["torch"]
[kernel.moe]
cuda-capabilities = ["7.0", "7.2", "7.5", "8.0", "8.6", "8.7", "8.9", "9.0"]
src = [
"cuda_compat.h",
"dispatch_utils.h",
"moe/moe_align_sum_kernels.cu",
"moe/moe_wna16.cu",
"moe/moe_wna16_utils.h",
"moe/topk_softmax_kernels.cu",
]
depends = ["torch"]
[kernel.moe-marlin]
cuda-capabilities = ["8.0", "8.6", "8.7", "8.9", "9.0"]
src = [
"core/exception.hpp",
"core/scalar_type.hpp",
"marlin-moe/marlin_moe_ops.cu",
"marlin-moe/marlin_kernels/marlin_moe_kernel_ku4.cu",
"marlin-moe/marlin_kernels/marlin_moe_kernel_ku8b128.cu",
"marlin-moe/marlin_kernels/marlin_moe_kernel.h",
"marlin-moe/marlin_kernels/marlin_moe_kernel_ku4.h",
"marlin-moe/marlin_kernels/marlin_moe_kernel_ku4b8.h",
"marlin-moe/marlin_kernels/marlin_moe_kernel_ku4b8.cu",
"marlin-moe/marlin_kernels/marlin_moe_kernel_ku8b128.h",
]
include = ["."]
depends = ["torch"]
[kernel.activation]
cuda-capabilities = ["7.0", "7.2", "7.5", "8.0", "8.6", "8.7", "8.9", "9.0"]
src = [
"activation/activation_kernels.cu",
"activation/cuda_compat.h",
"activation/dispatch_utils.h",
]
depends = ["torch"]
|