LLM Compression

Aperta
#353 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Ambito
ai

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
3.8k
Fork
360
Merge medio
8h 10m
PR unite (30g)
540

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di simplexai-labs/linger

Tutte le issue di simplexai-labs/linger

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.