Better HN
topnewbestaskshowjobs
Log inSign up

parthsareen

43 karma · joined May 27, 2021 (5y ago) · 26 submissions

Submissions

comment 3mo ago · link · parent

Hi! From Ollama here - you can run: ollama run qwen3.8 (or if on mac qwen3.8:27b-mlx)

comment 10mo ago · link · parent

Also recently added ollama launch claude if you want to connect to cloud models from there :)

comment 10mo ago · link · parent

Hey! One of the maintainers of Ollama. 8GB of VRAM is a bit tight for coding agents since their prompts are quite large. You could try playing with qwen3 and at least 16k context length to see how it works.

4.

Building Reliable AI Agents(parthsareen.com ↗)

1 points · by parthsareen · 10mo ago · discuss

comment 11mo ago · link · parent

How much ram are you running with? Qwen3 and gpt-oss:20b punch a good bit above their weight. Personally use it for small agents.

comment 11mo ago · link · parent

You're welcome to go through the source: https://github.com/ollama/ollama/

comment 11mo ago · link · parent

Desktop app is open-source now.

8.

How to Train an LLM: Part 1(omkaark.com ↗)

20 points · by parthsareen · 1y ago · 3 comments

comment 1y ago · link · parent

Since we shipped web search with gpt-oss in the Ollama app I've personally been using that a lot more especially for research heavy tasks that I can shoot off. Plus with a 5090 or the new macs it's super fast.

comment 1y ago · link · parent

Hi - author of the post. Yes it does! The "build a search agent" example can be used with a local model. I'd recommend trying qwen3 or gpt-oss

comment 1y ago · link · parent

Hey! Author of the blogpost and I also work on Ollama's tool calling. There has been a big push on tool calling over the last year to improve the parsing. What's the issues you're running into with local tool use? What models are you using?

comment 1y ago · link · parent

That's a great idea. Going to try this next :)

comment 1y ago · link · parent

Hey! I'm the author of the post. We haven't optimized sampling yet so it's running linearly on the CPU. A lot of SOTA work either does this while the model is running the forward pass or does the masking on the GPU.

The greedy accept is so that the mask doesn't need to be computed. Planning to make this more efficient from either ends.

comment 1y ago · link · parent

Thank you! Maybe not "perfect" but near-perfect is something we can expect. Models like the Osmosis structure which just structure data inspired some of that thinking (https://ollama.com/Osmosis/Osmosis-Structure-0.6B). Historically, JSON generation has been a latent capability of a model rather than a trained one, but that seems to be changing. gpt-oss was particularly trained for this type of behavior and so the token probabilities are heavily skewed to conform to JSON. Will be interesting to see the next batch of models!

comment 1y ago · link · parent

Thanks for posting! Didn't expect this to get picked up – it was a bit of a draft haha. Happy to answer questions around structured outputs :)

comment 1y ago · link · parent

Yes! I have checked guidance out, as well as a few others. Planning to refactor sampling in the near future which would include improving using grammars for sampling as well. Thanks for sharing!

comment 1y ago · link · parent

The constraints will always be met. It’s the data inside that might be inaccurate. YMMV with smaller models in that sense.

comment 1y ago · link · parent

Hey! Author of the blog here. The current implementation uses llama.cpp GBNF which has allowed for a quick implementation. The biggest value-add at this time was getting the feature out.

With the newer research - outlines/xgrammar coming out, I hope to be able to update the sampling to support more formats, increase accuracy, and improve performance.

comment 1y ago · link · parent

Hey! Author of the post and one of the maintainers here. I agree - we (maintainers) got to this late and in general want to encourage more contributions.

Hoping to be more on top of community PRs and get them merged in the coming year.

comment 1y ago · link · parent

This looks really useful. Thank you!

comment 1y ago · link · parent

I authored the blog with some other contributors and worked on the feature (PR: https://github.com/ollama/ollama/pull/7900).

The current implementation uses llama.cpp GBNF grammars. The more recent research (Outlines, XGrammar) points to potentially speeding up the sampling process through FSTs and GPU parallelism.

comment 1y ago · link · parent

We’ve been keeping a close eye on this as well as research is coming out. We’re looking into improving sampling as a whole on both speed and accuracy.

Hopefully with those changes we might also enable general structure generation not only limited to JSON.

comment 1y ago · link · parent

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).

24.

Learnings from Building a Graph AI Agent Framework(parthsareen.com ↗)

1 points · by parthsareen · 2y ago · discuss

comment 5y ago · link · parent

The first few of these are my fav: https://dive.sh/thread/81vD2RhjxF