LLM Compression

Abierto
#353 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Área
ai

Línea de trabajo

This is a design proposal with no named files or entry points in this repository. The payload only names external artifacts: the SamsungLabs/LittleBit repository, its LittleBitLinear layer, and littlebit_config.json. Start by reading the reference repository to understand the checkpoint format and the QAT requirement. Done would need a maintainer-agreed scope for which checkpoints and runtime path are supported, which the issue does not yet define.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement
Problem

Running capable models locally on everyday machines is constrained by memory capacity and memory bandwidth—especially when hosting larger models alongside active context, embeddings, or local agent workloads. Higher-precision or standard 4-bit weights often exceed available local VRAM or unified/system RAM budgets.

Integrating sub-1-bit latent-factorized compression (SamsungLabs/LittleBit) would help by:

  • Shrinking model weight memory footprints (targeting 1.0 down to sub-1-bit / 0.1 bits per weight) via low-rank latent factorization and binarized factors with learned magnitude scales.
  • Leveraging LittleBit-2 (--use_itq / Joint-ITQ latent geometry alignment) during initialization to improve quality retention at aggressive compression ratios without adding inference-time overhead.
  • Making larger model families (e.g., Llama, Qwen, Gemma, Phi, OPT) more feasible on resource-constrained local hardware.
Proposal
  • Checkpoint & Layer Compatibility: Support loading/running compressed checkpoints using LittleBitLinear / littlebit_config.json (plus explicit fallback parameters for legacy checkpoints that lack littlebit_config.json).
  • Runtime / Execution Path: Wire up a clean execution or conversion path for local inference (and document whether checkpoints require QAT artifacts vs. pre-compressed weights, along with optional residual factorization support).
  • Configuration & Presets: Add configuration options to select compressed variants, bit-width/initialization settings (such as ITQ-aligned checkpoints), and clear error/fallback behavior when unsupported.
  • Benchmarks & Docs: Document supported architectures, memory footprint vs. quality/latency trade-offs, and licensing constraints.
Alternatives
  • Cloud APIs for larger models: Avoids local memory limits, but requires network access and gives up local execution/privacy.
  • Smaller parameter-count models at standard bit-widths: Uses less memory, but sacrifices model capacity/reasoning compared to compressing larger models.
  • Existing 2-bit / 4-bit quantizations alone: Helpful baseline, but still requires substantially more memory than sub-1-bit factorized representations.

Trade-offs & Considerations

  • Quality & QAT Requirement: Extreme sub-1-bit compression relies on Quantization-Aware Training (QAT) and can trade off accuracy/perplexity at very low bit rates; evaluation across target tasks is essential before defaulting to aggressive bit budgets.
  • Inference & Kernel Readiness: Because SamsungLabs/LittleBit focuses on QAT/evaluation with LittleBitLinear rather than out-of-the-box integration into every inference engine, production/runtime serving may require dedicated packing or kernel support.
  • License Check: Note that SamsungLabs/LittleBit is released under a non-commercial license (CC BY-NC 4.0), so commercial vs. personal/research use should be accounted for.

Additional Context

Lenguaje dominante
TypeScript
Estrellas
3.8k
Forks
360
Merge medio
8 h 10 min
PR fusionados (30 d)
540

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de simplexai-labs/linger

Todos los issues de simplexai-labs/linger

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.