Skip to content

error when finetune gemma2-2b when Running Evaluation #853

@zfflxx

Description

@zfflxx

File "torch/_dynamo/variables/constant.py", line 176, in call_method
return ConstantVariable.create(op(self.value, add_target))
torch._dynamo.exc.InternalTorchDynamoError: 'bool' object is not subscriptable

from user code:
File "unsloth/kernels/flex_attention.py", line 73, in slow_attention_softcapping
A += causal_mask[:q_len, :q_len]

Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions