m-ric commited on
Commit
ce6f3a2
·
verified ·
1 Parent(s): 78ed62d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -125,8 +125,8 @@ text = tokenizer.apply_chat_template(
125
 
126
  SmolLM3 supports tool calling!
127
  Just pass your list of tools:
128
- - either under the argument `xml_tools` for standard tool-calling: these tools will be called as JSON blobs within XML tags, like `<tool_call>{"name": "get_weather", "arguments": {"city": "Copenhagen"}}</tool_call>`
129
- - or under `python_tools`: then the model will call these tools like python functions in a `<code>` snippet, like `<code>get_weather(city="Copenhagen")</code>`
130
 
131
  ```python
132
  from transformers import AutoModelForCausalLM, AutoTokenizer
 
125
 
126
  SmolLM3 supports tool calling!
127
  Just pass your list of tools:
128
+ - Under the argument `xml_tools` for standard tool-calling: these tools will be called as JSON blobs within XML tags, like `<tool_call>{"name": "get_weather", "arguments": {"city": "Copenhagen"}}</tool_call>`
129
+ - Or under `python_tools`: then the model will call tools like python functions in a `<code>` snippet, like `<code>get_weather(city="Copenhagen")</code>`
130
 
131
  ```python
132
  from transformers import AutoModelForCausalLM, AutoTokenizer