Skip to content

[Feature]: Support dual-quantization (ultra-low bit experts + high-bit attention) #249

Description

@RaphyTwin

Problem

Loading 4-bit experts from disk still transfer too many gigabytes per token.

Proposed solution

Implement a mixed-precision quantization scheme:
Keep crucial shared layers (attention, input embeddings) at 4-bit or 8-bit permanently in VRAM/RAM.
Quantize the dynamically loaded MoE experts down to ultra-compressed 1.5-bit or 2-bit weights (using HQQ or QuIP) to drastically minimize disk-transfer size.

Alternatives considered

No response

Scope and compatibility

(Technical requirements:)
Dequantization must happen on-the-fly in CPU registers/L3 cache during forward pass to avoid memory bandwidth bottlenecks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNuova funzionalità

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions