Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Oct 25, 2024
1 parent 8ea0d99 commit 29cb815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llmfoundry/models/llm_embed/modeling_llm_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
from transformers import PreTrainedTokenizerBase
from transformers.modeling_outputs import CausalLMOutputWithPast

from llmfoundry.models.mpt.configuration_mpt import MPTConfig
from llmfoundry.models.hf.hf_causal_lm import ComposerHFCausalLM
from llmfoundry.models.mpt.configuration_mpt import MPTConfig
from llmfoundry.models.mpt.modeling_mpt import MPTForCausalLM
from llmfoundry.models.utils.config_moe_args import create_set_process_group

Expand Down
2 changes: 1 addition & 1 deletion tests/models/llm_embed/test_embedding_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_construct_model_distributed(
patch('torch.distributed.get_rank', return_value=0), \
patch('torch.distributed.barrier'), \
patch('transformers.AutoModel.from_pretrained', return_value=mock_auto_model), \
patch('runtime_private_plugins.models.llm_embed.FinetuneEmbeddingModel.construct_model', return_value=mock_auto_model):
patch('llmfoundry.models.llm_embed.FinetuneEmbeddingModel.construct_model', return_value=mock_auto_model):
model_instance: FinetuneEmbeddingModel = FinetuneEmbeddingModel(
tokenizer=mock_tokenizer,
pretrained_model_name_or_path='bert-base-uncased',
Expand Down

0 comments on commit 29cb815

Please sign in to comment.