Skip to content

Commit

Permalink
Fix thirdparty code spelling in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
frostyplanet committed May 21, 2024
1 parent 20800fa commit 215a643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xinference/thirdparty/deepseek_vl/models/siglip_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def norm_cdf(x):
def trunc_normal_(tensor, mean=0.0, std=1.0, a=-2.0, b=2.0):
# type: (torch.Tensor, float, float, float, float) -> torch.Tensor
r"""The original timm.models.layers.weight_init.trunc_normal_ can not handle bfloat16 yet, here we first
convert the tensor to float32, apply the trunc_normal_() in float32, and then convert it back to its orignal dtype.
convert the tensor to float32, apply the trunc_normal_() in float32, and then convert it back to its original dtype.
Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn
from the normal distribution :math:`\mathcal{N}(\text{mean}, \text{std}^2)`
with values outside :math:`[a, b]` redrawn until they are within
Expand Down Expand Up @@ -305,7 +305,7 @@ def __init__(
img_size: Input image size.
patch_size: Patch size.
in_chans: Number of image input channels.
num_classes: Mumber of classes for classification head.
num_classes: Number of classes for classification head.
global_pool: Type of global pooling for final sequence (default: 'token').
embed_dim: Transformer embedding dimension.
depth: Depth of transformer.
Expand Down
2 changes: 1 addition & 1 deletion xinference/thirdparty/deepseek_vl/serve/assets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ thead th {
color: #fdf8f8;
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
}
/* Hightlight */
/* Highlight */
#deepseek_chatbot .highlight {
background-color: transparent;
}
Expand Down

0 comments on commit 215a643

Please sign in to comment.