Instructions to use replicate/megablocks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/megablocks with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("replicate/megablocks") - Notebooks
- Google Colab
- Kaggle
Download flake.nix from replicate/megablocks: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/replicate/megablocks/resolve/main/flake.nix
- Command line
-
hf download hf://replicate/megablocks/flake.nix
-
curl -L -o flake.nix https://huggingface.co/replicate/megablocks/resolve/main/flake.nix
471 Bytes
| { | |
| description = "Flake for megablocks_moe kernel"; | |
| inputs = { | |
| kernel-builder.url = "github:huggingface/kernel-builder"; | |
| }; | |
| outputs = | |
| { | |
| self, | |
| kernel-builder, | |
| }: | |
| kernel-builder.lib.genFlakeOutputs { | |
| path = ./.; | |
| rev = self.shortRev or self.dirtyShortRev or self.lastModifiedDate; | |
| pythonCheckInputs = pkgs: with pkgs; [ | |
| tqdm | |
| py-cpuinfo | |
| importlib-metadata | |
| torchmetrics | |
| ]; | |
| }; | |
| } |