Run this model with HF Jobs
Run replicate/flash-mla 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/flash-mla. 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/flash-mla 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.
Instructions to use replicate/flash-mla with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/flash-mla 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/flash-mla", version=1) - Notebooks
- Google Colab
- Kaggle
Uploaded using `kernel-builder`.
Browse filesFiles changed (10)
- build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+1-1
- build/torch210-cxx11-cu128-x86_64-linux/_ops.py+3-3
- build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+2-2
- build/torch210-cxx11-cu130-x86_64-linux/_ops.py+3-3
- build/torch211-cxx11-cu128-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch211-cxx11-cu128-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+1-1
- build/torch211-cxx11-cu128-x86_64-linux/_ops.py+3-3
- build/torch211-cxx11-cu130-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch211-cxx11-cu130-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+2-2
- build/torch211-cxx11-cu130-x86_64-linux/_ops.py+3-3
- build/torch29-cxx11-cu129-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch29-cxx11-cu129-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+1-1
- build/torch29-cxx11-cu129-x86_64-linux/_ops.py+3-3
123version https://git-lfs.github.com/spec/v1oid sha256:a5a848e71e943d30f41eea9b201cb51b7ebdf5e962652e836d46d4fc3f4769f6size 3534072123version https://git-lfs.github.com/spec/v1oid sha256:39220bdfb4da95c812418feb81741b7bad6b038aa507e0261fde90d312a9a2absize 3534072
123456789import torchfrom . import _flash_mla_cuda_89d7fc1ops = torch.ops._flash_mla_cuda_89d7fc1def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_89d7fc1::{op_name}"123456789import torchfrom . import _flash_mla_cuda_a1027e3ops = torch.ops._flash_mla_cuda_a1027e3def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_a1027e3::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:ebb93cd1323c0ade7e8f102af41d8c4b310722ceea363da2ceadbd831dbf723esize 9395216123version https://git-lfs.github.com/spec/v1oid sha256:34be9cab97c8557e3992b2ef855876a892c6df26c4a221b9147dd8e9028e64a6size 9384560
123456789import torchfrom . import _flash_mla_cuda_89d7fc1ops = torch.ops._flash_mla_cuda_89d7fc1def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_89d7fc1::{op_name}"123456789import torchfrom . import _flash_mla_cuda_a1027e3ops = torch.ops._flash_mla_cuda_a1027e3def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_a1027e3::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:3a1b76510b5134347620c4874e7f3e272dcbe3360e522fd7ffaede1d7f850cf6size 3522920123version https://git-lfs.github.com/spec/v1oid sha256:e3b06814ab6c542725c3709eac2e09afd59c2e3c74b5d44ea8ddd08aadab4391size 3522920
123456789import torchfrom . import _flash_mla_cuda_89d7fc1ops = torch.ops._flash_mla_cuda_89d7fc1def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_89d7fc1::{op_name}"123456789import torchfrom . import _flash_mla_cuda_a1027e3ops = torch.ops._flash_mla_cuda_a1027e3def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_a1027e3::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:7e585a4092d2aaab0ba89ddf1e266034c0e574fd9388e5a6d2cb21948e80cce0size 9383872123version https://git-lfs.github.com/spec/v1oid sha256:c756ed03a3367c17a5e2ca7795c58e08c862cf225ff3d95786ae71035032a9b2size 9369296
123456789import torchfrom . import _flash_mla_cuda_89d7fc1ops = torch.ops._flash_mla_cuda_89d7fc1def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_89d7fc1::{op_name}"123456789import torchfrom . import _flash_mla_cuda_a1027e3ops = torch.ops._flash_mla_cuda_a1027e3def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_a1027e3::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:dbee04ad485babe4202c1c634e2914fddb814f7225dc8b3ee556260d6b03557esize 9283880123version https://git-lfs.github.com/spec/v1oid sha256:084eb966b3933303f5f0293b1ddfa23d5d745afd886d78e1f366255deb5dc1c8size 9283880
123456789import torchfrom . import _flash_mla_cuda_89d7fc1ops = torch.ops._flash_mla_cuda_89d7fc1def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_89d7fc1::{op_name}"123456789import torchfrom . import _flash_mla_cuda_a1027e3ops = torch.ops._flash_mla_cuda_a1027e3def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_a1027e3::{op_name}"
build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+1-1
build/torch210-cxx11-cu128-x86_64-linux/_ops.py+3-3
build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+2-2
build/torch210-cxx11-cu130-x86_64-linux/_ops.py+3-3
build/torch211-cxx11-cu128-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch211-cxx11-cu128-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+1-1
build/torch211-cxx11-cu128-x86_64-linux/_ops.py+3-3
build/torch211-cxx11-cu130-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch211-cxx11-cu130-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+2-2
build/torch211-cxx11-cu130-x86_64-linux/_ops.py+3-3
build/torch29-cxx11-cu129-x86_64-linux/_flash_mla_cuda_89d7fc1.abi3.so → build/torch29-cxx11-cu129-x86_64-linux/_flash_mla_cuda_a1027e3.abi3.soRenamed+1-1
build/torch29-cxx11-cu129-x86_64-linux/_ops.py+3-3