r/ruby • u/espece-de-bon • Jul 18 '26
LLM tailored to Ruby and/or Rails?
I'm new to running small models on my laptop.
I can run Qwen3.5-9b (slowly), for example, but I'm wondering if any of you have found a model that's been trained for Ruby specifically, inference only, and stripped of stuff I might not need (like knowledge of a lot of human languages).
I've been using LM Studio, OpenCode for this.
2
Upvotes
3
u/mrinterweb Jul 18 '26
You can use something like Unsloth to train your own model. Depending on your hardware or training budget, probably start with a smaller model. Get some existing rails code that is good, and start training. Unsloth is really cool.
1
u/armahillo Jul 18 '26
What are you hoping to use this model for?
1
u/TommyTheTiger Jul 18 '26
If it doesn't know english, how would you tell it what to code? Sadly my experience with small models is that I haven't had much success getting them useful. A lot of the skills/saved prompts I used just overflow the context instantly, let alone having it try to work in anything somewhat larger. That said AI definitely recommends Qwen3-Coder-Next over Qwen3.5-9b for same VRAM. It's not ruby specific but it should be a bit more trained to code.
2
u/countsachot Jul 18 '26
Claud and MiniMax work fine for me. Deepsreek is pretty good too.
2
u/fbatista Jul 19 '26
The problem you are not thinking about is that the programming language is just one layer, and it’s not even the most important one.
Structuring the solution, the architecture, applying the design patterns and evaluating which ones are the best, that’s the tough part.
2
u/ton_anywhere Jul 21 '26
I’m using Qwen 27 & 35B for coding in Ruby, but I run a heavily customized Opencode setup. If you want msg me and I send you some of my resources.
I’m also happy with the Gemma 12B for general used, but haven’t tried using it with Ruby yet.
1
u/flanger001 Jul 20 '26
I don’t know of a model specifically trained in Ruby. But try Gemma 4 E4B. Everyone talks about how good Qwen is and I think it kind of sucks. Gemma outputs at 5x the speed and is largely very accurate.
1
u/Delicious_Ease2595 Jul 22 '26
I think is more about the harness than the model, what i did i have a Hermes agent with skills and tools only focus on Ruby.
9
u/[deleted] Jul 18 '26
[removed] — view removed comment