Skip to content

Commit

Permalink
disable pylint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishi121 committed Dec 17, 2024
1 parent 00b29de commit a81596d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mlc_llm/model/nemotron/nemotron_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class NemotronConfig(ConfigBase): # pylint: disable=too-many-instance-attribute
disaggregation: bool = False
kwargs: Dict[str, Any] = dataclasses.field(default_factory=dict)

def __post_init__(self):
def __post_init__(self): # pylint: disable=too-many-branches
if self.context_window_size == 0:
self.context_window_size = self.max_position_embeddings
if self.head_dim == 0:
Expand Down Expand Up @@ -219,7 +219,7 @@ def forward(self, input_embed: Tensor, paged_kv_cache: PagedKVCache):
return hidden_states


class NemotronForCausalLM(nn.Module):
class NemotronForCausalLM(nn.Module): # pylint: disable=too-many-instance-attributes
def __init__(self, config: NemotronConfig):
self.model = NemotronModel(config)
self.tie_word_embeddings = config.tie_word_embeddings
Expand Down

0 comments on commit a81596d

Please sign in to comment.