I have been studying the Python demo code for llama.onnx, found here:
https://github.com/tpoisonooo/llama.onnx/blob/main/demo_llama.py#L184
I have looked through all the examples we currently have for kinference, but nothing is doing tokenisation yet. You would sort of expect an example like POSTagger to be doing tokenisation, but it seems to skip the hard part and load the end result directly in as the input.(Unless I'm misreading the code?)
How do I go from a string prompt, into an ONNXData object that would be accepted by this model?
I have been studying the Python demo code for llama.onnx, found here:
https://github.com/tpoisonooo/llama.onnx/blob/main/demo_llama.py#L184
I have looked through all the examples we currently have for kinference, but nothing is doing tokenisation yet. You would sort of expect an example like
POSTaggerto be doing tokenisation, but it seems to skip the hard part and load the end result directly in as the input.(Unless I'm misreading the code?)How do I go from a string prompt, into an
ONNXDataobject that would be accepted by this model?