计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
lookup-free-and-latent【效率与协作】Lookup-free, binary, latent, and evolutionary quantization workflows for vector-quantize-pytorch.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs lookup-free, binary, latent, or evolutionary quantization from vector-quantize-pytorch:
LFQ for MagViT-style lookup-free binary latents, entropy/diversity regularization, sequence/image/video inputs, masks, and indices_to_codes roundtrips.ResidualLFQ and GroupedResidualLFQ for stacked residual lookup-free quantizers, grouped feature splits, dropout-aware indices, and reconstruction from indices.LatentQuantize for per-latent scalar code values, levels, num_codebooks, optional learnable values, and image/video/series channel-first tensors.BinaryMapper for mapping Bernoulli bit logits to one-hot binary code indices plus optional auxiliary KL loss.EvoLFQ for wrapping an encoder, decoder, and LFQ bottleneck and optionally evolving binary latent populations.Route elsewhere for:
ResidualFSQ, or GroupedResidualFSQ: use ../scalar-quantizers/.SimVQ, ResidualSimVQ, or HierarchicalVQ: use ../sim-and-hierarchical/.VectorQuantize, RandomProjectionQuantizer, or codebook EMA health: use ../vector-quantization/.../residual-quantizers/.codebook_size; log2(codebook_size) * num_codebooks is the internal binary width.Run the CPU smoke helper after installing vector-quantize-pytorch and PyTorch:
python scripts/smoke_lookup_free_latent.py --help
python scripts/smoke_lookup_free_latent.py
The helper performs tiny CPU checks for LFQ, ResidualLFQ, GroupedResidualLFQ, LatentQuantize, BinaryMapper, and a minimal EvoLFQ forward unless --skip-evo is passed.