mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-24 06:15:01 +08:00
[Misc] Fix spelling typos in comments (#31114)
Signed-off-by: c0de128 <kevin.mckay@outlook.com>
This commit is contained in:
parent
19cc9468fd
commit
8c084de59d
@ -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(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# 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):
|
|||||||
# 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 :]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user