docs: fix typos (#972)

Found via `codespell -S docs,*.ipynb -L thre,te,erro` and `typos
--hidden --format brief`
This commit is contained in:
Ang
2025-11-26 13:08:05 +08:00
committed by GitHub
parent 9bfbc9a0fb
commit b17d3c2670
6 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ class BlockSpaceManager:
self.block_sliding_window
and len(block_table) >= self.block_sliding_window
):
# re-use a block
# reuse a block
block_table.append(
block_table[len(block_table) % self.block_sliding_window]
)
+6 -6
View File
@@ -401,9 +401,9 @@ class ModelRunner:
broadcast(input_metadata.block_tables, src=0)
broadcast(sampling_metadata.selected_token_indices, src=0)
else:
receving_list = [None]
broadcast_object_list(receving_list, src=0)
py_data = receving_list[0]
receiving_list = [None]
broadcast_object_list(receiving_list, src=0)
py_data = receiving_list[0]
input_tokens = torch.empty(
*py_data["input_tokens_size"], dtype=torch.long, device="cuda"
)
@@ -505,9 +505,9 @@ class ModelRunner:
model_executable = self.model
infer_text = sampling_metadata.seq_groups[0][1].infer_text
temperture = sampling_metadata.seq_groups[0][1].temperature
temperature = sampling_metadata.seq_groups[0][1].temperature
if not infer_text:
temperture = torch.tensor(temperture).to(input_tokens.device)
temperature = torch.tensor(temperature).to(input_tokens.device)
logits_processors, logits_warpers = sampling_metadata.seq_groups[0][
1
].logits_processors
@@ -553,7 +553,7 @@ class ModelRunner:
),
hidden_states=hidden_states,
infer_text=infer_text,
temperature=temperture,
temperature=temperature,
logits_processors=logits_processors,
logits_warpers=logits_warpers,
min_new_token=min_new_token,
+2 -2
View File
@@ -107,14 +107,14 @@ class RequestOutput:
# always has the logprobs of the sampled tokens even if the
# logprobs are not requested.
logprobs = None
finshed_reason = SequenceStatus.get_finished_reason(seq.status)
finished_reason = SequenceStatus.get_finished_reason(seq.status)
output = CompletionOutput(
seqs.index(seq),
seq.output_text,
seq.get_output_token_ids(),
seq.get_cumulative_logprob(),
logprobs,
finshed_reason,
finished_reason,
seq.data.hidden_states,
)
outputs.append(output)
+1 -1
View File
@@ -128,7 +128,7 @@ class Scheduler:
return len(self.waiting) + len(self.running) + len(self.swapped)
def _schedule(self) -> SchedulerOutputs:
# Blocks that need to be swaped or copied before model execution.
# Blocks that need to be swapped or copied before model execution.
blocks_to_swap_in: Dict[int, int] = {}
blocks_to_swap_out: Dict[int, int] = {}
blocks_to_copy: Dict[int, List[int]] = {}
+1 -1
View File
@@ -38,7 +38,7 @@ def select_device(min_memory=2047, experimental=False):
"""
if experimental:
# For Apple M1/M2 chips with Metal Performance Shaders
logger.get_logger().warning("experimantal: found apple GPU, using MPS.")
logger.get_logger().warning("experimental: found apple GPU, using MPS.")
device = torch.device("mps")
else:
logger.get_logger().info("found Apple GPU, but use CPU.")
+2 -2
View File
@@ -102,7 +102,7 @@ def reload_chat(coef: Optional[str]) -> str:
chat.unload()
gr.Info("Model unloaded.")
if len(coef) != 230:
gr.Warning("Ingore invalid DVAE coefficient.")
gr.Warning("Ignore invalid DVAE coefficient.")
coef = None
try:
global custom_path
@@ -111,7 +111,7 @@ def reload_chat(coef: Optional[str]) -> str:
raise gr.Error(str(e))
if not ret:
raise gr.Error("Unable to load model.")
gr.Info("Reload succeess.")
gr.Info("Reload success.")
return chat.coef