Unverified Commit 8c084de5 authored by Kevin McKay's avatar Kevin McKay Committed by GitHub
Browse files

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


Signed-off-by: default avatarc0de128 <kevin.mckay@outlook.com>
parent 19cc9468
...@@ -372,7 +372,7 @@ if __name__ == "__main__": ...@@ -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
......
...@@ -138,7 +138,7 @@ def create_batched_mm_kwargs( ...@@ -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],
......
...@@ -104,7 +104,7 @@ class MistralReasoningParser(BaseThinkingReasoningParser): ...@@ -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 :]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment