LLM Compression

オープン
#353 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
領域
ai

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
3.8k
フォーク
360
平均マージ
8時間 10分
マージ済み PR(30日)
540

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simplexai-labs/linger のほかの issue

simplexai-labs/linger の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。