LLM Compression
メンテナーはふだん 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 の本文から書いたものです。
説明
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 lacklittlebit_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/LittleBitfocuses on QAT/evaluation withLittleBitLinearrather 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/LittleBitis released under a non-commercial license (CC BY-NC 4.0), so commercial vs. personal/research use should be accounted for.
Additional Context
- Reference repository: https://github.com/SamsungLabs/LittleBit
- Happy to help test builds, run local benchmarks, and report memory and throughput numbers.
- 主要言語
- TypeScript
- スター
- 3.8k
- フォーク
- 360
- 平均マージ
- 8時間 10分
- マージ済み PR(30日)
- 540
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
simplexai-labs/linger のほかの issue
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
simplexai-labs/linger#904 ·
メンテナーはふだん 1 日以内に返信
-
Local model JIT load waits ~22 s for a concurrency probe that always ends unmeasured and is never cached対応中かも @oldwinter53 が今日担当しました。 オープンbug
simplexai-labs/linger#896 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
simplexai-labs/linger#888 ·
メンテナーはふだん 1 日以内に返信
-
Hand-patches to the protected runtime are silently discarded on upgrade, with no supported overrideオープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
simplexai-labs/linger#883 ·
メンテナーはふだん 1 日以内に返信
-
Daily memory report silently never runs: 5-minute step ceiling plus a stuck in-memory #scheduled setオープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
simplexai-labs/linger#881 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
simplexai-labs/linger の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Bug Nethernet Tests
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JSPrismarine/JSPrismarine#3949 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
withkarann/aifoxx#504 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信