Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 3 min read

Exporting Qwen2-VL the official way: 4 dead ends and 1 error that doesn't exist on the internet

You do everything by the book. The vendor's own toolkit, the vendor's own guide, a model the toolkit claims to support. Three hundred and seventy-one build steps scroll past, all green β€” and then it dies, politely, with

You do everything by the book. The vendor's own toolkit, the vendor's own guide, a model the toolkit claims to support. Three hundred and seventy-one build steps scroll past, all green β€” and then it dies, politely, with an error message that, as far as the public internet is concerned, has never happened to anyone else.

The error, in full:

layer running Error: 'mrope_section'

Search it. I did, more times than I'd like to admit. Zero results. Not a forum post, not a GitHub issue, not a blog in any language I can read. Just me, a terminal, and a string of text that exists in exactly one place in the world.

Is it my machine?

That's always the first suspicion, right? Bad install, wrong box, something half-broken in my setup.

So I ran it twice more, on purpose, differently. On CPU: dead at the same place, exit code 51. On an RTX 3090 machine: dead at the same place, exit code 255. Same step β€” optimization, 0 of 28 layers in β€” same error, word for word. Two machines, two compute paths, one identical failure. Whatever this was, it wasn't my hardware having a bad day. (That's the whole evidence base here, to be clear: one toolkit version, 1.3.1, reproduced on two machines. Not a benchmark β€” a crime scene.)

Maybe the quantization settings?

When a build dies, you start turning knobs. I turned all of them:

  • W8A8 β€” dead.
  • W8A8 with group size 128 β€” dead.
  • W4A16 β€” the toolkit refuses it for this model before you even start.

Four routes in, including the default one, and every single one ends at the same wall. The knobs weren't the problem either.

So what actually kills it?

Here's the part that finally told me something. I ran the exact same toolkit, same version, same afternoon, on Qwen3-VL-2B β€” the newer model. Optimization: 28 of 28 layers, first try, no drama. The vision tower exported cleanly too: a 1.44 GB RKNN file that runs on the RK3588 board and encodes an image in a median of 4,445.68 ms (vision tower only β€” the language model never got its turn on the older model).

Same tool. One model sails through, the previous generation dies on a rope nobody else has ever seen β€” mrope, the multimodal rotary embedding section, if you decode the name. The toolkit grew support for the new model and quietly left the old one's code path broken. And because the error string was never written down anywhere public, every user who hits it gets to start from zero, exactly like I did.

While I was in there, the small stuff kept piling up, the kind of thing that costs you an hour each: the export script writes one filename and the next step reads a slightly different one; the vision exporter's own model list doesn't include qwen2-vl; install the wheel the documented way and roughly 28 dependencies quietly go missing until you pin them from the package metadata yourself, setuptools==80.9.0 included. None of these is fatal. All of them are invisible until they bite you.

Why am I writing this down?

Because the next person who pastes layer running Error: 'mrope_section' into a search box deserves one result. This is it. If you're exporting Qwen2-VL with rkllm-toolkit 1.3.1: the failure is real, it's not your machine, it's not your quantization settings, and as of this writing there is no public fix β€” the working path is the newer model, or waiting for the toolkit to repair the old path.

Have you ever hit an error string that existed in exactly one place β€” your terminal? What did it turn out to be, when you finally dug it out?

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.