<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Miloserdev</title>
    <description>The latest articles on DEV Community by Miloserdev (@miloserdev).</description>
    <link>https://dev.to/miloserdev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F307379%2F1499896c-64c3-4d30-9aee-a35f662ae72e.jpeg</url>
      <title>DEV Community: Miloserdev</title>
      <link>https://dev.to/miloserdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miloserdev"/>
    <language>en</language>
    <item>
      <title>NUMALLAMA update: Qwen3-30B-A3B at ~90 tok/s on a dual-socket ARM server, no GPU</title>
      <dc:creator>Miloserdev</dc:creator>
      <pubDate>Fri, 20 Nov 2026 15:28:30 +0000</pubDate>
      <link>https://dev.to/miloserdev/numallama-update-qwen3-30b-a3b-at-90-toks-on-a-dual-socket-arm-server-no-gpu-4bk7</link>
      <guid>https://dev.to/miloserdev/numallama-update-qwen3-30b-a3b-at-90-toks-on-a-dual-socket-arm-server-no-gpu-4bk7</guid>
      <description>&lt;p&gt;What changed since last time&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Faster prompt processing. Activation packing borrowed from Arm KleidiAI’s layout, balanced work split across threads, and larger prefill blocks: Llama 3.1 8B Q8 went from ~620 to ~800 tok/s. The output is bit-identical to before.&lt;/li&gt;
&lt;li&gt;Ready-made models on Hugging Face, no conversion step: Qwen3-30B-A3B, Qwen3.8-27B, Qwen2.5, Llama 3.1/3.2, each with the license of the original. → huggingface.co/miloserdev&lt;/li&gt;
&lt;li&gt;OpenAI-compatible server: streaming, tool calls, KV prefix cache. Any OpenAI client works.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Numbers on this box (2 sockets)&lt;/p&gt;

&lt;p&gt;Model           Decode      Prefill&lt;br&gt;
Qwen3-30B-A3B Q4    ~90 tok/s   ~600 tok/s&lt;br&gt;
Llama 3.1 8B Q8     39 tok/s    ~800 tok/s&lt;br&gt;
Qwen3.8-27B Q4      17 tok/s    ~175 tok/s&lt;/p&gt;

&lt;p&gt;Caveats&lt;/p&gt;

&lt;p&gt;Tuned for ARM64 with dotprod. x86 runs, but not fast.&lt;br&gt;
One request at a time.&lt;br&gt;
Its own file format, not GGUF.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;hf download miloserdev/Qwen3-30B-A3B-Instruct-2507-numallama --local-dir models/qwen3-30b
./runq models/qwen3-30b/qwen3-30b-a3b-instruct-2507-q4.bin -z models/qwen3-30b/tokenizer.bin -m server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repo: &lt;a href="https://github.com/miloserdev/numallama" rel="noopener noreferrer"&gt;https://github.com/miloserdev/numallama&lt;/a&gt;&lt;br&gt;
Feedback welcome, especially from anyone with Graviton or Ampere hardware.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
    </item>
    <item>
      <title>NUMALLAMA: fast LLM inference on multi-socket CPU servers</title>
      <dc:creator>Miloserdev</dc:creator>
      <pubDate>Wed, 18 Nov 2026 19:02:57 +0000</pubDate>
      <link>https://dev.to/miloserdev/numallama-fast-llm-inference-on-multi-socket-cpu-servers-20mg</link>
      <guid>https://dev.to/miloserdev/numallama-fast-llm-inference-on-multi-socket-cpu-servers-20mg</guid>
      <description>&lt;p&gt;&lt;strong&gt;NUMALLAMA&lt;/strong&gt; is a small C inference engine (one source file, no dependencies) that runs modern LLMs on CPUs: no GPU, no CUDA. It is built for big multi-socket NUMA servers, where most engines leave half the machine idle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/miloserdev/numallama" rel="noopener noreferrer"&gt;https://github.com/miloserdev/numallama&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;A dual-socket server has hundreds of cores and a lot of memory bandwidth, but each socket has its own memory. Treat the machine as one uniform CPU and every token crosses the slow link between sockets. On our test box, llama.cpp is fastest on one socket and gets &lt;em&gt;slower&lt;/em&gt; when it uses both.&lt;/p&gt;

