So I can use this with any supported models? The reason I'm asking is because I can only run 1b-3b models reliably on my hardware.
Hey! Author of the blog post here. Yes you should be able to use any model. Your mileage may vary with the smaller models but asking them to “return x in json” tends to help with accuracy (anecdotally).
Structured Outputs with Ollama
31–40 of 75 posts
Re: Structured Outputs with Ollama
#32Re: Structured Outputs with Ollama
#33Re: Structured Outputs with Ollama
#34Question though. Has anyone had luck running it on AMD GPUs? I've heard it's harder but I really want to support the competition when I get cards next year.
Re: Structured Outputs with Ollama
#35Earlier quoted context omitted.
A lot of the time you can prevent this by prefilling the output with ```\n and stopping at ```.
care to explain further? I am not sure I understand you fully
Re: Structured Outputs with Ollama
#36Re: Structured Outputs with Ollama
#37If anyone needs a more powerful constrain outputs, llama.cpp support gbnf: https://github.com/ggerganov/llama.cpp/blob/master/grammars/...
Re: Structured Outputs with Ollama
#38Re: Structured Outputs with Ollama
#39No way. This is amazing and one of the things I actually wanted. I love ollama be because it makes using an LLM feel like using any other UNIX program. It makes LLMs feel like they belong on UNIX. Question though. Has anyone had luck running it on AMD GPUs? I've heard it's harder but I really want to support the competition when I get cards next year.
Re: Structured Outputs with Ollama
#40Earlier quoted context omitted.
A lot of the time you can prevent this by prefilling the output with ```\n and stopping at ```.
care to explain further? I am not sure I understand you fully