协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
vector-quantization【开发与工程】Base VectorQuantize and RandomProjectionQuantizer workflows for single-stage codebook quantization, including masks and lens, image and 3D feature maps, kmeans/cosine/codebook-dim tuning, top-k/manual EMA behavior, gradient tricks, and optional FVQ bridge guidance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for the single-stage, codebook-based APIs in vector_quantize_pytorch.
VectorQuantizeRandomProjectionQuantizerget_output_from_indicesupdate_ema_indicestopkmask and lens handlingaccept_image_fmap and accept_3d_fmapkmeans_init, use_cosine_sim, codebook_dimrotation_trick and directional_reparamsync_codebookIf you only need a safe check, run the smoke helper on CPU. It covers a tiny VectorQuantize forward/reconstruction check and a tiny RandomProjectionQuantizer round trip.