Skip navigation
LET'S GO! Cursor using local 🤗 transformers models!
0:00 / 0:28

LET'S GO! Cursor using local 🤗 transformers models!

João Gante

@joao_gante3.4K followers

Visit on X
188 likesDownloadOriginal post

33,536 views

LET'S GO! Cursor using local 🤗 transformers models! You can now test ANY transformers-compatible LLM against your codebase. From hacking to production, it takes only a few minutes: anything `transformers` does, you can serve into your app 🔥 Here's a demo with Qwen3 4B:

11 Comments

Comments from the original post on X (Twitter)

  • João Gante's profile picture

    @joao_gante

    We've iterated on our local `transformers serve`, a server with `transformers` backend, and it now supports more advanced requests -- including the requests from Cursor. Testing new models, quantization methods, KV caches, decoding methods, (...) should be much easier now 🫶

    6 likes

  • João Gante's profile picture

    @joao_gante

    👉5-minute instructions to replicate this demo: (this link will die at some point, and the following will work: 👉The PR where it happened:

    7 likes

  • Andres Franco's profile picture

    @theinsiderzclub

    If this works as well as it sounds, it’s really going to make so many things possible.

    1 like

  • MAGA1776_PATRIOT's profile picture

    @Tech_Support87

    Spent much of the day working with LM Studio and Ollama, Mistral 7b. They are getting a lot better. I'm doing a serious build for local AI next month.

    1 like

  • Kevin Rossi's profile picture

    @KevinRossi

    This has been possible for a while but Cursor still makes calls out to their servers. What happens if you turn off your internet connection?

    1 like

  • João Gante's profile picture

    @joao_gante

    To go fully offline, a different IDE has to be used :(

    1 like

  • Zach Mueller's profile picture

    @TheZachMueller

    How well does this fully work? IIRC last I checked @cursor_ai strongly advised against doing self-hosted models? @srush_nlp has that changed?

  • David Siroky's profile picture

    @dsirokyai

    @ClementDelangue Does that mean I can run cursor fully offline, and point at a local endpoint on my network?

  • João Gante's profile picture

    @joao_gante

    @ClementDelangue Sadly no -- Cursor makes requests through their server (i.e. your request + codebase -> cursor server -> llm -> cursor server -> your cursor app) The best would be to use a different IDE.

    1 like

  • 🇺🇦🇮🇱dmitriy samsonov's profile picture

    @d0rc

    It’s either any open-ai compatible endpoint and token+model settings and no data being sent to cursor’s servers or nothing

  • João Gante's profile picture

    @joao_gante

    sadly data still goes to cursor :( see my comment here

    1 like