Skip to content

Fix: Correct token names and correct parser in create-local-model.py #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CivaaBTW
Copy link
Contributor

@CivaaBTW CivaaBTW commented Aug 8, 2025

This PR addresses two distinct bugs in the /metal/scripts/create-local-model.py script to prevent a runtime error and fix the prog and description outputted.

Change Description

There is an inconsistency in the naming of the <|endofuntrusted|> special token.

In the o200k_gptoss definition, it is named "<|endofuntrusted|>". But in the SPECIAL_TOKEN_UUID dict and INCLUDE_SPECIAL_TOKENS list, it is named "<|end_untrusted|>".

This mismatch would cause a runtime error.

The Argument Parser that has an incorrect prog name and description, if a user were to run the --help flag they would get the idea that this script is for validating the MXFP4 weights but it's not.

Change Made

This fix standardizes the name to end_untrusted, preventing the error. The second change added the appropriate prog and description.

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