mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 10:12:23 +06:00
Add code sample docstrings and checkpoint reference for GLM models (#34360)
* Add code sample docstrings and checkpoint reference for GLM models * Update modular_glm.py * Update modeling_glm.py
This commit is contained in:
parent
6432ad8bb5
commit
450b9cbfac
@ -59,6 +59,9 @@ from ...processing_utils import Unpack
|
||||
_CHECKPOINT_FOR_DOC = "dummy"
|
||||
|
||||
|
||||
_CHECKPOINT_FOR_DOC = "THUDM/glm-4-9b"
|
||||
|
||||
|
||||
class GlmRMSNorm(nn.Module):
|
||||
def __init__(self, hidden_size, eps=1e-6):
|
||||
"""
|
||||
|
@ -44,6 +44,8 @@ from ..phi3.modeling_phi3 import (
|
||||
from .configuration_glm import GlmConfig
|
||||
|
||||
|
||||
_CHECKPOINT_FOR_DOC = "THUDM/glm-4-9b"
|
||||
|
||||
logger = logging.get_logger(__name__)
|
||||
|
||||
_CHECKPOINT_FOR_DOC = "dummy"
|
||||
|
Loading…
Reference in New Issue
Block a user