Archived
data: ship the published qwen4exp vector in the plugin home
Discovery's third path, <home>/vectors/<arch>-control-vector.gguf, was the one an operator could never rely on: it existed, but nothing filled it, so a deployment had to fetch Cudecnik's package and rename two files before the switch was worth anything. The published file is small (483 KB), specific to this architecture and width rather than to any one quant, and unchanged from upstream, so it belongs with the other things the home ships next to architectures/ and kernels/. CMake copies the GGUF and its JSON into the built home (and installs them under the data dir), which means a missing file is a configure error rather than a silently missing feature. Discovery order is unchanged, so the per-container and per-directory sidecar paths still win when an operator places one. The directions are a derivative of Qwen3.8-Flash-Next and are not ours to relicense: they stay under the Qwen Community License 1.0, whose text now sits beside them (data/vectors/LICENSE.qwen-community-1.0.txt), is recorded in NOTICE, and is installed to share/doc/radiance/third_party/qwen-community.LICENSE. The Apache-2.0 grant covers the loader and the kernels, not the directions. The feature is still opt-in -- without --control-vector the file is never read -- and the request default is still off, because what this particular vector removes is a safety behaviour.
This commit is contained in:
1 parent
f5cb4b8ff3
commit
4141988217
6 files changed
+91
-10
No files matched your search
@@ -184,6 +184,30 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/data/kernels_moe.rkb)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/kernels_moe.rkb
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/radiance)
|
||||
endif()
|
||||
# The published refusal-direction vector for qwen4exp, copied into the built home's vectors/ so a
|
||||
# Flash-Next container offers the switch with nothing for an operator to install: core/cvec.cpp looks
|
||||
# for <home>/vectors/<arch>-control-vector.gguf after the sidecar paths. The file is Cudecnik's,
|
||||
# unchanged (huggingface.co/Cudecnik/Qwen3.8-Flash-Next-refusal-projection; the gguf is sha256
|
||||
# ef0724c5b79297e4..., the json d4a3dd842506a6fb..., and that is what the measurements in
|
||||
# docs/GUIDE.md 4.10 were made with). Refresh with:
|
||||
#
|
||||
# huggingface-cli download Cudecnik/Qwen3.8-Flash-Next-refusal-projection \
|
||||
# Qwen3.8-Flash-Next-refusal-projection.{gguf,json}
|
||||
#
|
||||
# The directions are derived from Qwen3.8-Flash-Next's weights and stay under the Qwen Community
|
||||
# License 1.0 (data/vectors/LICENSE.qwen-community-1.0.txt, NOTICE); radiance's Apache-2.0 grant
|
||||
# covers the code that reads them, never the file. It ships loaded only when the deployment asks
|
||||
# (--control-vector), and the request default is off, because what it removes is a safety behaviour.
|
||||
file(MAKE_DIRECTORY ${RAD_PLUGIN_OUT}/vectors)
|
||||
foreach(rrad_vector qwen4exp-control-vector.gguf qwen4exp-control-vector.json)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/data/vectors/${rrad_vector}
|
||||
${RAD_PLUGIN_OUT}/vectors/${rrad_vector} COPYONLY)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/vectors/${rrad_vector}
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/radiance/vectors)
|
||||
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 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
|
||||
|
||||
Reference in new issue
Block a user