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
Build uploaded using `kernels`.
Browse filesFiles changed (12)
- build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_n5cwpkebdn7tu.abi3.so → build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
- build/torch210-cxx11-cu128-x86_64-linux/_ops.py+3-3
- build/torch210-cxx11-cu128-x86_64-linux/metadata.json+9-2
- build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_jeu3ybctgatdg.abi3.so → build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
- build/torch210-cxx11-cu130-x86_64-linux/_ops.py+3-3
- build/torch210-cxx11-cu130-x86_64-linux/metadata.json+10-2
- build/torch29-cxx11-cu128-x86_64-linux/_flash_mla_cuda_sq54danr2ngz4.abi3.so → build/torch29-cxx11-cu128-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
- build/torch29-cxx11-cu128-x86_64-linux/_ops.py+3-3
- build/torch29-cxx11-cu128-x86_64-linux/metadata.json+9-2
- build/torch29-cxx11-cu130-x86_64-linux/_flash_mla_cuda_ytyeqvwwmlcyi.abi3.so → build/torch29-cxx11-cu130-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
- build/torch29-cxx11-cu130-x86_64-linux/_ops.py+3-3
- build/torch29-cxx11-cu130-x86_64-linux/metadata.json+10-2
123version https://git-lfs.github.com/spec/v1oid sha256:6447a21ee1d2be7d769ed0ad7a6ed8259b3a6ad1b2818be8e1f5a6c0a812deaasize 3534104123version https://git-lfs.github.com/spec/v1oid sha256:159f6907fce13b98e5b9efd95c8c51f14087d5e4014d2b79fea6c9ad4453f372size 3534072
123456789import torchfrom . import _flash_mla_cuda_n5cwpkebdn7tuops = torch.ops._flash_mla_cuda_n5cwpkebdn7tudef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_n5cwpkebdn7tu::{op_name}"123456789import torchfrom . import _flash_mla_cuda_09f70efops = torch.ops._flash_mla_cuda_09f70efdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_09f70ef::{op_name}"
1234{"version": 1,"python-depends": []}1234567891011{"version": 1,"license": "MIT","python-depends": [],"backend": {"type": "cuda","archs": ["9.0a"]}}
123version https://git-lfs.github.com/spec/v1oid sha256:5f45c42c89859a7011ace4c0d38f54ff2381d2f1c6a1dc12ab19a556e1936b1fsize 9395248123version https://git-lfs.github.com/spec/v1oid sha256:c1f914866fdfdcf91845a2d11c0218309b99020025fd35ed547230ae8e1ba519size 9395216
123456789import torchfrom . import _flash_mla_cuda_jeu3ybctgatdgops = torch.ops._flash_mla_cuda_jeu3ybctgatdgdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_jeu3ybctgatdg::{op_name}"123456789import torchfrom . import _flash_mla_cuda_09f70efops = torch.ops._flash_mla_cuda_09f70efdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_09f70ef::{op_name}"
1234{"version": 1,"python-depends": []}123456789101112{"version": 1,"license": "MIT","python-depends": [],"backend": {"type": "cuda","archs": ["10.0f","9.0a"]}}
123version https://git-lfs.github.com/spec/v1oid sha256:1c9af57ce65dbf293c052de51d2b5f601dfd2fb667f350f1608cbb1ba8c006fdsize 3523120123version https://git-lfs.github.com/spec/v1oid sha256:22efc944dccf34d020a87fe713033bfae026d91eda6ecc86a4d491abe38edc51size 3523096
123456789import torchfrom . import _flash_mla_cuda_sq54danr2ngz4ops = torch.ops._flash_mla_cuda_sq54danr2ngz4def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_sq54danr2ngz4::{op_name}"123456789import torchfrom . import _flash_mla_cuda_09f70efops = torch.ops._flash_mla_cuda_09f70efdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_09f70ef::{op_name}"
1234{"version": 1,"python-depends": []}1234567891011{"version": 1,"license": "MIT","python-depends": [],"backend": {"type": "cuda","archs": ["9.0a"]}}
123version https://git-lfs.github.com/spec/v1oid sha256:6289152d635de44ae70af9c051ff64ba8ead54dfd03f6d34ba4cb1c09b28e362size 9380408123version https://git-lfs.github.com/spec/v1oid sha256:243747242a38da9e2034590bfd52c3f883683b4faec3ccfd6ec76a0f97addf43size 9380384
123456789import torchfrom . import _flash_mla_cuda_ytyeqvwwmlcyiops = torch.ops._flash_mla_cuda_ytyeqvwwmlcyidef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_ytyeqvwwmlcyi::{op_name}"123456789import torchfrom . import _flash_mla_cuda_09f70efops = torch.ops._flash_mla_cuda_09f70efdef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_flash_mla_cuda_09f70ef::{op_name}"
1234{"version": 1,"python-depends": []}123456789101112{"version": 1,"license": "MIT","python-depends": [],"backend": {"type": "cuda","archs": ["10.0f","9.0a"]}}
build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_n5cwpkebdn7tu.abi3.so → build/torch210-cxx11-cu128-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
build/torch210-cxx11-cu128-x86_64-linux/_ops.py+3-3
build/torch210-cxx11-cu128-x86_64-linux/metadata.json+9-2
build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_jeu3ybctgatdg.abi3.so → build/torch210-cxx11-cu130-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
build/torch210-cxx11-cu130-x86_64-linux/_ops.py+3-3
build/torch210-cxx11-cu130-x86_64-linux/metadata.json+10-2
build/torch29-cxx11-cu128-x86_64-linux/_flash_mla_cuda_sq54danr2ngz4.abi3.so → build/torch29-cxx11-cu128-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
build/torch29-cxx11-cu128-x86_64-linux/_ops.py+3-3
build/torch29-cxx11-cu128-x86_64-linux/metadata.json+9-2
build/torch29-cxx11-cu130-x86_64-linux/_flash_mla_cuda_ytyeqvwwmlcyi.abi3.so → build/torch29-cxx11-cu130-x86_64-linux/_flash_mla_cuda_09f70ef.abi3.soRenamed+2-2
build/torch29-cxx11-cu130-x86_64-linux/_ops.py+3-3
build/torch29-cxx11-cu130-x86_64-linux/metadata.json+10-2