unsloth/unsloth
danielhanchen 1080d0c4dc Fix Gemma3 QAT training instability with int8-int4 scheme
Gemma3 models have a large vocabulary (262144 tokens) which causes
training loss to explode when using int8 embedding quantization.

This fix auto-detects Gemma3 models and switches from int8-int4
(phone-deployment) to int4 weight-only QAT for stable training.
2026-01-02 07:19:08 +00:00
..
dataprep Revert "[FIX] Vllm guided decoding params (#3662)" 2025-12-01 05:43:45 -08:00
kernels [pre-commit.ci] auto fixes from pre-commit.com hooks 2025-12-30 15:58:41 +00:00
models Fix Gemma3 QAT training instability with int8-int4 scheme 2026-01-02 07:19:08 +00:00
registry Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" 2025-12-01 07:24:58 -08:00
utils Fix correctness bugs across multiple model files (#3813) 2026-01-01 02:36:33 -08:00
__init__.py Nightly (#3737) 2025-12-17 03:31:48 -08:00
_auto_install.py Float8 GRPO, RL (#3640) 2025-11-25 07:23:26 -08:00
chat_templates.py Fix indefinite article usage in comments and docstrings (#3648) 2025-11-26 18:15:27 -08:00
device_type.py Add missing import of inspect (#3778) 2025-12-25 18:43:59 -08:00
import_fixes.py Nightly (#3753) 2025-12-19 19:35:41 -08:00
ollama_template_mappers.py Fix indefinite article usage in comments and docstrings (#3648) 2025-11-26 18:15:27 -08:00
save.py Fix correctness bugs across multiple model files (#3813) 2026-01-01 02:36:33 -08:00
tokenizer_utils.py fix(trainer): import psutil to prevent NameError in _prepare_dataset (#3780) 2025-12-28 21:18:02 -08:00
trainer.py fix(trainer): import psutil to prevent NameError in _prepare_dataset (#3780) 2025-12-28 21:18:02 -08:00