[Misc] Fix spelling typos in comments (#31114)

Signed-off-by: c0de128 <kevin.mckay@outlook.com>
This commit is contained in:
Kevin McKay 2025-12-21 23:13:14 -06:00 committed by GitHub
parent 19cc9468fd
commit 8c084de59d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,7 @@ if __name__ == "__main__":
print(f"Found {len(wheel_files)} wheel files for version {version}: {wheel_files}") print(f"Found {len(wheel_files)} wheel files for version {version}: {wheel_files}")
# keep only "official" files for a non-nightly version (specifed by cli args) # keep only "official" files for a non-nightly version (specified by cli args)
PY_VERSION_RE = re.compile(r"^\d+\.\d+\.\d+([a-zA-Z0-9.+-]*)?$") PY_VERSION_RE = re.compile(r"^\d+\.\d+\.\d+([a-zA-Z0-9.+-]*)?$")
if PY_VERSION_RE.match(version): if PY_VERSION_RE.match(version):
# upload-wheels.sh ensures no "dev" is in args.version # upload-wheels.sh ensures no "dev" is in args.version

View File

@ -138,7 +138,7 @@ def create_batched_mm_kwargs(
) )
# TODO(Isotr0py): Don't initalize model during test # TODO(Isotr0py): Don't initialize model during test
@contextmanager @contextmanager
def initialize_dummy_model( def initialize_dummy_model(
model_cls: type[nn.Module], model_cls: type[nn.Module],

View File

@ -104,7 +104,7 @@ class MistralReasoningParser(BaseThinkingReasoningParser):
# 3. Both BOT and EOT have been outputted. # 3. Both BOT and EOT have been outputted.
elif has_bot_token and has_eot_token: elif has_bot_token and has_eot_token:
return input_ids[:bot_token_index] + input_ids[eot_token_index + 1 :] return input_ids[:bot_token_index] + input_ids[eot_token_index + 1 :]
# 4. Only EOT has been outputted => this should not have occured for a model # 4. Only EOT has been outputted => this should not have occurred for a model
# well prompted and trained. # well prompted and trained.
else: else:
return input_ids[:eot_token_index] + input_ids[eot_token_index + 1 :] return input_ids[:eot_token_index] + input_ids[eot_token_index + 1 :]