Add INT3 and INT2 group codecs with packing

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, pytorch

Direzione di ricerca

Start by reading the existing 4-bit and 8-bit packing code in src/bitsmith/packing/ and how their codecs are exposed to gptq_quantize and bitsmith sqnr. Add known-layout and round trip coverage for the 3-bit and 2-bit formats, including the stated layout of eight 3-bit values in three bytes. Done means both codecs work with GPTQ and appear in bitsmith sqnr.

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

Descrizione

area: formats enhancement

Only 4- and 8-bit integers are packed today. 3-bit and 2-bit weights (used with GPTQ in
some low-memory setups) need their own packing: for example 8 three-bit values in 3 bytes.

Task: add pack_int3/unpack_int3 and pack_int2/unpack_int2 in
src/bitsmith/packing/, codecs int3 and int2, and make gptq_quantize usable with them.

Done when known-layout and round trip tests pass and bitsmith sqnr shows both.

Lingua principale
Python
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 yashwanthdevavarapu/bitsmith

Tutte le issue di yashwanthdevavarapu/bitsmith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.