Repository navigation
Conversation
Nari-Ab
marked this pull request as ready for review
October 27, 2026 04:12
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2200.
Replace deprecated torch_dtype load arguments with dtype in one sweep of Transformers model-loading calls and their kwargs dictionaries. Precision values and quantization decisions stay the same. Unsloth/Peft APIs, checkpoint config fields (including utils/kimi_k2.py) and unrelated utility files are unchanged.
Invert the existing floor-compatibility guard so it rejects the deprecated spelling. It covers direct calls, local dictionaries/updates/unpacks and locally selected AutoModel loader aliases, including the DPO path. Existing wrapper/CLI assertions follow the new spelling. Real tiny models saved locally exercise a CPU from_pretrained path and a meta-skeleton from_config path, with Python warnings and deprecated-dtype logging rejected; no model download is needed.
Validation on Python 3.11/macOS, main 7196345:
Dependencies for verification were installed only in /private/tmp targets; the existing venv was not modified. Existing Typer/PEFT/TRL/pickle warnings remain, including three warnings in the focused floor run. No real GPU, native Linux/Windows or full-project local suite is claimed. The maintainer-controlled hosted floor/full CI remains required before merge.