unsloth/unsloth/kernels
Tenith Hasintha ba833b4ade
Fix: Add missing utf-8 encoding to text-mode file operations (#5356)
Fixes #2795 by explicitly adding encoding='utf-8' to open() calls. This prevents UnicodeDecodeError on Windows with non-UTF-8 system locales when processing files containing UTF-8 characters.

Co-authored-by: Roland Tannous <115670425+rolandtannous@users.noreply.github.com>
2026-05-14 18:15:27 +04:00
..
moe Fix: Add missing utf-8 encoding to text-mode file operations (#5356) 2026-05-14 18:15:27 +04:00
__init__.py Formatting & bug fixes (#3563) 2025-11-07 06:00:22 -08:00
cross_entropy_loss.py Revert "perf(ROCm): optimize chunked CE loss num_warps for RDNA GPUs (#4123)" (#4139) 2026-03-03 03:05:32 -08:00
fast_lora.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2025-12-30 15:58:41 +00:00
flex_attention.py Revert "Initial changes: Refactor Attention" 2026-03-13 22:38:57 -07:00
fp8.py fix: use % 8 instead of // 8 in FP8 weight shape check (#5243) 2026-05-05 03:48:04 -07:00
geglu.py Revert "[FIX] Vllm guided decoding params (#3662)" 2025-12-01 05:43:45 -08:00
layernorm.py fix(Triton): ensure float32 eps in RMS LayerNorm rsqrt for HIP/ROCm (#4110) 2026-02-28 23:59:22 -08:00
rms_layernorm.py fix(Triton): ensure float32 eps in RMS LayerNorm rsqrt for HIP/ROCm (#4110) 2026-02-28 23:59:22 -08:00
rope_embedding.py fastrope fix for zero strided tensors (#3782) 2025-12-28 21:21:48 -08:00
swiglu.py Apply suggestion from @danielhanchen 2026-01-12 21:32:20 -08:00
utils.py MLX training support for Studio on Apple Silicon (#5340) 2026-05-14 05:24:20 -07:00