M2XFP4 (MXFP4v2): quantiser, gfx1201 WMMA kernels, host rows, df2 wiring, .rad packer (Import::ParoM2), stability fixes (counters-in-scratch x3, aql publish fences), kbench rows, runbook (REMAINING.md)

This commit is contained in:
hugypufy committed 2026-10-23 12:25:59 +01:00
1 parent 9eaf10da6e
commit ea0908596b
60 files changed
+4619 -193

No files matched your search

+23
View File
@@ -208,6 +208,24 @@ endforeach()
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/vectors/LICENSE.qwen-community-1.0.txt
DESTINATION ${CMAKE_INSTALL_DOCDIR}/third_party RENAME qwen-community.LICENSE)
# The M2XFP4 rows at the 27B trunk's own geometries: no in-tree container carries the encoding,
# so this is recorded from a skeleton of an m2xfp4 conversion (weights drawn from seeds) at the
# band edges a max-tok pass lands on -- one file a pass, replayed together. Re-record with
#
# rad-kbench -m <m2-container.rad> --max-cases 1 --max-tok <1|8|16|128> \
# --record data/kernels_m2xfp4_m<tok>.rkb
#
set(RAD_M2XFP4_FIXTURES "")
foreach(tok 1 8 16 128)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/data/kernels_m2xfp4_m${tok}.rkb)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/data/kernels_m2xfp4_m${tok}.rkb
${RAD_PLUGIN_OUT}/kernels_m2xfp4_m${tok}.rkb COPYONLY)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/kernels_m2xfp4_m${tok}.rkb
DESTINATION ${CMAKE_INSTALL_DATADIR}/radiance)
list(APPEND RAD_M2XFP4_FIXTURES ${RAD_PLUGIN_OUT}/kernels_m2xfp4_m${tok}.rkb)
endif()
endforeach()
# The downloader behind `radiance --model <owner/name>` (core/hf_model.cpp). The engine looks in
# <bin>/../libexec/radiance/, so the build tree mirrors that layout.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/hfget.sh
@@ -222,6 +240,11 @@ install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/hfget.sh
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/tools/rad-export
DESTINATION ${CMAKE_INSTALL_BINDIR})
# rad-pack-m2xfp4 (a ParoQuant M2XFP4 fine-tune to a .rad, through the import) drives rad-convert
# and checks its output; it is Python, like rad-export.
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/tools/rad_pack_m2xfp4.py
DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME rad-pack-m2xfp4)
# rad_add_plugin() and rad_hipify(), shared with the installed package config. The variables it
# expects are all set above.
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/RadAddPlugin.cmake)