Skip to content

fix: replace bare except with specific exceptions#25

Open
haosenwang1018 wants to merge 1 commit intonv-tlabs:mainfrom
haosenwang1018:fix/bare-excepts
Open

fix: replace bare except with specific exceptions#25
haosenwang1018 wants to merge 1 commit intonv-tlabs:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

  • attention.py: except (ImportError, RuntimeError): for flex_attn
  • train.py: except Exception: for checkpoint loading fallback

- attention.py: (ImportError, RuntimeError) for flex_attn availability
- train.py: Exception for checkpoint loading fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant