Re:Gemma 3 QAT Models: Bringing AI to Consumer GPUs
by simonw on Sunday April 20, 2025 @11:06AM
(#43744252)
The tool you are using may set a default max output size without you realizing. Ollama has a num_ctx that defaults to 2048 for example: https://github.com/ollama/ollama/blob/main/docs/faq.md#how-c...
[ Parent
| on HN ]
Re:Gemma 3 QAT Models: Bringing AI to Consumer GPUs
by nico on Sunday April 20, 2025 @11:16AM
(#43744320)
Been playing with that, but doesn’t seem to have much effect. It works very well to limit output to smaller bits, like setting it to 100-200. But above 2-4k the output seems to never get longer than about 1 page
Might try using the models with mlx instead of ollama to see if that makes a difference
Any tips on prompting to get longer outputs?
Also, does the model context size determine max output size? Are the two related or are they independent characteristics of the model?
Re:Gemma 3 QAT Models: Bringing AI to Consumer GPUs
by simonw on Sunday April 20, 2025 @11:47AM
(#43744532)
Interestingly the Gemma 3 docs say: https://ai.google.dev/gemma/docs/core/model_card_3#:~:text=T...
> Total output context up to 128K tokens for the 4B, 12B, and 27B sizes, and 32K tokens for the 1B size per request, subtracting the request input tokens
I don't know how to get it to output anything that length though.
Re:Gemma 3 QAT Models: Bringing AI to Consumer GPUs
by nico on Sunday April 20, 2025 @12:14PM
(#43744700)
Thank you for the insights and useful links
Will keep experimenting, will also try mistral3.1
Re:Gemma 3 QAT Models: Bringing AI to Consumer GPUs
by Gracana on Sunday April 20, 2025 @03:43PM
(#43746033)
You can probably find some long-form tuned models on HF. I've had decent results with QwQ-32B (which I can run on my desktop) and Mistral Large (which I have to run on my server). Generating and refining an outline before writing the whole piece can help, and you can also split the piece up into multiple outputs (working a paragraph or two at a time, for instance). So far I've found it to be a tough process, with mixed results.