unslothai/unsloth

[Bug] Tool_Calling does not work properly

Open

#3,092 建立於 2025年8月5日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Python (5,658 fork)batch import
help wanted

倉庫指標

Star
 (64,271 star)
PR 合併指標
 (平均合併 3天 15小時) (30 天內合併 525 個 PR)

描述

I followed this notebook: https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_(1.5B)-Tool_Calling.ipynb

Can I only use qwen for tool calling? When I use llama 3.2 1B, when executing the Function for Generation Constraint, I get NotImplementedError: Tokenizer not supported: PreTrainedTokenizerFast

When using phi-4-mini, I get ValueError: The following model_kwargs are not used by the model: ['num_logits_to_keep'] (note: types in the generate arguments will also be displayed in this list).

How can I make it run smoothly?

貢獻者指南