Run this model with HF Jobs
Run replicate/deep-gemm 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/deep-gemm. 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/deep-gemm 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/deep-gemm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/deep-gemm 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/deep-gemm", version=1) - Notebooks
- Google Colab
- Kaggle
Build uploaded using `kernels` (batch 1/10).
Browse filesFiles changed (10)
- .gitattributes+1
- build/torch210-cxx11-cu126-x86_64-linux/__init__.py+33-1
- build/torch210-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so β build/torch210-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_8546a43.abi3.soRenamed+1-1
- build/torch210-cxx11-cu126-x86_64-linux/_ops.py+3-3
- build/torch210-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
- build/torch210-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
- build/torch211-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
- build/torch211-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
- build/torch211-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
- build/torch29-cxx11-cu129-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
31 unmodified lines32333431 unmodified linesbuild/torch211-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch29-cxx11-cu129-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -text31 unmodified lines3233343531 unmodified linesbuild/torch211-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch211-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch29-cxx11-cu129-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch210-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_8546a43.abi3.so filter=lfs diff=lfs merge=lfs -text
2 unmodified lines34567891011121314646 unmodified lines6616626636646656666676686696706716722 unmodified linesimport torch# Import the compiled extensionfrom ._ops import opsfrom . import utils__version__ = "2.3.0"# Runtime646 unmodified lines# Fall back to nvidia-cutlass pip packagetry:import nvidia.cutlass as _ncos.environ["DG_CUTLASS_INCLUDE"] = os.path.join(os.path.dirname(_nc.__file__), "include")except ImportError:passdef _ensure_initialized():global _initializedif _initialized:2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344646 unmodified lines6916926936946956966976986997007017027037042 unmodified linesimport torch# Import the compiled extensionfrom ._ops import ops, add_op_namespace_prefixfrom . import utils__version__ = "2.3.0"# ββ Register fake tensor implementations for torch.compile ββββββββββββββββββ# All GEMM ops mutate the output tensor `d` in-place and return void.# The fake implementations are no-ops since `d` is pre-allocated by the caller.for _op in ["fp8_fp4_gemm_nt","fp8_fp4_gemm_nn","fp8_fp4_gemm_tn","fp8_fp4_gemm_tt","m_grouped_fp8_fp4_gemm_nt_contiguous","m_grouped_fp8_fp4_gemm_nn_contiguous","m_grouped_fp8_fp4_gemm_nt_masked","k_grouped_fp8_gemm_nt_contiguous","k_grouped_fp8_gemm_tn_contiguous","bf16_gemm_nt","bf16_gemm_nn","bf16_gemm_tn","bf16_gemm_tt","m_grouped_bf16_gemm_nt_contiguous","m_grouped_bf16_gemm_nn_contiguous","m_grouped_bf16_gemm_nt_masked","fp8_gemm_nt_skip_head_mid",]:@torch.library.register_fake(add_op_namespace_prefix(_op))def _fake(*args, **kwargs):pass# Runtime646 unmodified lines# Fall back to nvidia-cutlass pip packagetry:import nvidia.cutlass as _ncos.environ["DG_CUTLASS_INCLUDE"] = os.path.join(os.path.dirname(_nc.__file__), "include")except ImportError:passdef _ensure_initialized():global _initializedif _initialized:
123version https://git-lfs.github.com/spec/v1oid sha256:1e74230c00b1f3f6a5a7ea53dcd183ea1933837da2321293e015d8bd288ad3d2size 2825240123version https://git-lfs.github.com/spec/v1oid sha256:5716c2500d5dfa25bfbbffaf3469481b0ba9a0f682ae22aa6526a744cc05b59bsize 2825240
123456789import torchfrom . import _deep_gemm_cuda_bf91a5aops = torch.ops._deep_gemm_cuda_bf91a5adef add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_deep_gemm_cuda_bf91a5a::{op_name}"123456789import torchfrom . import _deep_gemm_cuda_8546a43ops = torch.ops._deep_gemm_cuda_8546a43def add_op_namespace_prefix(op_name: str):"""Prefix op by namespace."""return f"_deep_gemm_cuda_8546a43::{op_name}"
123version https://git-lfs.github.com/spec/v1oid sha256:085822267e9222797c3ed466e1987c5d8daa861882d62edeb4578a4b99edf39csize 2888040123version https://git-lfs.github.com/spec/v1oid sha256:b6477c3d1134a3fdb754ab7fc4a8d9aa98576896e6ae4613debaab483a985254size 2897240123version https://git-lfs.github.com/spec/v1oid sha256:ce90c573da5a8f2348156c8d18a0ff521f679bcff905ad700cb5e9742fe81d1csize 2825240123version https://git-lfs.github.com/spec/v1oid sha256:c2d1e6ceaf24536a9202d47f4cc633af33c6873bb5af4ca0c9bbb788dc71985dsize 2888040123version https://git-lfs.github.com/spec/v1oid sha256:f97dd08a22f024b9b3d610031d14092518ed6b8a72422e1ea482e5059a58a326size 2897240123version https://git-lfs.github.com/spec/v1oid sha256:fd66ce2110c54ac6fa347088f2a9f566c5d0b32601729f2288b35906330613f2size 2870952.gitattributes+1
build/torch210-cxx11-cu126-x86_64-linux/__init__.py+33-1
build/torch210-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.so β build/torch210-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_8546a43.abi3.soRenamed+1-1
build/torch210-cxx11-cu126-x86_64-linux/_ops.py+3-3
build/torch210-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
build/torch210-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
build/torch211-cxx11-cu126-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
build/torch211-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
build/torch211-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3
build/torch29-cxx11-cu129-x86_64-linux/_deep_gemm_cuda_bf91a5a.abi3.soDeleted-3