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 csrc/new_histogram.h from replicate/megablocks: direct link, hf CLI and curl.
- Browser
- Download file 198 Bytes
-
https://huggingface.co/replicate/megablocks/resolve/main/csrc/new_histogram.h
- Command line
-
hf download hf://replicate/megablocks/csrc/new_histogram.h
-
curl -L -o new_histogram.h https://huggingface.co/replicate/megablocks/resolve/main/csrc/new_histogram.h
198 Bytes
| namespace megablocks { | |
| // Public interface function for computing histograms | |
| torch::Tensor histogram(torch::Tensor x, int num_bins); | |
| } // namespace megablocks |