unsloth/tests
google-labs-jules[bot] 76376d37f0 Fix attention masking with Flash Attention Dense backend
Modified `select_attention_backend` to prioritize SDPA when an attention mask is provided, bypassing `FLASH_DENSE` which ignores arbitrary attention masks (supporting only causal masks). This fixes a regression where padded tokens were attended to during inference or standard SFT with padding.

Updated all model files (`llama.py`, `cohere.py`, `gemma2.py`, `mistral.py`, `qwen3.py`, `falcon_h1.py`, `granite.py`) to propagate the presence of an attention mask to the backend selection logic.
2025-12-06 03:10:38 +00:00
..
qlora Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" 2025-12-01 07:24:58 -08:00
saving Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" 2025-12-01 07:24:58 -08:00
utils Fix attention masking with Flash Attention Dense backend 2025-12-06 03:10:38 +00:00
__init__.py Qwen 3, Bug Fixes (#2445) 2025-04-30 22:38:39 -07:00
test_model_registry.py Revert "[FIX] Vllm guided decoding params (#3662)" 2025-12-01 05:43:45 -08:00