ai/vec2text/SKILL.md
vec2text: embedding-inversion library for reconstructing approximate text from sentence embeddings. Use when working with saved embedding tensors, privacy/inversion research, or AI/ML challenge workflows where you need to load a corrector model and invert strings or embeddings directly.
npx skillsauth add aeondave/malskill vec2textInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use vec2text when embeddings are the artifact and text recovery is the question.
Use vec2text when you need to:
import vec2text
corrector = vec2text.load_pretrained_corrector("gtr-base")
vec2text.invert_strings(
["example text"],
corrector=corrector,
num_steps=20,
sequence_beam_width=4,
)
import torch
embeddings = torch.load("embeddings.pt", map_location="cpu")
texts = vec2text.invert_embeddings(
embeddings=embeddings,
corrector=corrector,
num_steps=20,
)
print(texts)
num_steps improves refinement quality, while sequence_beam_width improves search at higher memory cost.No bundled scripts/, references/, or assets/.
Use the upstream vec2text README for current pretrained corrector aliases, API entry points, and embedding-family matching guidance.
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.