&lt;p&gt;NUMALLAMA splits every weight matrix and the KV cache between the sockets. Each socket's cores read only local memory and synchronize mostly within their own socket. As a result, the second socket adds +50–85% decode speed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;Hardware: 2 × Ampere Altra Max M128-30 (256 Neoverse N1 cores, 3.0 GHz), 1 TB RAM, 2 NUMA nodes, ~180 GB/s memory bandwidth per socket.&lt;/p&gt;

&lt;p&gt;Decode, tokens/s:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;NUMALLAMA, 2 sockets&lt;/th&gt;
&lt;th&gt;llama.cpp, best (1 socket)&lt;/th&gt;
&lt;th&gt;llama.cpp, 2 sockets&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.2 3B Q8&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;76&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;36&lt;/td&gt;
&lt;td&gt;4.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.2 3B Q4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;99&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;64 (Q4_0)&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.1 8B Q8&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;39&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;td&gt;3.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.1 8B Q4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;59&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;29 (Q4_K_M)&lt;/td&gt;
&lt;td&gt;0.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is &lt;strong&gt;1.5–2× llama.cpp's best result&lt;/strong&gt; on this machine. Prompt processing is faster too, e.g. 8B Q8: 680 vs 274 tok/s.&lt;/p&gt;

&lt;p&gt;Larger models:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;th&gt;Decode&lt;/th&gt;
&lt;th&gt;Prefill&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-30B-A3B (MoE), Q4&lt;/td&gt;
&lt;td&gt;19 GB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;91 tok/s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~500 tok/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3.8-27B (hybrid linear attention), Q4&lt;/td&gt;
&lt;td&gt;18 GB&lt;/td&gt;
&lt;td&gt;17 tok/s&lt;/td&gt;
&lt;td&gt;172 tok/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Q4 quality: KL divergence 0.013 to full precision on Llama 3.2 3B, against 0.015 for llama.cpp Q4_K_M.&lt;/p&gt;

&lt;p&gt;These are measurements on this one machine, not universal claims. All methods and numbers are in &lt;a href="https://github.com/miloserdev/numallama/blob/master/docs/BENCHMARKS.md" rel="noopener noreferrer"&gt;BENCHMARKS.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's inside
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;NUMA-aware placement of weights and the KV cache; per-socket work queues and buffers&lt;/li&gt;
&lt;li&gt;Persistent thread pool with tree barriers (~1 µs within a socket, ~2 µs across)&lt;/li&gt;
&lt;li&gt;NEON dot-product kernels on repacked weights, batched prefill, multi-token decode step&lt;/li&gt;
&lt;li&gt;Q8 and asymmetric Q4 with an importance matrix collected by the engine itself&lt;/li&gt;
&lt;li&gt;Exact speculative decoding: prompt lookup or a small draft model&lt;/li&gt;
&lt;li&gt;Mixture of experts (Qwen3-MoE) and hybrid Gated DeltaNet models (Qwen3.5 / 3.8)&lt;/li&gt;
&lt;li&gt;OpenAI-compatible server: streaming, tool calls, prompt-prefix cache&lt;/li&gt;
&lt;li&gt;CLI chat with sandboxed tool calling&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Supported models: Llama 3.x, Qwen2.5, Qwen3 / Qwen3-MoE, Qwen3.5 / Qwen3.8.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;make
python3 scripts/export_hf_q8.py hf/Qwen3-30B-A3B-Instruct-2507 qwen3_30b_q80.bin
python3 scripts/export_tokenizer.py hf/Qwen3-30B-A3B-Instruct-2507 qwen3_tokenizer.bin
./runq qwen3_30b_q80.bin -z qwen3_tokenizer.bin -m server -P 8080
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any OpenAI client then works with &lt;code&gt;base_url="http://127.0.0.1:8080/v1"&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Platform:&lt;/strong&gt; the optimized kernels target ARM64 with NEON + dot product (Ampere Altra, AWS Graviton, other Neoverse cores). x86-64 builds run on portable C fallbacks and are not optimized yet.&lt;/li&gt;
&lt;li&gt;Linux only, no GPU offload.&lt;/li&gt;
&lt;li&gt;The server handles one request at a time; other requests wait in a queue. There is no multi-user batching yet.&lt;/li&gt;
&lt;li&gt;Text only, and a short list of model families.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why CPU?
&lt;/h2&gt;

