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 # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/megablocks", version=1) - Notebooks
- Google Colab
- Kaggle
File size: 198 Bytes
2595c46 | 1 2 3 4 5 6 7 8 9 10 | #pragma once
#include <torch/all.h>
namespace megablocks {
// Public interface function for computing histograms
torch::Tensor histogram(torch::Tensor x, int num_bins);
} // namespace megablocks |