Skip to content

2/5 support kimi 2.5 full + lora: VL-aware quantization/conversion tools - #1220

Merged
yueming-yuan merged 3 commits into
radixark:mainfrom
nanjiangwill:kimi25-pr3-vl-convert-tools
May 28, 2026
Merged

2/5 support kimi 2.5 full + lora: VL-aware quantization/conversion tools#1220
yueming-yuan merged 3 commits into
radixark:mainfrom
nanjiangwill:kimi25-pr3-vl-convert-tools

Conversation

@nanjiangwill

@nanjiangwill nanjiangwill commented May 26, 2026

Copy link
Copy Markdown
Contributor

Part 2/5 of splitting #1057 (Kimi K2.5 full-param + LoRA support) into reviewable PRs, rebased on latest main.

🙏 Split out of the original Kimi K2.5 work by @GeLee-Q — thanks! (credited via Co-authored-by on the commit).

INT4/FP8 quantization tools leave vision_tower and mm_projector weights unquantized (VL components stay in native precision). Rename convert_k2_thinking_int4_to_bf16.py to convert_kimi_int4_to_bf16.py and generalize it for Kimi K2.5 checkpoints.

Independent of the other PRs (disjoint files).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates quantization and conversion tools to exclude vision-related modules (vision_tower and mm_projector) from quantization, and adapts the Kimi INT4 to BF16 conversion script to support Kimi-K2.5 by handling nested text_config and copying additional file types (.jinja and .model). The review feedback recommends assigning dummy values to unused configuration variables in convert_kimi_int4_to_bf16.py to prevent potential TypeError exceptions, and suggests refactoring the file extension checks to improve readability.

Comment thread tools/convert_kimi_int4_to_bf16.py
Comment thread tools/convert_kimi_int4_to_bf16.py Outdated
@nanjiangwill nanjiangwill changed the title 3/6 support kimi 2.5 full + lora: VL-aware quantization/conversion tools 2/5 support kimi 2.5 full + lora: VL-aware quantization/conversion tools May 26, 2026
@nanjiangwill
nanjiangwill force-pushed the kimi25-pr3-vl-convert-tools branch from ab3aa90 to 0503c16 Compare May 26, 2026 23:53

@yueming-yuan yueming-yuan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please check Gemini comment

nanjiangwill and others added 2 commits May 28, 2026 04:30
…tool

INT4/FP8 quantization tools now leave vision_tower and mm_projector
weights unquantized (VL components stay in their native precision).
Rename convert_k2_thinking_int4_to_bf16.py to convert_kimi_int4_to_bf16.py
and generalize it for the Kimi K2.5 checkpoints.

The original Kimi K2.5 work this is split from is by JiLi (@GeLee-Q).

Co-authored-by: JiLi <22428217+GeLee-Q@users.noreply.github.com>
@nanjiangwill
nanjiangwill force-pushed the kimi25-pr3-vl-convert-tools branch from 0503c16 to 02cb2c7 Compare May 28, 2026 04:31
@yueming-yuan
yueming-yuan merged commit 210b839 into radixark:main May 28, 2026
6 checks passed
@nanjiangwill
nanjiangwill deleted the kimi25-pr3-vl-convert-tools branch May 28, 2026 21:46
Frankstein73 pushed a commit to sii-avalanche/miles that referenced this pull request Jun 1, 2026
…ols (radixark#1220)

Co-authored-by: JiLi <22428217+GeLee-Q@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants