Kernels

Run this model with HF Jobs

Run replicate/megablocks on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/replicate/megablocks. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/replicate/megablocks on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
drbh commited on
Commit
484fde0
·
1 Parent(s): 6756875

fix: prefer relative imports

Browse files
31 files changed +137 -77
Files changed (31)
build.toml-1
torch-ext/megablocks/grouped_gemm/backend.py+2-1
torch-ext/megablocks/layers/arguments.py+2-1
torch-ext/megablocks/layers/common.py+1-1
torch-ext/megablocks/layers/dmlp_registry.py+2-2
torch-ext/megablocks/layers/dmoe.py+8-5
torch-ext/megablocks/layers/glu.py+16-5
torch-ext/megablocks/layers/memory_test.py+2-1
torch-ext/megablocks/layers/mlp.py+9-5
torch-ext/megablocks/layers/moe.py+50-18
torch-ext/megablocks/layers/mpu.py+2-1
torch-ext/megablocks/layers/router.py+4-2
torch-ext/megablocks/layers/sharedexpert_registry.py+4-2
torch-ext/megablocks/ops/__init__.py+14-14
torch-ext/megablocks/ops/all_to_all_benchmark.py+5-2
torch-ext/megablocks/ops/binned_gather.py+1-1
torch-ext/megablocks/ops/binned_scatter.py+1-1
torch-ext/megablocks/ops/cumsum.py+1-1
torch-ext/megablocks/ops/gather.py+1-1
torch-ext/megablocks/ops/histogram.py+1-1
torch-ext/megablocks/ops/histogram_benchmark.py+1-1
torch-ext/megablocks/ops/matmul_benchmark.py+1-1
torch-ext/megablocks/ops/padded_gather.py+1-1
torch-ext/megablocks/ops/padded_scatter.py+1-1
torch-ext/megablocks/ops/padded_scatter_benchmark.py+1-1
torch-ext/megablocks/ops/permute_benchmark.py+1-1
torch-ext/megablocks/ops/replicate.py+1-1
torch-ext/megablocks/ops/scatter.py+1-1
torch-ext/megablocks/ops/sort.py+1-1
torch-ext/megablocks/ops/sort_benchmark.py+1-1
torch-ext/megablocks/ops/topology.py+1-1