HNHacker News
TopNewBestAskShowJobs

kevinlu1248

137 karma · joined March 18, 2023

building next edit autocomplete for jetbrains
submissionscomments
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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

kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
It's a bit undertrained on C#, we'll continue improving on this!
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Also wish Fleet took off, not a fan of installing a new IDE for every separate repo that's in a different language
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
I've done some testing before and many of the new Jetbrains internal plugins cause memory leaks which really lags down my IDE...
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
We currently integrate with Jetbrains' PSI
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
You can see that Qwen3 does worse than Qwen2.5 on our benchmark. Reason is it's never been pretrained for FIM / autocomplete.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Not at the moment but we do host it for our Jetbrains plugin
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Yes, I've used it to write blog posts / large user-facing copy.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Are you using the right format? https://huggingface.co/sweepai/sweep-next-edit-1.5B/blob/mai...
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
^ 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.

kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Haha, we never trained it for chat but I would bet it works regardless.

Also that's crazy, M4 Mac?

kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Our hosted autocomplete is coming to Zed in a few weeks.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
We'll push to Ollama
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Let me know if you have any questions! What hardware are you on?
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
We're using an internal fork of trl for some of the steps.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Double-check if you're using the right format.

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

kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Woops meant to say open-weight. We put open-weight in the title and but accidentally wrote open-source in the description.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Someone in this thread already built a Neovim plugin connecting to this model I believe.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Also more technical details on SFT data here:

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

kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Thanks! Let us know if you have any questions / feedback.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
Not at the moment, if you install the hosted Sweep AI Jetbrains plugin it uses our hosted (larger) model.
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
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).
kevinlu1248··on Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
this is awesome, i'm going to try this out
kevinlu1248··on Sunsetting Supermaven
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.
kevinlu1248··on Show HN: File-based cache for slow Python functions
We also found a lot of cases where caching ends up being actually slower than doing the operation. The 100% solution would probably be to use a SQL db the way diskcache does it, but this is easier to use for us.
Page 1 of 3Next →