Skip to content
Merged

Patch #138

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
818 commits
Select commit Hold shift + click to select a range
57ff5f6
Update compiler.py
danielhanchen Mar 17, 2025
c7e803b
Update patching_utils.py
danielhanchen Mar 17, 2025
3daaf0d
Update temporary_patches.py
danielhanchen Mar 17, 2025
b619b58
Update compiler.py
danielhanchen Mar 17, 2025
4e78082
Update compiler.py
danielhanchen Mar 17, 2025
c8ba677
Update temporary_patches.py
danielhanchen Mar 17, 2025
fb68ecc
Update temporary_patches.py
danielhanchen Mar 17, 2025
e5a73fe
Update temporary_patches.py
danielhanchen Mar 17, 2025
d7bbe30
Update temporary_patches.py
danielhanchen Mar 17, 2025
5f99275
Update temporary_patches.py
danielhanchen Mar 17, 2025
346812f
Update temporary_patches.py
danielhanchen Mar 17, 2025
b907d0c
Update temporary_patches.py
danielhanchen Mar 17, 2025
789171c
Update temporary_patches.py
danielhanchen Mar 17, 2025
4e2c94a
Update compiler.py
danielhanchen Mar 17, 2025
4740c99
Update compiler.py
danielhanchen Mar 17, 2025
4658d94
Update compiler.py
danielhanchen Mar 17, 2025
f9de6e9
Update compiler.py
danielhanchen Mar 17, 2025
dbdbc63
Update compiler.py
danielhanchen Mar 17, 2025
55b1963
Update compiler.py
danielhanchen Mar 17, 2025
e997ee1
Update compiler.py
danielhanchen Mar 17, 2025
0ba033f
Update compiler.py
danielhanchen Mar 17, 2025
bf821ba
Update compiler.py
danielhanchen Mar 17, 2025
d8c6e59
Update compiler.py
danielhanchen Mar 17, 2025
9967ce3
Update compiler.py
danielhanchen Mar 17, 2025
7b0c535
Update compiler.py
danielhanchen Mar 17, 2025
e6859ce
Update compiler.py
danielhanchen Mar 17, 2025
b2a8f47
Update compiler.py
danielhanchen Mar 17, 2025
ca79c93
Update compiler.py
danielhanchen Mar 17, 2025
3f67ed6
Update compiler.py
danielhanchen Mar 17, 2025
e5fb044
Update compiler.py
danielhanchen Mar 18, 2025
4a1bf2f
Update compiler.py
danielhanchen Mar 18, 2025
36ec4ee
Update compiler.py
danielhanchen Mar 18, 2025
7d1dc81
compiler
danielhanchen Mar 18, 2025
16d6137
Update gradient_checkpointing.py
danielhanchen Mar 18, 2025
9b78566
Update temporary_patches.py
danielhanchen Mar 18, 2025
e0edefe
Update temporary_patches.py
danielhanchen Mar 18, 2025
719e379
Update temporary_patches.py
danielhanchen Mar 18, 2025
8beb2b7
Update temporary_patches.py
danielhanchen Mar 18, 2025
f9cf701
Update temporary_patches.py
danielhanchen Mar 18, 2025
aa8848c
Update temporary_patches.py
danielhanchen Mar 18, 2025
ee940a9
Update temporary_patches.py
danielhanchen Mar 18, 2025
d086158
Update temporary_patches.py
danielhanchen Mar 18, 2025
5a43de2
Update temporary_patches.py
danielhanchen Mar 18, 2025
1f6589b
Update temporary_patches.py
danielhanchen Mar 18, 2025
9b904a9
Update temporary_patches.py
danielhanchen Mar 18, 2025
3c0504b
Update temporary_patches.py
danielhanchen Mar 18, 2025
417161e
Update temporary_patches.py
danielhanchen Mar 18, 2025
3f024b6
Update temporary_patches.py
danielhanchen Mar 18, 2025
b0bd2f4
Update temporary_patches.py
danielhanchen Mar 18, 2025
640e071
Update temporary_patches.py
danielhanchen Mar 18, 2025
05c2232
Update temporary_patches.py
danielhanchen Mar 18, 2025
593eecb
Update temporary_patches.py
danielhanchen Mar 18, 2025
e9c935f
Update temporary_patches.py
danielhanchen Mar 18, 2025
b71160c
causal mask dtype
danielhanchen Mar 18, 2025
a6fedb6
Fix checkpoint and save from local file (#74)
Erland366 Mar 18, 2025
c566b02
Update patching_utils.py
danielhanchen Mar 18, 2025
aaf5feb
Merge branch 'nightly' of https://github.com/unslothai/unsloth-zoo in…
danielhanchen Mar 18, 2025
94f5f4f
Update patching_utils.py
danielhanchen Mar 18, 2025
26c67cf
Update temporary_patches.py
danielhanchen Mar 18, 2025
d92bab6
Update temporary_patches.py
danielhanchen Mar 18, 2025
b04cf4b
Update compiler.py
danielhanchen Mar 18, 2025
4565db3
Update loss_utils.py
danielhanchen Mar 18, 2025
e368810
Update compiler.py
danielhanchen Mar 18, 2025
ce07e0f
Update vllm_utils.py
danielhanchen Mar 18, 2025
114150d
Update compiler.py
danielhanchen Mar 18, 2025
6bd69f1
Update peft_utils.py
danielhanchen Mar 18, 2025
9cee216
Update rl_replacements.py
danielhanchen Mar 18, 2025
df8ac03
Update vllm_utils.py
danielhanchen Mar 18, 2025
e5a321f
Update temporary_patches.py
danielhanchen Mar 18, 2025
134857d
Update temporary_patches.py
danielhanchen Mar 18, 2025
dec6433
Update temporary_patches.py
danielhanchen Mar 18, 2025
b14149b
Update temporary_patches.py
danielhanchen Mar 18, 2025
07f7dde
Update temporary_patches.py
danielhanchen Mar 18, 2025
7600d35
Update temporary_patches.py
danielhanchen Mar 18, 2025
679edeb
Update temporary_patches.py
danielhanchen Mar 18, 2025
5fd25ec
Update temporary_patches.py
danielhanchen Mar 18, 2025
a884b3c
Update temporary_patches.py
danielhanchen Mar 18, 2025
b6ab8bd
Update temporary_patches.py
danielhanchen Mar 18, 2025
cc3ca48
Update temporary_patches.py
danielhanchen Mar 18, 2025
9f5b67d
Update temporary_patches.py
danielhanchen Mar 18, 2025
e4980b2
Update temporary_patches.py
danielhanchen Mar 18, 2025
d745fb7
Update temporary_patches.py
danielhanchen Mar 18, 2025
201c1ab
Merge branch 'main' into nightly
danielhanchen Mar 18, 2025
2fb83f0
Update compiler.py
danielhanchen Mar 18, 2025
3551715
Update vllm_lora_worker_manager.py
danielhanchen Mar 19, 2025
ab47b77
Update utils.py
danielhanchen Mar 19, 2025
ceed6ab
Update temporary_patches.py
danielhanchen Mar 19, 2025
b5611c2
Update temporary_patches.py
danielhanchen Mar 19, 2025
480aaf7
Update temporary_patches.py
danielhanchen Mar 19, 2025
637c7ad
Update temporary_patches.py
danielhanchen Mar 19, 2025
5a224bb
Update temporary_patches.py
danielhanchen Mar 19, 2025
2248156
Update temporary_patches.py
danielhanchen Mar 19, 2025
ee6ed2b
Update temporary_patches.py
danielhanchen Mar 19, 2025
6d10b9b
Update temporary_patches.py
danielhanchen Mar 19, 2025
9d431b0
Update temporary_patches.py
danielhanchen Mar 19, 2025
42491ca
Update temporary_patches.py
danielhanchen Mar 19, 2025
d3ddadf
Update vllm_utils.py
danielhanchen Mar 19, 2025
dbc6a43
Update vllm_utils.py
danielhanchen Mar 19, 2025
0c4b0d2
Update vllm_utils.py
danielhanchen Mar 19, 2025
5504033
Update vllm_utils.py
danielhanchen Mar 19, 2025
2a84e79
Update dataset_utils.py
danielhanchen Mar 19, 2025
cbbc4a3
bidirectional attention
danielhanchen Mar 19, 2025
3bf532d
Update vllm_utils.py
danielhanchen Mar 19, 2025
8e687b5
Update __init__.py
danielhanchen Mar 19, 2025
a723520
Update temporary_patches.py
danielhanchen Mar 19, 2025
9d1dd42
Update temporary_patches.py
danielhanchen Mar 19, 2025
aec2701
Update temporary_patches.py
danielhanchen Mar 19, 2025
23a3a59
Update vllm_utils.py
danielhanchen Mar 19, 2025
2874477
Update vllm_utils.py
danielhanchen Mar 19, 2025
7d40491
Update vllm_utils.py
danielhanchen Mar 19, 2025
2275642
Update vllm_utils.py
danielhanchen Mar 19, 2025
9cd348f
Update vllm_utils.py
danielhanchen Mar 19, 2025
6e33fa9
Update vllm_utils.py
danielhanchen Mar 19, 2025
7ad0f55
Update vllm_lora_worker_manager.py
danielhanchen Mar 19, 2025
7fd23a0
Update vllm_lora_worker_manager.py
danielhanchen Mar 19, 2025
9176758
Update vllm_lora_worker_manager.py
danielhanchen Mar 19, 2025
b5a38b0
Merge branch 'main' into nightly
danielhanchen Mar 19, 2025
446787d
Merge branch 'main' into nightly
danielhanchen Mar 19, 2025
d2bdd9b
Update temporary_patches.py
danielhanchen Mar 19, 2025
83bde7d
Update temporary_patches.py
danielhanchen Mar 19, 2025
0fe9eaa
Update temporary_patches.py
danielhanchen Mar 19, 2025
3d70a80
Update temporary_patches.py
danielhanchen Mar 19, 2025
6b6587d
Merge branch 'main' into nightly
danielhanchen Mar 21, 2025
88301c5
Update loss_utils.py
danielhanchen Mar 21, 2025
debc0e8
Update loss_utils.py
danielhanchen Mar 21, 2025
7dc2e9d
Update loss_utils.py
danielhanchen Mar 21, 2025
57b4973
Update loss_utils.py
danielhanchen Mar 21, 2025
3cfa271
Update loss_utils.py
danielhanchen Mar 21, 2025
1f5b6f2
Update __init__.py
danielhanchen Mar 21, 2025
2f3c87b
fix: AsyncLLMEngine bugs (#82)
bradhilton Mar 22, 2025
64dd76c
fixed a typo in L119, removing unnecessary len() (#84)
SpaceHunterInf Mar 22, 2025
5a1a2b5
Merge branch 'main' into nightly
danielhanchen Mar 22, 2025
a62e4c6
Fix gradient checkpointing warning filter implementation
rolandtannous Mar 24, 2025
d115cea
Input grads fix for gemma3 (#96)
mmathew23 Mar 25, 2025
454757c
Merge pull request #97 from rolandtannous/fix/suppress-gradient-check…
shimmyshimmer Mar 25, 2025
c50123a
Update vision_utils.py
danielhanchen Mar 26, 2025
b199491
Vision requires grad
danielhanchen Mar 26, 2025
1670fa6
Check SDPA for Mistral / Pixtral
danielhanchen Mar 26, 2025
e32f797
Update compiler.py
danielhanchen Mar 26, 2025
b9d9cc5
Update vision_utils.py
danielhanchen Mar 26, 2025
5e3c88f
Update vision_utils.py
danielhanchen Mar 26, 2025
5c4086c
Update vision_utils.py
danielhanchen Mar 26, 2025
0599242
Update __init__.py
danielhanchen Mar 26, 2025
8da5939
Update vision_utils.py
danielhanchen Mar 26, 2025
db90dca
Update vision_utils.py
danielhanchen Mar 26, 2025
51cefe5
Update vision_utils.py
danielhanchen Mar 26, 2025
20b42ce
Update vision_utils.py
danielhanchen Mar 26, 2025
b03ded6
Update vision_utils.py
danielhanchen Mar 26, 2025
65469c2
Update vision_utils.py
danielhanchen Mar 26, 2025
7f4eb00
Update vision_utils.py
danielhanchen Mar 26, 2025
8584b5d
Update vision_utils.py
danielhanchen Mar 26, 2025
8bb6b55
Update vision_utils.py
danielhanchen Mar 26, 2025
20a61b0
Update vision_utils.py
danielhanchen Mar 26, 2025
86ca6d5
Update vision_utils.py
danielhanchen Mar 26, 2025
0221094
Update vision_utils.py
danielhanchen Mar 26, 2025
d13ebf7
Update vision_utils.py
danielhanchen Mar 26, 2025
f6c4b2e
Update vision_utils.py
danielhanchen Mar 26, 2025
2d1e506
Update vllm_utils.py (#99)
5k5000 Mar 26, 2025
23e018f
Update vision_utils.py
danielhanchen Mar 26, 2025
9f1eaa2
Fixes to support IterableDataset (#98)
marcandrelarochelle Mar 26, 2025
affb9d8
Merge branch 'nightly' of https://github.com/unslothai/unsloth-zoo in…
danielhanchen Mar 26, 2025
1efc541
Merge branch 'main' into nightly
danielhanchen Mar 26, 2025
6ae6d0e
Merge branch 'main' into nightly
danielhanchen May 6, 2025
8986b95
Update vllm_utils.py
danielhanchen May 6, 2025
d37ed39
Create vllm_rlhf_utils.py
danielhanchen May 6, 2025
abf388b
Update vllm_rlhf_utils.py
danielhanchen May 6, 2025
6ff1836
Update vllm_rlhf_utils.py
danielhanchen May 6, 2025
deea45f
Update vllm_rlhf_utils.py
danielhanchen May 6, 2025
4ae4dd6
Update vllm_rlhf_utils.py
danielhanchen May 7, 2025
8dcff39
Update vllm_rlhf_utils.py
danielhanchen May 7, 2025
6edc24c
Update vllm_rlhf_utils.py
danielhanchen May 7, 2025
e61ad9b
Update vllm_rlhf_utils.py
danielhanchen May 7, 2025
f74ba8e
Update vllm_rlhf_utils.py
danielhanchen May 8, 2025
ee5bb55
Update vllm_rlhf_utils.py
danielhanchen May 8, 2025
994533c
vLLM for Qwen 3
danielhanchen May 11, 2025
23d8aa7
Merge branch 'main' into nightly
danielhanchen May 11, 2025
569c3ae
Update vllm_utils.py
danielhanchen May 11, 2025
847ad07
Update vllm_utils.py
danielhanchen May 11, 2025
121ff4b
Merge branch 'main' into nightly
danielhanchen May 11, 2025
58d4084
Update vllm_utils.py
danielhanchen May 11, 2025
a1b4cbe
Update vllm_utils.py
danielhanchen May 11, 2025
18c96f1
Update vllm_utils.py
danielhanchen May 11, 2025
d38bdef
Update vllm_utils.py
danielhanchen May 11, 2025
0828b02
Update vllm_utils.py
danielhanchen May 11, 2025
6a2fa74
Update vllm_utils.py
danielhanchen May 11, 2025
53bc1f7
Update vllm_utils.py
danielhanchen May 11, 2025
1f39201
Update vllm_utils.py
danielhanchen May 11, 2025
8326902
Update vllm_utils.py
danielhanchen May 11, 2025
9782878
Update vllm_utils.py
danielhanchen May 11, 2025
344dcfa
Update vllm_utils.py
danielhanchen May 11, 2025
c836004
Update vllm_utils.py
danielhanchen May 11, 2025
97378a5
Update vllm_utils.py
danielhanchen May 11, 2025
2eb2947
Merge branch 'main' into nightly
danielhanchen May 13, 2025
2a6b1e0
Update vllm_utils.py
danielhanchen May 13, 2025
eec826b
Update vllm_utils.py
danielhanchen May 13, 2025
d1cbffc
Update vllm_utils.py
danielhanchen May 13, 2025
c977d58
Update vllm_utils.py
danielhanchen May 13, 2025
3c4d27b
Update vllm_utils.py
danielhanchen May 13, 2025
fa03be7
Update vllm_utils.py
danielhanchen May 13, 2025
996ce3e
Update vllm_utils.py
danielhanchen May 13, 2025
f8cb7fc
Update vllm_utils.py
danielhanchen May 13, 2025
e1170ac
Update vllm_utils.py
danielhanchen May 13, 2025
46d2e2a
Update vllm_utils.py
danielhanchen May 13, 2025
f5d80ad
Update vllm_utils.py
danielhanchen May 13, 2025
c6d1240
Update vllm_utils.py
danielhanchen May 13, 2025
77f6075
Update vllm_utils.py
danielhanchen May 13, 2025
880f2ca
Update vllm_utils.py
danielhanchen May 13, 2025
2f93f23
Update vllm_utils.py
danielhanchen May 13, 2025
b058b57
Update vllm_utils.py
danielhanchen May 13, 2025
53ed102
Update vllm_utils.py
danielhanchen May 13, 2025
105411b
Update compiler.py
danielhanchen May 13, 2025
df07dc7
Update vllm_utils.py
danielhanchen May 13, 2025
157eaa5
Update vllm_utils.py
danielhanchen May 13, 2025
e54bd82
Update vllm_utils.py
danielhanchen May 13, 2025
31cfc28
Update vllm_utils.py
danielhanchen May 13, 2025
f561d9c
Update vllm_utils.py
danielhanchen May 13, 2025
13e8de6
Update vllm_utils.py
danielhanchen May 13, 2025
a23600b
Update vllm_utils.py
danielhanchen May 13, 2025
d5efe50
Update vllm_utils.py
danielhanchen May 13, 2025
3a5c948
Update vllm_utils.py
danielhanchen May 13, 2025
8e4a0a9
Update vllm_utils.py
danielhanchen May 13, 2025
ebfaad5
Update vllm_utils.py
danielhanchen May 13, 2025
e1ed6c1
Update vllm_utils.py
danielhanchen May 13, 2025
1afbe08
Update vllm_utils.py
danielhanchen May 13, 2025
b888da6
Update vllm_utils.py
danielhanchen May 13, 2025
dafbfc1
Update rl_replacements.py
danielhanchen May 13, 2025
7d66758
Update rl_replacements.py
danielhanchen May 13, 2025
247eb72
Update rl_replacements.py
danielhanchen May 13, 2025
5340792
Update rl_replacements.py
danielhanchen May 13, 2025
f484ce4
Swap space reduce
danielhanchen May 13, 2025
2c85e6e
Update vllm_utils.py
danielhanchen May 13, 2025
29c51ee
Update vllm_utils.py
danielhanchen May 13, 2025
275e758
Update rl_replacements.py
danielhanchen May 13, 2025
2bed350
Update vllm_utils.py
danielhanchen May 13, 2025
24d059d
Update vllm_utils.py
danielhanchen May 13, 2025
616f64e
Update vllm_utils.py
danielhanchen May 13, 2025
1f0480f
Update vllm_utils.py
danielhanchen May 13, 2025
a30f24f
Update __init__.py
danielhanchen May 13, 2025
beed07d
Update rl_replacements.py
danielhanchen May 13, 2025
9836cc0
Merge branch 'main' into nightly
danielhanchen May 13, 2025
c4ef2e8
Merge branch 'main' into nightly
danielhanchen May 14, 2025
04f0c0a
Update vllm_utils.py
danielhanchen May 14, 2025
b45c15a
Update vllm_utils.py
danielhanchen May 14, 2025
1ef267a
Update vllm_utils.py
danielhanchen May 14, 2025
393a41e
Update vllm_utils.py
danielhanchen May 14, 2025
31ca23a
Update rl_replacements.py
danielhanchen May 14, 2025
3af611a
Update vllm_utils.py
danielhanchen May 14, 2025
c0a4022
Update rl_replacements.py
danielhanchen May 14, 2025
78c2ec6
Revert "Update rl_replacements.py"
danielhanchen May 14, 2025
c1626ad
Update __init__.py
danielhanchen May 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unsloth_zoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

__version__ = "2025.5.4"
__version__ = "2025.5.5"

from importlib.util import find_spec
if find_spec("unsloth") is None:
Expand Down
12 changes: 8 additions & 4 deletions unsloth_zoo/vllm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,12 @@ def unpatch_bitsandbytes_compute_dtype():
pass


def patch_vllm():
def patch_vllm(debug = True):
# Temporary patch to disable multiprocessing for vLLM
# Allows accessing model_executor
os.environ["VLLM_ENABLE_V1_MULTIPROCESSING"] = "0"
os.environ["VLLM_LOGGING_LEVEL"] = "DEBUG"
if debug:
os.environ["VLLM_LOGGING_LEVEL"] = "DEBUG"
# os.environ["VLLM_TRACE_FUNCTION"] = "1"
patch_vllm_set_inductor_config()
patch_bitsandbytes_quant_state()
Expand Down Expand Up @@ -1524,7 +1525,6 @@ def generate_batches(llm, inputs, n_batches = None, lora_request = None, *args,

def delete_vllm(llm = None):
# From https://github.com/vllm-project/vllm/issues/1908
import ray
from vllm.distributed.parallel_state import (
destroy_model_parallel,
destroy_distributed_environment,
Expand All @@ -1540,7 +1540,11 @@ def delete_vllm(llm = None):
torch.distributed.destroy_process_group()
gc.collect()
torch.cuda.empty_cache()
ray.shutdown()
try:
import ray
ray.shutdown()
except:
pass
return llm
pass

Expand Down