Michael Han
380c3b6896
Update README.md
2025-05-25 03:35:43 -07:00
Quentin Gallouédec
216fb5cde9
Remove dataset_text_field from SFTConfig ( #2609 )
2025-05-25 03:20:16 -07:00
Richi
ca17a9ade5
add: path checking for failed llama cpp builds ( #2603 )
2025-05-25 03:18:07 -07:00
Daniel Han
e5b6f776c3
Devstral, MedGemma
2025-05-21 07:35:36 -07:00
Michael Han
3e5024ceed
Update README.md
...
Updating model support
2025-05-20 09:51:55 -07:00
Michael Han
d69fc3149c
Update README.md
2025-05-19 21:26:19 -07:00
Daniel Han
4cd5ea1767
Update issue templates
2025-05-17 18:30:17 -07:00
Daniel Han
b42a9ffe36
Update issue templates
2025-05-17 18:29:27 -07:00
Daniel Han
64ea3b88cb
Update issue templates
2025-05-17 05:42:10 -07:00
Daniel Han
64176a7847
Fix Whisper, ModernBERT ( #2565 )
...
* Update vision.py
* Update vision.py
* Update mapper.py
* Update vision.py
* fix: config.torch_dtype in LlamaModel_fast_forward_inference (#2091 )
* fix: config.torch_dtype in LlamaModel_fast_forward_inference
* Update llama.py
* update for consistency
---------
Co-authored-by: Daniel Han <danielhanchen@gmail.com>
* versioning
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* model_type_arch
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* check
* Update _utils.py
* Update loader.py
* Update loader.py
* Remove prints
* Update README.md
typo
* Update _utils.py
* Update _utils.py
* versioning
* Update _utils.py
* Update _utils.py
* Update _utils.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update vision.py
* HF Transfer
* fix(utils): add missing importlib import to fix NameError (#2134 )
This commit fixes a NameError that occurs when `importlib` is referenced in _utils.py
without being imported, especially when UNSLOTH_USE_MODELSCOPE=1 is enabled.
By adding the missing import statement, the code will no longer throw a NameError.
* Add QLoRA Train and Merge16bit Test (#2130 )
* add reference and unsloth lora merging tests
* add test / dataset printing to test scripts
* allow running tests from repo root
* add qlora test readme
* more readme edits
* ruff formatting
* additional readme comments
* forgot to add actual tests
* add apache license
* Update pyproject.toml
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* Update loader.py
* Revert
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Bug fix
* Update mapper.py
* check SDPA for Mistral 3, Pixtral
* Update vision.py
* Versioning
* Update rl_replacements.py
* Update README.md
* add model registry
* move hf hub utils to unsloth/utils
* refactor global model info dicts to dataclasses
* fix dataclass init
* fix llama registration
* remove deprecated key function
* start registry reog
* add llama vision
* quant types -> Enum
* remap literal quant types to QuantType Enum
* add llama model registration
* fix quant tag mapping
* add qwen2.5 models to registry
* add option to include original model in registry
* handle quant types per model size
* separate registration of base and instruct llama3.2
* add QwenQVQ to registry
* add gemma3 to registry
* add phi
* add deepseek v3
* add deepseek r1 base
* add deepseek r1 zero
* add deepseek distill llama
* add deepseek distill models
* remove redundant code when constructing model names
* add mistral small to registry
* rename model registration methods
* rename deepseek registration methods
* refactor naming for mistral and phi
* add global register models
* refactor model registration tests for new registry apis
* add model search method
* remove deprecated registration api
* add quant type test
* add registry readme
* make llama registration more specific
* clear registry when executing individual model registration file
* more registry readme updates
* Update _auto_install.py
* Llama4
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Synthetic data
* Update mapper.py
* Xet and Synthetic
* Update synthetic.py
* Update loader.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update pyproject.toml
* Delete .gitignore
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update _utils.py
* Update pyproject.toml
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update chat_templates.py
* Seasame force float16 / float32
* Fix Seasame
* Update loader.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* is_multimodal
* Update loader.py
* Update loader.py
* Update loader.py
* Update loader.py
* Update vision.py
* Update vision.py
* Update vision.py
* UNSLOTH_DISABLE_STATIC_GENERATION
* Update vision.py
* Auto vision detection
* Sesame
* Whisper
* Update loader.py
* Update loader.py
* Update loader.py
* Update mapper.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* Update loader.py
* Update loader.py
* Update loader.py
* Update _utils.py
---------
Co-authored-by: lurf21 <93976703+lurf21@users.noreply.github.com>
Co-authored-by: Jack Shi Wei Lun <87535974+jackswl@users.noreply.github.com>
Co-authored-by: naliazheli <nalia0316@gmail.com>
Co-authored-by: jeromeku <jerome.ku@gmail.com>
Co-authored-by: Michael Han <107991372+shimmyshimmer@users.noreply.github.com>
2025-05-17 05:11:50 -07:00
Emmanuel Ferdman
48c272bab2
Display the model name in RoPE scaling unsupported error ( #2564 )
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-17 05:09:06 -07:00
Michael Han
937f684d43
Merge pull request #2563 from davedgd/main
...
fix issue with qwen3 template double quote escapes
2025-05-16 22:38:39 -07:00
David Dobolyi
092cb12b82
fix issue with qwen3 template double quote escapes
2025-05-16 23:26:03 -06:00
Etherll
6e5534dc86
Fix trust remote code ( #2357 )
...
* Update _utils.py
* Update loader.py
* Update loader.py
* Update vision.py
* Update unsloth/models/vision.py
* Update unsloth/models/vision.py
* Update unsloth/models/vision.py
* Update unsloth/models/vision.py
* Update unsloth/models/_utils.py
* Update unsloth/models/vision.py
---------
Co-authored-by: Daniel Han <danielhanchen@gmail.com>
2025-05-16 16:06:42 -07:00
Daniel Han
a5ec44a430
Update pyproject.toml
2025-05-16 15:38:19 -07:00
Daniel Han
b485709ef5
Merge branch 'main' of https://github.com/unslothai/unsloth
2025-05-16 15:34:41 -07:00
Daniel Han
a1e78e23b0
Update _utils.py
2025-05-16 15:33:49 -07:00
Michael Han
17c976cffe
Merge pull request #2554 from Erland366/fix/generation_config
...
Quick fix on the CompileConfig error
2025-05-16 12:48:00 -07:00
Erland366
8cb2520537
Fix Nonetype on the compile_config
2025-05-16 13:16:34 +00:00
Michael Han
524d05cd73
Update README.md
2025-05-16 01:56:40 -07:00
Michael Han
6e771a0a24
Update README.md
...
TTS support
2025-05-15 15:15:53 -07:00
Daniel Han
5bf1ce073f
TTS ( #2545 )
...
* Update rl_replacements.py
* Update vision.py
* Update rl_replacements.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Remove double generate patch
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update mapper.py
* Update vision.py
* fix: config.torch_dtype in LlamaModel_fast_forward_inference (#2091 )
* fix: config.torch_dtype in LlamaModel_fast_forward_inference
* Update llama.py
* update for consistency
---------
Co-authored-by: Daniel Han <danielhanchen@gmail.com>
* versioning
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* model_type_arch
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* check
* Update _utils.py
* Update loader.py
* Update loader.py
* Remove prints
* Update README.md
typo
* Update _utils.py
* Update _utils.py
* versioning
* Update _utils.py
* Update _utils.py
* Update _utils.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update llama.py
* Update vision.py
* HF Transfer
* fix(utils): add missing importlib import to fix NameError (#2134 )
This commit fixes a NameError that occurs when `importlib` is referenced in _utils.py
without being imported, especially when UNSLOTH_USE_MODELSCOPE=1 is enabled.
By adding the missing import statement, the code will no longer throw a NameError.
* Add QLoRA Train and Merge16bit Test (#2130 )
* add reference and unsloth lora merging tests
* add test / dataset printing to test scripts
* allow running tests from repo root
* add qlora test readme
* more readme edits
* ruff formatting
* additional readme comments
* forgot to add actual tests
* add apache license
* Update pyproject.toml
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* Update loader.py
* Revert
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update vision.py
* Bug fix
* Update mapper.py
* check SDPA for Mistral 3, Pixtral
* Update vision.py
* Versioning
* Update rl_replacements.py
* Update README.md
* add model registry
* move hf hub utils to unsloth/utils
* refactor global model info dicts to dataclasses
* fix dataclass init
* fix llama registration
* remove deprecated key function
* start registry reog
* add llama vision
* quant types -> Enum
* remap literal quant types to QuantType Enum
* add llama model registration
* fix quant tag mapping
* add qwen2.5 models to registry
* add option to include original model in registry
* handle quant types per model size
* separate registration of base and instruct llama3.2
* add QwenQVQ to registry
* add gemma3 to registry
* add phi
* add deepseek v3
* add deepseek r1 base
* add deepseek r1 zero
* add deepseek distill llama
* add deepseek distill models
* remove redundant code when constructing model names
* add mistral small to registry
* rename model registration methods
* rename deepseek registration methods
* refactor naming for mistral and phi
* add global register models
* refactor model registration tests for new registry apis
* add model search method
* remove deprecated registration api
* add quant type test
* add registry readme
* make llama registration more specific
* clear registry when executing individual model registration file
* more registry readme updates
* Update _auto_install.py
* Llama4
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Synthetic data
* Update mapper.py
* Xet and Synthetic
* Update synthetic.py
* Update loader.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update pyproject.toml
* Delete .gitignore
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update _utils.py
* Update pyproject.toml
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update synthetic.py
* Update chat_templates.py
* Seasame force float16 / float32
* Fix Seasame
* Update loader.py
* Update vision.py
* Update vision.py
* Update vision.py
* Update loader.py
* is_multimodal
* Update loader.py
* Update loader.py
* Update loader.py
* Update loader.py
* Update vision.py
* Update vision.py
* Update vision.py
* UNSLOTH_DISABLE_STATIC_GENERATION
* Update vision.py
* Auto vision detection
* Sesame
* Whisper
* Update loader.py
* Update loader.py
* Update loader.py
---------
Co-authored-by: lurf21 <93976703+lurf21@users.noreply.github.com>
Co-authored-by: Jack Shi Wei Lun <87535974+jackswl@users.noreply.github.com>
Co-authored-by: naliazheli <nalia0316@gmail.com>
Co-authored-by: jeromeku <jerome.ku@gmail.com>
Co-authored-by: Michael Han <107991372+shimmyshimmer@users.noreply.github.com>
2025-05-15 09:23:52 -07:00
Michael Han
520c8ddf41
Update README.md
2025-05-15 06:54:05 -07:00
Janusz
ec79c53d2b
Add use_rslora reference to LoraConfig inititalisation ( #2539 )
...
Co-authored-by: jkumz <janusz.kumor01@gmail.com>
2025-05-15 04:24:18 -07:00
omahs
616bacb199
Fix typos ( #2540 )
2025-05-15 04:23:27 -07:00
Michael Han
2d7cf7b12a
Merge pull request #2537 from kiankyars/main
...
Add Qwen-3 chat template and Ollama template support
2025-05-14 20:45:53 -07:00
Kian Kyars
065af9b727
undo accident
2025-05-14 19:00:23 -06:00
Kian Kyars
592296c226
style: Place Qwen-3 template after Gemma-3, match style with other templates
2025-05-14 18:59:17 -06:00
Kian Kyars
b008b2edfb
Update Qwen-3 chat and Ollama templates to official full version, placed after Gemma-3
2025-05-14 18:42:55 -06:00
Kian Kyars
32dbf0f755
Add Qwen-3 chat template and Ollama template support
2025-05-14 18:35:02 -06:00
Daniel Han
3f03c7250d
Update pyproject.toml
2025-05-14 05:42:47 -07:00
Daniel Han
82b71edad9
Update _utils.py
2025-05-14 05:42:11 -07:00
Daniel Han
fcf6d97e96
Update synthetic.py
2025-05-14 04:05:23 -07:00
Daniel Han
b38eac2d7c
Update synthetic.py
2025-05-14 03:54:46 -07:00
Daniel Han
38be523e9e
Update synthetic.py
2025-05-14 03:49:27 -07:00
Daniel Han
924bada0a8
Update synthetic.py
2025-05-14 03:47:29 -07:00
Daniel Han
b2d6c648b3
Update synthetic.py
2025-05-14 03:44:15 -07:00
Michael Han
e8c1128b5f
Merge pull request #2527 from mmathew23/csm
...
Add Sesame CSM
2025-05-14 02:26:12 -07:00
DoubleMathew
41c6403b2c
Merge branch 'unslothai:main' into csm
2025-05-13 17:58:11 -05:00
Daniel Han
e596938ccf
Versioning
2025-05-13 09:10:24 -07:00
Michael Han
3ce4cc6cf5
Update README.md
2025-05-13 01:39:59 -07:00
Daniel Han
d9424265d1
Update loader_utils.py
2025-05-12 21:06:30 -07:00
Daniel Han
f64a81a4e8
Update pyproject.toml
2025-05-12 16:28:50 -07:00
feng lui
c281a787b2
vLLM Windows CUDA support [tested] ( #2158 )
...
* Update loader.py
change vllm installed check by transformers utils function
* Update llama.py
change vllm installed check by transformers utils function
* add sample notebook
* fix Indentation
* add global is_vLLM_available function
* Pythonic style
* Delete nb/Qwen2.5_(3B)-GRPO-windows.ipynb
Would be great to move it to https://github.com/unslothai/notebooks - appreciate it!
---------
Co-authored-by: Daniel Han <danielhanchen@gmail.com>
2025-05-12 05:33:42 -07:00
Daniel Han
dde818d931
Update pyproject.toml
2025-05-12 04:24:18 -07:00
Daniel Han
7dac450af3
Fix Intel GPU
2025-05-12 03:10:21 -07:00
Lei Zhenyuan
17fd28640f
[2/N] Enable intel GPU for unsloth ( #2388 )
...
* add DEVICE_TYPE and resolve device specific API
* reuse import torch
* move env under device typr
* resolve comments
* add more comments
* add more comments
2025-05-12 02:58:21 -07:00
Lei Zhenyuan
226472576e
first pr for intel GPU, resolve __init__.py and pyproject.toml ( #2350 )
...
add better comments
2025-05-12 02:38:40 -07:00
Daniel Han
144b89a97e
Fix GRPO eval
2025-05-12 02:35:31 -07:00
Michael Han
8a055402a2
Merge pull request #2466 from mmathew23/fix_pop_token_type_ids
...
the pixtral vision notebook fails during inference
2025-05-09 14:57:31 -07:00