Run this model with HF Jobs
Run kernels-community/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/kernels-community/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/kernels-community/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 kernels-community/deep-gemm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/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("kernels-community/deep-gemm", version=1) - Notebooks
- Google Colab
- Kaggle
Build uploaded using `kernels` (batch 3/10).
Browse filesFiles changed (4)
33 unmodified lines34353633 unmodified linesbuild/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 -textbuild/torch210-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_8546a43.abi3.so filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363733 unmodified linesbuild/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 -textbuild/torch210-cxx11-cu128-x86_64-linux/_deep_gemm_cuda_8546a43.abi3.so filter=lfs diff=lfs merge=lfs -textbuild/torch210-cxx11-cu130-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:f6e522c4101136bc037a52880c7f16734b014d40449bfdf4b88036748ca7b148size 2897240123456789import 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}"
.gitattributes+1
build/torch210-cxx11-cu130-x86_64-linux/__init__.py+33-1
build/torch210-cxx11-cu130-x86_64-linux/_deep_gemm_cuda_8546a43.abi3.soAdded+3
build/torch210-cxx11-cu130-x86_64-linux/_ops.py+3-3