r/opencode • • 3d ago

GLM-5.4

It is claimed to be in the 750B to 2–3T parameter range.

I can’t wait to see $60–$100 worth of credits offered once the weights are released publicly.

GLM-5.4, a new AI model from the Chinese company Z.AI, is based on a "loop transformer" architecture; by reusing neural network layers, it achieves performance levels comparable to much larger models.

In the standard transformer models widely used today, each layer is executed only once during a single computational pass. In the loop transformer architecture, however, a group of layers—sharing the same weights—is executed multiple times, allowing the model to re-process and refine its intermediate results. This approach increases computational depth without requiring an increase in the number of model parameters. According to the company, this enables GLM-5.4 to attain reasoning capabilities comparable to models with 2 to 3 trillion parameters.

147 Upvotes

27 comments sorted by

22

u/Sufficient-File-3020 3d ago

I already use GLM 5.3 as planner/orchestrator. If glm 5.4 comes to opencode, with usable requests, I‘ll be happy af

3

u/berakpanas 3d ago

how do you make a model as the orchestrator and tell it to use other model to do execution?

9

u/Sufficient-File-3020 3d ago

Agent/Subagent setups.
I made all the agent files with claude free app.
Works pretty well.

2

u/berakpanas 3d ago

damn brother i need to try this

2

u/wwdennis5 2d ago

you can also just tell an agent to use another model for the subagent. I have got this to work on the opencode web version, unsure about TUI but I dont see why it wouldn't work

3

u/petertt86 2d ago

Easiest way is to use deepseek harness, plugin-> subagent->pick the executor, new chat with the boss model you choose and ask it be orchestrator and xxx as executor, then it will work as agent/subagent mode

3

u/Prestigious-Room1250 2d ago

“Hey Glm, create a plan for this….”. THEN, “implement it using this model then call this other model for a code review…”. Bang.

2

u/simpleuss 2d ago

Use Oh-My-Openagent (OMO)

2

u/meerestier 2d ago

Try OMO Slim with Opencode

2

u/akza07 2d ago

Try Open chamber. Or just opencode will also do it if you tell which model to use per task along with @opencode skill.

If using OpenChamber, set up the default models in settings first. And switch to lead mode after adding your project. Then lead will be a good intelligent model and let the small model be something with high usage and slightly less intelligent ( don't use beam though, it's worse ).

U could run long context projects like that. It'll keep the main session less expensive. Won't save you any tokens though. If you want to save tokens, subagents are not that good.

1

u/Huntware 2d ago

Openchamber has a new feature for a "lead", where you tell them to do a task, and it delegates to a subagent that can be using a different model. Add Jev or a cheap model for auto routing, set which model to use for which kind of task, and enjoy!

15

u/Amarsir 3d ago

I was initially excited and am still a bit optimistic. But in the last week I've learned:

  1. This is basically the 5.3 model with the loop transformer. So don't expect that much, but if this does prove promising then 5.5 will be the release to get excited about. Because that would be updated training plus this tech.
  2. Google took a shot at loop transformers a few years ago and gave them up. Their conclusion is that it's harder to train than exposed separate layers.

5

u/warpaint_james 2d ago

On OpenRouter it does seems that most of the 5.4 providers can serve it much faster than 5.3. So not nothing!

https://openrouter.ai/compare/z-ai/glm-5.4/z-ai/glm-5.3-flash

3

u/Amarsir 2d ago

Yeah, and it’s supposed to be fewer tokens too. I think the tight loops take the place of iterative reruns on high thinking levels.

Considering 5.3 could be rather slow, this will be a very welcome addition.

2

u/taylor_daniel-9 23h ago

Fewer output tokens don't automatically mean less compute: the loop repeats internal layers, so actual latency and cost still depend on serving efficiency.

9

u/P4R4DOXZ 2d ago

I am GLM coding subscriber, 5.4 on Low if very good for most things - its already same/better than 5.3, so i would recommend using it on low or on hard tasks on high, and by "hard" i mean something like hacking nasa cause on max thinking it thinks for hours AND the result is much deeper and better but thats costly.
Its pretty good at 3d modeling too with vision.

1

u/Ariquitaun 2d ago

How do you find your's subscription quota allowance in general and which level do you have?

2

u/CriteriumA 2d ago

In case it helps, I have the basic tier of GLM Coding and Claude's. I can only tell you that right now, neither in usage nor in capability, the GLM plan is of any interest at all—but don't go anywhere near that, not by a long shot.

1

u/P4R4DOXZ 1d ago

i am on legacy v1 coding plan which has no weekly/montly limits, only 5 hour so its not comparable to what they have now

1

u/sertdisk 2d ago

On their websites, it is claimed that it has a size of 750B parameters and an intelligence level in the 2–3T range.

Wouldn't the release of open weights create the possibility of achieving accessibility at price points comparable to those of 5.3 Flash?

1

u/m-mendez-8941 13h ago

Open weights may widen hosting options, but if the 750B figure holds, serving it still needs substantial memory; 5.3 Flash-like pricing isn't automatic.

5

u/KlausDieterFreddek 2d ago

60$ on OpenCode GO Plus as it seems

2

u/Amarsir 2d ago

Zhipu isn’t making any deals right now. So Opencode is stuck on “only” giving us 50% over API.

But I strongly expect when weights are released, that excess 5.3 hardware will go to getting better 5.4 rates.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/Amarsir 2d ago

GLM 5.4 isn't open weight yet...

3

u/Amarsir 2d ago

Well I’m glad it’s here. You can run it on low or medium and use fewer tokens. And I’m sure the quota will go up once its open and running on OC’s hardware.

But right now it looks to be about 1/3 the usage of Kimi K3.1. If not for the price hike Argon just got, it would be more expensive than that too.

(Speaking of which, Gemjni plans don’t even access Argon, but they still serve it to Opencode instead of Neon or Carbon? I’m insulted.)