Skip to content

[quantization] Add BOS token - #850

Merged
mhs4670go merged 1 commit into
Samsung:mainfrom
stamalakhov:bos_token
Aug 1, 2026
Merged

[quantization] Add BOS token#850
mhs4670go merged 1 commit into
Samsung:mainfrom
stamalakhov:bos_token

Conversation

@stamalakhov

@stamalakhov stamalakhov commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This commit adds BOS token to calibration dataset for llama model.

Here are the results of GPTQ+mse quantizing HuggingFaceTB/SmolLM2-135M-Instruct using 128 samples without PTQ and without/with BOS token included.

no_BOS BOS
quantize_full_qmodel 19.83 19.78
quantize 19.83 19.78

TICO-DCO-1.0-Signed-off-by: s.malakhov s.malakhov@partner.samsung.com

This commit adds BOS token to calibration dataset for llama model.

TICO-DCO-1.0-Signed-off-by: s.malakhov <s.malakhov@partner.samsung.com>
@stamalakhov stamalakhov self-assigned this Jul 31, 2026
@stamalakhov
stamalakhov requested a review from a team July 31, 2026 11:41

@Torrero Torrero 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.

LGTM

@mhs4670go
mhs4670go merged commit 4c4a9c0 into Samsung:main Aug 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants