3 ms·
> fails at math of course what did OpenAI do for the LLM to know "if given a math question, write Python for it, and run the code in order to get result" inste
by MuffinFlavored 3y ago
> fails at math of course
what did OpenAI do for the LLM to know "if given a math question, write Python for it, and run the code in order to get result" instead of trying to do the math itself?
- Me1000 3y agoIt trained the model with a lot of data to write code instead (probably sandwiched between some special tokens like [run-python]. The LLM runner then takes the code, runs it in a sandbox, and feeds the output back into the prompt and lets GPT continue inferencing. But TL;DR: it trained the model to write code for math problems instead of trying to solve them itself.
- avereveard 3y agoIt also has some training on problem decomposition. Many smaller models fail before writing the code, they fail when parsing the question. You can ask them to serialized a problem in prolog, and see exactly when their understanding breaks - this is open hermes 2.5: https://pastebin.com/raw/kr62Hybq https://pastebin.com/raw/kr62Hybq