|
|
|
|
|
by canyon289
449 days ago
|
|
So in short there's no guarantee for any output from any LLM whether its Gemma or any other (ignoring some details like setting a random seed or parameters like temperature to 0). Like you mentioned though libraries like outlines can constrain the output, whereas hosted models often already include this in their API, but they can do so because its a model + some server side code. With Gemma, or any open model, you can use the open libraries in conjunction to get what you want. Some inference frameworks like Ollama include structured output as part of their functionality. But you mentioned all of this already in your question so I feel like I'm missing something. Let me know! But I think you already mentioned all this in your response so I might be missing the question? |
|
Edit: per simonw’s sibling comment, ollama also has this feature.