MDMA: An open source federated LLM inference engine
github.com
github.com
Does the C code generated by the rust->plain and simple C transpiler work?
Handrolled Assembly will be better, but i preferred code i can read and understand.
MDMA is faster than llama.cpp in some models, because i did read the c code and rewrote it better. Rust is not the cause, i could the C code and open a PR and then hope it get merged.
The point of MDMA is you can have multiple nodes providing models while your main mode see all of them.
You can read this assembly code the same than C until your data structures are properly exposed and documented.
There are some tricks though: avoid abuse of macro pre-processor (ffmpeg was bitten by just that), reasonable name mangling/hierarchical namespaces (usually done with a pre-processor that to avoid too long identifiers on deep projects). Ofc those pre-processors should be as small and lean as possible runtime and SDK included (don't python and don't hesitate to include their code in the project, yep, better if handrolled assembly too).