This commit is contained in:
Daniel Han 2025-04-06 01:43:42 -07:00
commit c765db5cf6
2 changed files with 26 additions and 0 deletions

16
unsloth/models/llama4.py Normal file
View file

@ -0,0 +1,16 @@
# Copyright 2023-present Daniel Han-Chen & the Unsloth team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from unsloth_studio.models import patch_llama4
patch_llama4()

View file

@ -738,6 +738,16 @@ __INT_TO_FLOAT_MAPPER = \
"canopylabs/orpheus-3b-0.1-ft",
"unsloth/orpheus-3b-0.1-ft-bnb-4bit",
),
"unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-dynamic-bnb-4bit" : (
"unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth",
"meta-llama/Llama-4-Scout-17B-16E-Instruct",
"unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-bnb-4bit",
),
"unsloth/Llama-4-Scout-17B-16E-unsloth-dynamic-bnb-4bit" : (
"unsloth/Llama-4-Scout-17B-16E-unsloth",
"meta-llama/Llama-4-Scout-17B-16E",
"unsloth/Llama-4-Scout-17B-16E-unsloth-bnb-4bit",
),
}
INT_TO_FLOAT_MAPPER = {}