Skip to content

Commit

Permalink
Fix Base Model Name of LlamaForQuestionAnswering (#29258)
Browse files Browse the repository at this point in the history
* LlamaForQuestionAnswering self.transformer->self.model

* fix "Copied from" string

* Llama QA model: set base_model_prefix = "transformer"
  • Loading branch information
lenglaender authored Mar 1, 2024
1 parent 5ee0868 commit 2858d6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/models/llama/modeling_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,8 @@ def forward(
LLAMA_START_DOCSTRING,
)
class LlamaForQuestionAnswering(LlamaPreTrainedModel):
base_model_prefix = "transformer"

# Copied from transformers.models.bloom.modeling_bloom.BloomForQuestionAnswering.__init__ with Bloom->Llama
def __init__(self, config):
super().__init__(config)
Expand Down

0 comments on commit 2858d6c

Please sign in to comment.