Skip to content

Commit

Permalink
opt del
Browse files Browse the repository at this point in the history
  • Loading branch information
wjm202 committed Aug 23, 2023
1 parent cb06c1d commit 7f03d96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1,289 deletions.
3 changes: 1 addition & 2 deletions paddlemix/models/blip2/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
from paddlenlp.transformers.llama.modeling import LlamaForCausalLM
from paddlenlp.transformers.model_outputs import ModelOutput
from paddlenlp.transformers.model_utils import PretrainedModel
from paddlenlp.transformers.opt.modeling import OPTForCausalLM
from paddlenlp.transformers.t5.modeling import T5ForConditionalGeneration

from paddlemix.models.blip2.modeling_opt import OPTForCausalLM
from paddlemix.models.blip2.modeling_utils import (
all_gather_with_grad,
concat_all_gather,
Expand Down Expand Up @@ -414,7 +414,6 @@ def __init__(
language_model = OPTForCausalLM.from_pretrained(
config.text_config,
load_state_as_np=True,
mp_degree=config.mp_degree,
ignore_mismatched_sizes=True,
)
elif "llama" in config.text_config:
Expand Down
Loading

0 comments on commit 7f03d96

Please sign in to comment.