You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ai_msg: content='<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 05 Jan 2025\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhich city is hotter today and which is bigger: LA or NY?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\nAs of my cut-off knowledge date (01 March 2023), I can provide information on the' additional_kwargs={} response_metadata={} id='run-4089df0b-879c-461f-900b-60ae362612ae-0'
Description
I am trying to use tools with a local HuggingFace model.
The ChatHuggingFace documentation suggests that tools are supported, but the generated prompt does not include tools bound with bind_tools.
It's unclear if this is a documentation issue or just a mistake in the code. Since the HuggingFace tokenizer supports tool calling, I think it should be fairly easy to pass the tools to the tokenizer.
System Info
System Information
OS: Linux
OS Version: #1 SMP PREEMPT_DYNAMIC Thu Jun 27 21:05:47 UTC 2024
Python Version: 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0]
Checked other resources
Example Code
Please see this notebook
Error Message and Stack Trace (if applicable)
Note that the prompt does not include any tools:
Description
bind_tools
.It's unclear if this is a documentation issue or just a mistake in the code. Since the HuggingFace tokenizer supports tool calling, I think it should be fairly easy to pass the tools to the tokenizer.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: