▲ 3 r/Sims4

CMA-ES + ArcFace to auto adjust sim face to match target picture here Margaery Tyrell/Margaery Tyrell (explaination in description)

u/LinkSea8324 — 1 month ago
▲ 28 r/Vllm

Qwen 3.5 and others hybrid architectures, adjust your block size to fixyour prompt caching hit rate and save compute power.

Long story short I'm running a high concurrent translation pipeline.


The data, in and out

Translation instruction are something like 1.5k-2k tokens, it contains the instructions. Sentence to translate is in user prompt.

LLM answers in the assistant prompt with translated sentence.

I have a farm of 6 GPUs (HAProxy load balancer).

95% of requests are 1600 tokens in (system prompt), 25 tokens out.

So an efficient cache prefix is needed.


  1. SGLang provides with radix cache a ferfect cache with hybrid architectures.
  2. vLLM on qwen 3.5 will have a context window that is a multiple of 784 because of the architecture, align mode (all not supported yet) which makes prefix hit cache of 40-50%

You can't adjust --mamba-block-size but you can adjust --block-size and moving it to 1200 boosted my cache hit rate to 80%.


Conclusion :

Fixing my cache hit makes the GPUs spent less time on prefill and more on decode, making them move from 1900 t/s of aggregated token thruput to 2400-2600 t/s

reddit.com
u/LinkSea8324 — 2 months ago
▲ 6 r/hoi4

Started uploading translation packs for 37 of the biggest Workshop mods, every HOI4 language covered

I play HOI4 in French ..but as most of the mods are not translated (not even copy/pasted to my game language) I have to switch my whole game to english.

So I've been working on a side project to fix that myself.

Right now I've got translation packs going for 32 of the most-subscribed Workshop mods, in every language HOI4 officially supports. French, German, Spanish, Brazilian Portuguese, Polish, Russian, Japanese, Simplified Chinese, Korean. Basically if HOI4 ships with it, it's covered.

Full list on my Workshop page: https://steamcommunity.com/id/ExtReMLapin/myworkshopfiles?appid=394360

If you're going to use them, a few things to know:

  • They're unofficial. Subscribe to BOTH the original mod AND the translation pack. I'm not republishing the source content, just localisation files.
  • Quality is "good enough to play a full game", not perfect. Scope refs, color codes, variables and icons are preserved with high fidelity, but you'll occasionally hit clunky phrasing or a proper noun that got translated when it shouldn't have.

Some of these mods are massive (100k+ lines for the bigger ones) so the whole queue is taking a while to push through. Bear with me if your favourite isn't up yet, it's probably either uploading or next in line.

If a pack made one of your favourite mods playable in your language and you want to throw a few euros at the project, there's a donate link on each workshop page. No pressure though, mostly I just want people to actually use this stuff.

Happy to take requests in the comments if I missed an obvious popular one.

Current translated mods (more are literally being pushed RIGHT NOW)

Went with 50 -> Minus old ones (+6 month with no update) -> Minus ones with the translation flag already -> 37

Full planed list, should be done over the weekend (I guess) :

u/LinkSea8324 — 2 months ago

Grosbert got invited to the Victory day parade (They don't have any tank left to show, not even a single T-34)

u/LinkSea8324 — 3 months ago

Github repo link : https://github.com/ExtReMLapin/hoi4_mod_translator

Background

Been working on LLMs since llama 1 release, I'm a small vLLM and llama.cpp contributor.

Paradox games translation strings includes special tags.

Example :

AST_R56_memories_of_gallipoli_desc:0 "§RYou cannot increase conscription laws until relevant focuses have been taken. Check the conscription law for more details.§!\n\nThe [AST.GetAdjective] people have not forgotten how Australian blood was shed on the battlefields of the Great War. As such, there is significant opposition to any idea of conscripting [AST.GetAdjective]s to fight overseas should another war break out."

You can extract them to send them to a translation model, but the translation like NLLB-200 doesn't preserve the tags.

You can also translate the strings by hand, but for example road to 56 got 120k lines to translate.

The (first, not final) solution :

Solution is to do multi shot LLM assisted translation, you pretty much explain in the system prompt the rules of how the string is build, what he can translate, what to "keep".

Beside the set of rules, I explicitly cite what he MUST not translate in the system prompt, then the tags to keep are programmatically checked to ensure the string is not corrupted. Beside the 1:1 match of the tags, we can't do much more.

When the LLM fail to do something, like extra or missing tag (not 1:1) guidance of what's wrong is sent on the next conversation turn.

And when after the 3rd turn it's still not fixed, it fallback to the original source language.

If you want to give a try yourself, you'll need a LLM, either running locally, or API, whatever you want, it's using an OpenAI compatible endpoint. If you have an API key you probably need to set an env variable or edit the python.

Translating all the 120k lines of RoadTo56 takes 15mins-1hour depending on the picked model, GPUs you have. (and if your prefix caching is working or not :v ).

Error rate (could not find all the expected variables after 3 retries) is something like 1-2% or less depending on the model

reddit.com
u/LinkSea8324 — 3 months ago

I mostly use it to auto skip the "oh no, not this bitch again" situations from The boys.

Long story short, it uses the metadata from X-Ray to detect all the scenes where an actor is and allows you to auto skip this scene.

There is a preview in the progress bar that shows you which part of the movie/episode is being skipped

github.com
u/LinkSea8324 — 3 months ago
▲ 36 r/Vllm

I had issues with Qwen 3.6 and agentic coding (no issue so far with 27b 3.5) So I investigated and discovered multiple bugs in the reasoning parser (inspired by the very recently merged fixes in the reasoning parser).

And in the two tool parsers

https://github.com/vllm-project/vllm/pull/40783

https://github.com/vllm-project/vllm/pull/40785

https://github.com/vllm-project/vllm/pull/40787

There are more bugs, like the very last \n being ignored in the tool call, but whatever.

Those bugs are effecting all Qwen 3/3.5/3.6 versions

u/LinkSea8324 — 3 months ago