Skip to content
Back to skills

Lookup Free And Latent

ASecurity

"Lookup-free, binary, latent, and evolutionary quantization

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
toolspythonbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill lookup-free-and-latent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lookup Free And Latent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lookup Free And Latent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-lookup-free-and-latent/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-lookup-free-and-latent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lookup-free-and-latent
description: "Lookup-free, binary, latent, and evolutionary quantization
  workflows for vector-quantize-pytorch."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Lookup-Free and Latent Quantization

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:

- FSQ, FSP, `ResidualFSQ`, or `GroupedResidualFSQ`: use `../scalar-quantizers/`.
- `SimVQ`, `ResidualSimVQ`, or `HierarchicalVQ`: use `../sim-and-hierarchical/`.
- Classic `VectorQuantize`, `RandomProjectionQuantizer`, or codebook EMA health: use `../vector-quantization/`.
- Non-binary residual VQ composition: use `../residual-quantizers/`.

## First steps

1. Confirm which family matches the task: LFQ for binary lookup-free codes, LatentQuantize for per-dimension latent levels, BinaryMapper for bit-logit sampling, or EvoLFQ when there is an encoder/decoder wrapper.
2. Check tensor layout before constructing the module. LFQ accepts sequence-last features for 3D tensors and channel-first image/video features; LatentQuantize treats the feature dimension as the second axis for all ranks.
3. Choose dimensions from the code representation, not just the model hidden size. LFQ requires a power-of-two `codebook_size`; `log2(codebook_size) * num_codebooks` is the internal binary width.
4. Use the API reference for exact constructor and return tuple details, then run the bundled smoke script if the package environment is uncertain.

## Bundled references

- [API reference](references/api-reference.md) for signatures, return values, layout, and reconstruction helpers.
- [Workflows](references/workflows.md) for safe setup patterns and concise examples.
- [Troubleshooting](references/troubleshooting.md) for shape, power-of-two, mask, levels, tuple, and EvoLFQ wrapper failures.

## Bundled smoke helper

Run the CPU smoke helper after installing `vector-quantize-pytorch` and PyTorch:

```bash
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.

Files in this skill

  • SKILL.md2.9 KB
  • references/api-reference.md9.3 KB
  • references/troubleshooting.md9.2 KB
  • references/workflows.md7.7 KB
  • scripts/smoke_lookup_free_latent.py8.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.