Update loader.py

This commit is contained in:
Daniel Han 2025-08-08 11:44:07 -07:00
commit 3fc4e4dff9

View file

@ -593,10 +593,10 @@ class FastModel(FastBaseModel):
"os.environ['TRITON_F32_DEFAULT'] = 'ieee';"
elif "gpt-oss" in lowered_model_name:
os.environ["UNSLOTH_DISABLE_STATIC_GENERATION"] = "1"
# CCE fails on Tesla T4
# OutOfResources: out of resource: shared memory, Required: 98304, Hardware limit: 65536. Reducing block sizes or `num_stages`
os.environ["UNSLOTH_ENABLE_CCE"] = "0"
if not load_in_4bit:
# CCE fails on Tesla T4
# OutOfResources: out of resource: shared memory, Required: 98304, Hardware limit: 65536. Reducing block sizes or `num_stages`
os.environ["UNSLOTH_ENABLE_CCE"] = "0"
# Only upcast MoE biases for MXFP4, not BnB
os.environ["UNSLOTH_FORCE_CUSTOM_DTYPE"] = \
"all;None;None;"\