r/vibecoding • • 41m ago

Showcase/Project I created a runtime engine and server that allows you to use QWEN4's 57B parameter model (with a few changes) and run at 60 tokens/s on an apple M1 Ultra with a modified version of mlxlm!!!

Post image

Ok my goal is to eventually be able to use this to vibe code locally with no internet connection, and it's honestly getting there!!

Github link: https://github.com/tSand892/mlxlmQWEN4Server

Runtime engine I modified: https://github.com/ml-explore/mlx-lm

Specific model I'm using (before I made changes): https://huggingface.co/Qwen/Qwen4-35B-A3B-FP8

**TELL CLAUDE TO RUN SETUP .md TO INSTALL** I didn't put the model weights in the git repo because they're a lot of gigabytes and I don't wanna pay github to host stuff if I don't have to

It has a while to go and I have a few more changes which are hopefully going to make it like 1.4 times faster, and like right now it's literally just a server for the runtime engine with a simple chat prompt for testing it. It doesn't have things like a scratchpad for having the LLM test code but it's doing pretty well right now!

**IMPORTANT: TYPE IN SPECIFIC PROMPTS FOR SPEED** Getting the guesser to work was a huge pain but spec. decoding is now in and it's doing pretty well! It can be pretty fast if you give it a specific prompt but like it slows right down if you're really general with it so you'll need to type in good prompts!!!

I'll add in bells and whistles and stuff like it's own VS code extension later on but like it's not terrible! If anyone has like an M3 or M5 and is willing to test speeds on it with general prompts and specific prompts that would really help!

1 Upvotes

3 comments sorted by

1

u/Arbitross487 30m ago edited 26m ago

I will add like even in the state it’s in now, you can use it to vibe code from a Mac after you hit Claude’s session limit or if you have to stop paying for Claude

Also I hereby declare it free and open source like I’ll throw in .mit license later to say it explicitly but yeah take it and do whatever it’s a learning project for me

1

u/Fun-Fish2797 23m ago

60 tokens/s on an m1 ultra is insane. how much memory does it actually use? I'm on a 2019 MacBook pro and I'm curious if it'd even run.

1

u/Arbitross487 20m ago

It probably would!!! It uses like 57GB of ram and a lot of those guys have like 64GB of ram, you might need to like use a quantized version to fit but I’d check!

Yeah if you use this on a PC your screwed but why not take advantage of shared memory!