Skip to content

docs: clarify configuration for fractional loss weights - #10188

Open
Excelius-Wang wants to merge 1 commit into
modelscope:mainfrom
Excelius-Wang:docs/fractional-loss-scale
Open

Excelius-Wang wants to merge 1 commit into
modelscope:mainfrom
Excelius-Wang:docs/fractional-loss-scale

Conversation

@Excelius-Wang

Copy link
Copy Markdown
Contributor

The custom dataset documentation only tells users to disable binary loss scaling for weights greater than 1, omitting fractional weights such as 0.5. Clarify the requirement for non-binary positive weights in both languages, explain what binary mode preserves, and update the existing JSONL/Python examples to show downweighting alongside upweighting.

Validation: extracted bilingual JSONL and Python examples match; their 0.5 and 2.0 weights survive encoding and padded/padding-free collation using a cached Qwen2.5 tokenizer. The documented Qwen3-8B download was not exercised. Earlier one-step CPU SFT checks on the same upstream revision confirm that default 0.5 and 1.0 weights produce identical loss and gradients, while explicitly disabling binary scaling preserves fractional weighting.

pre-commit run --all-files: all 10 hooks passed. git diff --check: passed. Only the two documentation files changed.

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.

1 participant