&lt;p&gt;GPUs win on speed per dollar when the model fits in their memory. CPU servers win on capacity: a terabyte of RAM holds models that need several GPUs, and many data centers already have idle ARM servers. NUMALLAMA is an attempt to see how far careful engineering around memory locality can push them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>linux</category>
      <category>aarch64</category>
    </item>
    <item>
      <title>News &amp; Documentation markdown engine</title>
      <dc:creator>Miloserdev</dc:creator>
      <pubDate>Mon, 16 Nov 2026 16:34:06 +0000</pubDate>
      <link>https://dev.to/miloserdev/news-documentation-markdown-engine-35bf</link>
      <guid>https://dev.to/miloserdev/news-documentation-markdown-engine-35bf</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcpkajwetn05iyi5u663m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcpkajwetn05iyi5u663m.png" alt=" " width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A file-based markdown engine. Point it at a folder of markdown files — an Obsidian vault, for example — and get a fast three-column news site: menu, feed, reader. No database, no logins, no users.&lt;/p&gt;

&lt;p&gt;📁 File-based architecture — organize articles in folders.&lt;br&gt;
✍️ Markdown-first — write and manage content using simple Markdown files.&lt;br&gt;
🗂️ Automatic article discovery and organization.&lt;br&gt;
🌐 Publish and browse your news through a web interface.&lt;br&gt;
⚡ Lightweight and easy to maintain.&lt;br&gt;
🔧 Simple content management with Git-friendly files.&lt;/p&gt;

&lt;p&gt;Live preview · &lt;a href="https://miloser.dev/newspaper/" rel="noopener noreferrer"&gt;https://miloser.dev/newspaper/&lt;/a&gt;&lt;br&gt;
Fork &amp;amp; Try · &lt;a href="https://github.com/miloserdev/newspaper" rel="noopener noreferrer"&gt;https://github.com/miloserdev/newspaper&lt;/a&gt;&lt;/p&gt;

</description>
      <category>markdown</category>
      <category>documentation</category>
      <category>news</category>
      <category>webdev</category>
    </item>
    <item>
      <title>FL0W: A Self-Hosted Visual Workflow Automation Tool</title>
      <dc:creator>Miloserdev</dc:creator>
      <pubDate>Sun, 08 Nov 2026 19:30:24 +0000</pubDate>
      <link>https://dev.to/miloserdev/fl0w-a-self-hosted-visual-workflow-automation-tool-4m42</link>
      <guid>https://dev.to/miloserdev/fl0w-a-self-hosted-visual-workflow-automation-tool-4m42</guid>
      <description>&lt;p&gt;I've been working on &lt;strong&gt;FL0W&lt;/strong&gt;, an open-source visual workflow automation platform inspired by tools like n8n.&lt;/p&gt;

&lt;p&gt;The idea is simple: build automations visually, run them locally, and keep full control over your data and execution environment.&lt;/p&gt;

&lt;h3&gt;
  
  
  What makes FL0W different?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;54 built-in blocks&lt;/strong&gt; — HTTP, Telegram, Jira, IMAP/SMTP, Microsoft Graph, file operations, data transformations, and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Process isolation&lt;/strong&gt; — every workflow execution runs in its own Node.js process.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual debugging&lt;/strong&gt; — inspect inputs, outputs, parameters, logs, and errors at every node.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Background execution&lt;/strong&gt; — publish workflows with webhook, interval, Telegram, email, and other triggers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Code Agent&lt;/strong&gt; — an agent-style block with tools and memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-hosted&lt;/strong&gt; — no cloud account, external database, or third-party execution service required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Workflows are stored as plain JSON, and the execution model is intentionally simple and predictable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Get started
&lt;/h3&gt;

&lt;p&gt;You can run FL0W with Node.js:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/miloserdev/fl0w.git
&lt;span class="nb"&gt;cd&lt;/span&gt; fl0w
pnpm install
pnpm build
pnpm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or use Docker Compose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d --build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;code&gt;http://localhost:3000&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  FL0W vs n8n
&lt;/h3&gt;

&lt;p&gt;FL0W operates in the same space as n8n, but takes a different approach: a smaller execution model, one JSON value per port, isolated workflow processes, and no server-side credentials database.&lt;/p&gt;

&lt;p&gt;It's an independent implementation, not an n8n fork.&lt;/p&gt;

&lt;p&gt;The project is released under &lt;strong&gt;GPL-2.0-only&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check it out
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/miloserdev/fl0w" rel="noopener noreferrer"&gt;https://github.com/miloserdev/fl0w&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd appreciate feedback, ideas, and contributions!&lt;/p&gt;

&lt;p&gt;If you're interested in self-hosted automation or building workflow engines, give it a look.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>agents</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
