Flint-1.1-INT4 / README.md
curvedinf's picture
Use Flint 1.1 INT4 in the model card and download command
770657e verified
|
Raw History Blame Contribute Delete
3.03 kB
metadata
base_model: RecursiveSI/flint-v1.1
base_model_relation: quantized
library_name: vllm
license: apache-2.0
pipeline_tag: text-generation
inference: false
tags:
  - flint
  - conversational
  - moe
  - int4
  - w4a8
  - gs128
  - quantized
  - amd
  - mi100
  - rocm

Flint 1.1 INT4

This is the standalone INT4 quantization of RecursiveSI’s Flint 1.1 for the MI100 vLLM fork. Flint is a text model for coding, chat, and tool use, with 39.8 billion parameters and 2.5 billion active per token. This release includes the original tokenizer and chat template. Source BF16 checkpoint

Quantization

The converter fits the original BF16 weights directly to an affine INT4 grid. Each group of 128 input weights shares an FP16 scale and zero point, chosen to minimize weight reconstruction error. The serving kernels use INT8 activations. This release contains the one-shot weight fit, before PTQR retraining. Converter

Component Checkpoint format
Attention and dense, shared, and routed expert projections 36,439 packed INT4 matrices with FP16 scales and zero points
Routing gates, normalization, attention sinks, token embeddings, and output head Original BF16

Quality

The standalone target and its BF16 reference each generated greedy completions for the same 52 prompts on four MI100s. The probe compared their reported top-20 next-token probabilities at 7,515 positions with overlapping tokens. Once the outputs diverge, corresponding positions can have different token histories. Probe implementation

Comparison with BF16 Result
Median KL divergence across compared positions 0.0446
Exact agreement on the first 40 generated characters 0 / 52 prompts

The converter also measured relative weight error by projection type. The mean ranged from 9.18% for the routed gate and up projections to 9.59% for the sampled dense MLP projection. Text quality results · Weight reconstruction report

Serve on four MI100s

Use the Flint 1.1 branch of curvedinf/int8-vllm with its sibling int8-aiter checkout. From the installed vLLM checkout, download the target and start it with the following commands. The API model ID is flint. Flint 1.1 installation and serving recipe

export MODEL_DIR="$HOME/models/Flint-1.1-INT4"
hf download voodooquant/Flint-1.1-INT4 --local-dir "$MODEL_DIR"
FLINT_TARGET=w4a8 SPEC=0 MI100_RECIPE=flint MI100_CARDS=4 MI100_XGMI=on \
  scripts/mi100-serve.sh start

RecursiveSI released the source weights under Apache 2.0. License