Skip to content

Commit

Permalink
move import to avoid te issue
Browse files Browse the repository at this point in the history
  • Loading branch information
suiyoubi committed Oct 29, 2024
1 parent cf33e03 commit 213ffca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nemo/collections/llm/gpt/model/gemma2.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from nemo.collections.llm.fn.activation import openai_gelu
from nemo.collections.llm.gpt.model.base import GPTConfig, GPTModel
from nemo.collections.llm.utils import Config
from nemo.collections.nlp.models.language_modeling.megatron.gemma2.gemma2_spec import get_gemma2_layer_spec
from nemo.lightning import OptimizerModule, io, teardown
from nemo.lightning.pytorch.utils import dtype_from_hf

Expand All @@ -36,6 +35,8 @@


def gemma2_layer_spec(config: "GPTConfig") -> ModuleSpec:
from nemo.collections.nlp.models.language_modeling.megatron.gemma2.gemma2_spec import get_gemma2_layer_spec

return get_gemma2_layer_spec()


Expand Down

0 comments on commit 213ffca

Please sign in to comment.