Skip to content

Commit

Permalink
Add code sample docstrings and checkpoint reference for GLM models (h…
Browse files Browse the repository at this point in the history
…uggingface#34360)

* Add code sample docstrings and checkpoint reference for GLM models

* Update modular_glm.py

* Update modeling_glm.py
  • Loading branch information
h3110Fr13nd authored and BernardZach committed Dec 6, 2024
1 parent f5ab88d commit 98e5571
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformers/models/glm/modeling_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
_CHECKPOINT_FOR_DOC = "dummy"


_CHECKPOINT_FOR_DOC = "THUDM/glm-4-9b"


class GlmRMSNorm(nn.Module):
def __init__(self, hidden_size, eps=1e-6):
"""
Expand Down
2 changes: 2 additions & 0 deletions src/transformers/models/glm/modular_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
from .configuration_glm import GlmConfig


_CHECKPOINT_FOR_DOC = "THUDM/glm-4-9b"

logger = logging.get_logger(__name__)

_CHECKPOINT_FOR_DOC = "dummy"
Expand Down

0 comments on commit 98e5571

Please sign in to comment.