[Doc]: fix typos in Python comments (#24042)

Signed-off-by: Didier Durand <durand.didier@gmail.com>
Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
Didier Durand
2025-09-01 19:07:45 -07:00
committed by GitHub
co-authored by Jee Jee Li
parent a344a5aa0a
commit 0235103cbb
12 changed files with 14 additions and 14 deletions
@@ -116,7 +116,7 @@ def _normalize_quant_group_shape(x: torch.Tensor, group_shape: GroupShape):
# then we would expand a to:
# a = [[1, 1, 2, 2],
# [3, 3, 4, 4]]
# NOTE this function this function does not explicitly broadcast dimensions
# NOTE this function does not explicitly broadcast dimensions
# with an extent of 1, since this can be done implicitly by pytorch
def group_broadcast(t, shape):
for i, s in enumerate(shape):
+1 -1
View File
@@ -185,7 +185,7 @@ _EMBEDDING_MODELS = {
"Phi3VForCausalLM": ("phi3v", "Phi3VForCausalLM"),
"Qwen2VLForConditionalGeneration": ("qwen2_vl", "Qwen2VLForConditionalGeneration"), # noqa: E501
# Technically PrithviGeoSpatialMAE is a model that works on images, both in
# input and output. I am adding it here because it piggy-backs on embedding
# input and output. I am adding it here because it piggybacks on embedding
# models for the time being.
"PrithviGeoSpatialMAE": ("prithvi_geospatial_mae", "PrithviGeoSpatialMAE"),
}
+1 -1
View File
@@ -97,7 +97,7 @@ class SamplingMetadataCache:
class SamplingMetadata:
"""Metadata for input sequences. Used in sampler.
The usage is as follow;
The usage is as follows;
```
hidden_states = execute_model(...)
logits = hidden_states[sampling_metadata.selected_token_indices]