Toolformer does not change the language model's architecture. It inserts API annotations into the training text wherever a call would have helped predict the following words, creating a dataset of calls in context.
Implement insert_call(text, pos, call), splicing the call into the text at a position.
pos is a character index in the text.Slice the text before and after pos and place the call between the two pieces.
No results yet
Run your code to check it against the examples, or submit to run every test.