Update _utils.py
This commit is contained in:
parent
3616850a9f
commit
ffc70682f4
1 changed files with 6 additions and 4 deletions
|
|
@ -389,11 +389,13 @@ import torch._inductor.utils
|
|||
torch._inductor.utils.is_big_gpu = is_big_gpu
|
||||
|
||||
|
||||
UNSLOTH_COMPILE_DEBUG = os.environ.get("UNSLOTH_COMPILE_DEBUG", "0") == "1"
|
||||
UNSLOTH_COMPILE_MAXIMUM = os.environ.get("UNSLOTH_COMPILE_MAXIMUM", "0") == "1"
|
||||
UNSLOTH_COMPILE_DEBUG = os.environ.get("UNSLOTH_COMPILE_DEBUG", "0") == "1"
|
||||
UNSLOTH_COMPILE_MAXIMUM = os.environ.get("UNSLOTH_COMPILE_MAXIMUM", "0") == "1"
|
||||
UNSLOTH_COMPILE_IGNORE_ERRORS = os.environ.get("UNSLOTH_COMPILE_IGNORE_ERRORS", "0") == "1"
|
||||
patch_torch_compile(
|
||||
debug = UNSLOTH_COMPILE_DEBUG,
|
||||
O3 = UNSLOTH_COMPILE_MAXIMUM,
|
||||
debug = UNSLOTH_COMPILE_DEBUG,
|
||||
O3 = UNSLOTH_COMPILE_MAXIMUM,
|
||||
ignore_errors = UNSLOTH_COMPILE_IGNORE_ERRORS,
|
||||
)
|
||||
|
||||
torch_compile_options = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue