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.

bug fix #2008 (#2039)

Mukkesh Ganesh745e0da8ae08
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index a96b435b585..b2fbf0d07f8 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1825,7 +1825,7 @@ class FastLlamaModel:
# Convert to HF format
_, quant_state_dict = get_vllm_state_dict(llm, config = model_config)
- model = convert_vllm_to_huggingface(quant_state_dict, model_config, dtype)
+ model = convert_vllm_to_huggingface(quant_state_dict, model_config, dtype, bnb_config)
model.vllm_engine = llm
model.fast_generate = model.vllm_engine.generate
model.fast_generate_batches = functools.partial(generate_batches, model.vllm_engine)