Skip to content

AttributeError: 'LlamaModel' object has no attribute '_use_flash_attention_2' #10

@raghavgarg97

Description

@raghavgarg97

I was running speedup.sh with Llama model but got this issue trace.

Screenshot 2024-05-20 at 2 42 06 PM

The error follows from the file Consistency_LLM/cllm/cllm_llama_modeling.py

if self.model._use_flash_attention_2:

the code needs to be updated to
if self.model.config._attn_implementation=='flash_attention_2':
Do i need to change model config to check speed of base model with jacobi iteration?
base model="meta-llama/Meta-Llama-3-8B-Instruct"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions