Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Fix DeepScaleR-1.5B mapper entry pointing its 16bit repo at DeepHermes-3-8B (#7088)

Anas Khan3b235895bdf0
diff --git a/tests/test_get_model_name.py b/tests/test_get_model_name.py
index 993931c0efa..33ad316d882 100644
--- a/tests/test_get_model_name.py
+++ b/tests/test_get_model_name.py
@@ -102,6 +102,19 @@ class TestGetModelName(unittest.TestCase):
),
("unsloth/Kimi-K2-Instruct", True, "unsloth/Kimi-K2-Instruct-BF16", True),
("unsloth/Kimi-K2-Instruct", False, "unsloth/Kimi-K2-Instruct", False),
+ # DeepScaleR-1.5B must resolve to its own 16bit repo, not another model
+ (
+ "agentica-org/DeepScaleR-1.5B-Preview",
+ False,
+ "unsloth/DeepScaleR-1.5B-Preview",
+ True,
+ ),
+ (
+ "agentica-org/DeepScaleR-1.5B-Preview",
+ True,
+ "unsloth/DeepScaleR-1.5B-Preview-unsloth-bnb-4bit",
+ True,
+ ),
# Fallback-to-original behavior
"nonexistent-user/nonexistent-model-123",
"google/gemma-3-random-prototype-123",
@@ -157,6 +170,10 @@ class TestGetModelName(unittest.TestCase):
with self.subTest(src = src):
self.assertEqual(FLOAT_TO_INT_MAPPER[src], expected)
self.assertEqual(MAP_TO_UNSLOTH_16bit["qwen/qwen3-8b-fp8"], "unsloth/Qwen3-8B-FP8")
+ self.assertEqual(
+ MAP_TO_UNSLOTH_16bit["agentica-org/deepscaler-1.5b-preview"],
+ "unsloth/DeepScaleR-1.5B-Preview",
+ )
if __name__ == "__main__":
diff --git a/unsloth/models/mapper.py b/unsloth/models/mapper.py
index f3a0e1f9bb5..4558bb0f281 100644
--- a/unsloth/models/mapper.py
+++ b/unsloth/models/mapper.py
@@ -701,7 +701,7 @@ __INT_TO_FLOAT_MAPPER = \
"unsloth/Qwen2.5-VL-72B-Instruct-bnb-4bit",
),
"unsloth/DeepScaleR-1.5B-Preview-unsloth-bnb-4bit" : (
- "unsloth/DeepHermes-3-Llama-3-8B-Preview",
+ "unsloth/DeepScaleR-1.5B-Preview",
"agentica-org/DeepScaleR-1.5B-Preview",
"unsloth/DeepScaleR-1.5B-Preview-bnb-4bit",
),