Skip to content

Sync Marlin/Machete Kernel with upstream - #2717

Merged
Qubitium merged 28 commits into
mainfrom
machete-ci
Apr 13, 2026
Merged

Qubitium merged 28 commits into
mainfrom
machete-ci

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

No description provided.

@Qubitium
Qubitium marked this pull request as ready for review April 12, 2026 21:20
@Qubitium

Copy link
Copy Markdown
Collaborator Author
 | Case | Backend | MaxAbsDiff | MeanAbsDiff | MaxRelErr | MeanRelErr |
  |---|---|---:|---:|---:|---:|
  | fp16 | TRITON | 0.0 | 0.0 | 0.0 | 0.0 |
  | fp16 | EXLLAMA_V2 | 0.00390625 | 0.00025356 | 152587888.0 | 2.3560 |
  | fp16 | MACHETE | 0.0009765625 | 4.38e-07 | 715255.75 | 0.01469 |
  | fp16 | MARLIN | 0.0009765625 | 5.42e-07 | 357627.875 | 0.00827 |
  | bf16 | TRITON | 0.0 | 0.0 | 0.0 | 0.0 |
  | bf16 | EXLLAMA_V2 | 0.0078125 | 0.00052082 | 10923.667 | 0.01441 |
  | bf16 | MACHETE | 0.0078125 | 2.28e-07 | 4.6 | 3.77e-06 |
  | bf16 | MARLIN | 0.0078125 | 2.44e-07 | 4.4667 | 3.86e-06 |
  | fp16+lora | TRITON | 0.0 | 0.0 | 0.0 | 0.0 |
  | fp16+lora | EXLLAMA_V2 | 0.00390625 | 0.00025205 | 732421888.0 | 961.37 |
  | fp16+lora | MACHETE | 0.001953125 | 4.38e-07 | 30517578.0 | 6.7479 |
  | fp16+lora | MARLIN | 0.001953125 | 5.42e-07 | 30517578.0 | 6.2785 |
  | bf16+lora | TRITON | 0.0 | 0.0 | 0.0 | 0.0 |
  | bf16+lora | EXLLAMA_V2 | 0.015625 | 0.00070216 | 1983642624.0 | 46407.65 |
  | bf16+lora | MACHETE | 0.0078125 | 2.27e-07 | 244140624.0 | 5.1636 |
  | bf16+lora | MARLIN | 0.0078125 | 2.42e-07 | 244140624.0 | 5.1636 |

Comment thread tests/test_machete_jit.py Fixed
Comment thread tests/test_machete_jit.py Fixed
@Qubitium
Qubitium merged commit e947c23 into main Apr 13, 2026
6 checks passed
@Qubitium
Qubitium deleted the machete-ci branch April 13, 2026 03:37
Qubitium added a commit that referenced this pull request Nov 18, 2026
Remove the Turing support added with the upstream Marlin sync (#2717):

* marlin_mma.h: the m16n8k8 MMA paths and the FP16-accumulate variant; mma()
  and mma_trans() lose the use_fp16_accum template parameter.
* marlin_template.h: the sm_75 use_fp16_accum epilogue conversion and the
  bf16 early return. Kernels compile to stubs below sm_80 again, so a mixed
  TORCH_CUDA_ARCH_LIST that includes 7.5 still builds.
* gptq_marlin.cu: the 2-stage Turing pipeline, its kernel selection and
  tile-validity rules, and the Turing capability branch. The host now requires
  compute capability >= 8.0.
* generate_kernels.py: no more stage-2 instantiations (fp16 instantiations go
  from 616 to 330).
* GPTQ MarlinLinear and the Marlin runtime check require sm_80, matching AWQ
  Marlin; the fp16-only sm_75 dtype gate is gone.

The cp.async fallbacks in marlin.cuh predate the Turing work. They stay, so
the repack kernels keep building for any arch list.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant