Skip to content

Commit

Permalink
move modeling.py and modeling_nv.py to transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
Li-Z-Q committed Dec 25, 2024
1 parent bfc29f2 commit bce5e1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions paddlenlp/transformers/llm_embed/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import paddle.nn as nn
from tqdm import tqdm

from ...utils.log import logger
from .. import AutoConfig, AutoModel, PretrainedModel
from ..model_outputs import ModelOutput
from paddlenlp.transformers import AutoConfig, AutoModel, PretrainedModel
from paddlenlp.transformers.model_outputs import ModelOutput
from paddlenlp.utils.log import logger


@dataclass
Expand Down
11 changes: 8 additions & 3 deletions paddlenlp/transformers/nv_embed/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
from einops import rearrange, repeat
from paddle.distributed.fleet.utils import recompute

from ...utils.log import logger
from .. import AutoTokenizer, MistralModel, PretrainedConfig, PretrainedModel
from ..model_outputs import BaseModelOutputWithPast, ModelOutput
from paddlenlp.transformers import (
AutoTokenizer,
MistralModel,
PretrainedConfig,
PretrainedModel,
)
from paddlenlp.transformers.model_outputs import BaseModelOutputWithPast, ModelOutput
from paddlenlp.utils.log import logger


@dataclass
Expand Down

0 comments on commit bce5e1c

Please sign in to comment.