Better HN
topnewbestaskshowjobs
Log inSign up

kevinlu1248

137 karma · joined Mar 18, 2023 (3y ago) · 103 submissions

building next edit autocomplete for jetbrains
Submissions

comment 10mo ago · link · parent

Ya definitely, that makes total sense. It feels to me that currently the labs have great researchers, who only care about making models perform better across raw intel and then they have incompetent applied AI engineers / FDE's who can only suggest using better prompting to remove bad habits to make agents more usable.

comment 10mo ago · link · parent

We have an explanation here: https://blog.sweep.dev/posts/next-edit-jetbrains#next-edit-a...

But basically suggesting changes away from your cursor position

comment 10mo ago · link · parent

It's a bit undertrained on C#, we'll continue improving on this!

comment 10mo ago · link · parent

Also wish Fleet took off, not a fan of installing a new IDE for every separate repo that's in a different language

comment 10mo ago · link · parent

I've done some testing before and many of the new Jetbrains internal plugins cause memory leaks which really lags down my IDE...

comment 10mo ago · link · parent

Definitely agree here, have had so many cases where I would like ask Claude for XYZ, then ask for XYZ again but with a small change. Instead of abstracting out the common code it would just duplicate the code with the small change.

comment 10mo ago · link · parent

We currently integrate with Jetbrains' PSI

comment 10mo ago · link · parent

Honestly I think we can improve our training throughput drastically via a few more optimizations but we've been spending most of our time on model quality improvements instead.

comment 10mo ago · link · parent

You can see that Qwen3 does worse than Qwen2.5 on our benchmark. Reason is it's never been pretrained for FIM / autocomplete.

comment 10mo ago · link · parent

Not at the moment but we do host it for our Jetbrains plugin

comment 10mo ago · link · parent

Yes, I've used it to write blog posts / large user-facing copy.

comment 10mo ago · link · parent

Are you using the right format? https://huggingface.co/sweepai/sweep-next-edit-1.5B/blob/mai...

comment 10mo ago · link · parent

^ these were pretty much the main reasons.

The other one is that constrained decoding only works on CFGs (simpler grammars like JSON schemas) since only these ones can produce automatas which can be used for constrained decoding. Programming languages like Python and C++ aren't CFGs so it doesn't work.

Also constrained decoding generally worsens model quality since the model would be generating off-policy. So RL helps push corrected syntax back on-policy.

comment 10mo ago · link · parent

Unfortunately, the main optimization (3x speedup) is using n-gram spec dec which doesn't run on CPUs. But I believe it works on Metal at least.

comment 10mo ago · link · parent

Haha, we never trained it for chat but I would bet it works regardless.

Also that's crazy, M4 Mac?

comment 10mo ago · link · parent

Our hosted autocomplete is coming to Zed in a few weeks.

comment 10mo ago · link · parent

We'll push to Ollama

comment 10mo ago · link · parent

Let me know if you have any questions! What hardware are you on?

comment 10mo ago · link · parent

We're using an internal fork of trl for some of the steps.

comment 10mo ago · link · parent

Personally, I think usable AI is more valuable than simply more intelligence. Many of the labs are pushing towards models that are 1% better on CodeForces and AIME if you just let it think and use tools for hours, instead of more user-friendly models with better coding habits, like writing shorter and more modular code.

comment 10mo ago · link · parent

Double-check if you're using the right format.

Example here: https://huggingface.co/sweepai/sweep-next-edit-1.5B/blob/mai...

comment 10mo ago · link · parent

Woops meant to say open-weight. We put open-weight in the title and but accidentally wrote open-source in the description.

comment 10mo ago · link · parent

Someone in this thread already built a Neovim plugin connecting to this model I believe.

comment 10mo ago · link · parent

Also more technical details on SFT data here:

https://blog.sweep.dev/posts/next-edit-jetbrains#building-au...

comment 10mo ago · link · parent

Thanks! Let us know if you have any questions / feedback.

comment 10mo ago · link · parent

Not at the moment, if you install the hosted Sweep AI Jetbrains plugin it uses our hosted (larger) model.

comment 10mo ago · link · parent

Let me know if you have any questions. We have a lot of harness code that cleans up many bad behaviours that makes it a lot more usable (like token healing: https://blog.sweep.dev/posts/token-healing-autocomplete).

comment 10mo ago · link · parent

this is awesome, i'm going to try this out

comment 1y ago · link · parent

I'm building a supermaven competitor for jetbrains. We use the Jetbrains PSI (basically Jetbrain's version of the LSP) to pull definitions into context to make the autocomplete smarter. My colleague wrote a blog on this here: https://blog.sweep.dev/posts/autocomplete-context.

30.

Building sub-100ms autocompletion for JetBrains IDEs(blog.sweep.dev ↗)

8 points · by kevinlu1248 · 1y ago · 1 comment

1234