Browsed by
Month: April 2026

Running llama.cpp across multiple CPU nodes on Discoverer: possibilities and expectations

Running llama.cpp across multiple CPU nodes on Discoverer: possibilities and expectations

Most people running llama.cpp are familiar with its single-node CPU mode, where inference is spread across cores using multithreading. What is less commonly known is that llama.cpp can also be distributed across multiple machines — but understanding what that actually means in practice is essential before building a cluster setup around it. The built-in RPC backend llama.cpp includes an RPC feature that connects multiple nodes over TCP. A master node holds the model file and coordinates inference, while worker nodes…

Read More Read More

In most cases, avoid def main() in Python — It’s not Java or C++

In most cases, avoid def main() in Python — It’s not Java or C++

A pattern that keeps appearing in Python scripts, tutorials, and AI-generated code: This is cargo-culted from C and Java, where a main() function is a syntactic requirement. Python has no such rule. The above is functionally identical to: When def main() actually makes sense There is one legitimate use case: when you need a named entry point for Python packaging. If your pyproject.toml defines a console script, it must reference a callable: Here, def main() earns its place. But this is a specific packaging concern — not a general…

Read More Read More

WordPress Appliance - Powered by TurnKey Linux