EleutherAI / EleutherAI/cookbook

Improve Quantization

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
852
Forks
47
PR merge metrics
No merged PRs in 30d

Description

The quantization support I've added through `--low-prec-bytes-per-val` is a bit barebones. It'd be nice to add enough flexibility to handle per-block quantization (e.g. some only quantize the linears to int4) and some of the new formats that aren't a multiple of a byte (e.g. int4, fp6, etc)

Relevant: https://github.com/EleutherAI/cookbook/issues/36

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the implementation and tests for the `--low-prec-bytes-per-val` option, then read the related cookbook issue 36 for context. Clarify the quantization design and scope before changing code. Done means per-block quantization can target selected layers and formats such as int4 and fp6 are supported, with tests covering those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.