Martynas
martynassub.bsky.social
Martynas
@martynassub.bsky.social
Research in software is difficult to trust most of the time, but some studies claim that type checking can reduce bugs by 15% in #python. This post covers advanced typing features such as never types, type guards, etc., that are often overlooked

martynassubonis.substack.com/p/advanced-o...
Advanced, Overlooked Python Typing
There is a common debate in Python circles: if you want static typing, why choose Python to begin with?
martynassubonis.substack.com
November 30, 2025 at 5:55 PM
MCP improves interoperability across LLM systems and enables agentic behaviour. But it also introduces drawbacks: tool poisoning/shadowing, rug pulls, prompt injections, and scaling friction from session affinity and prompt bloat.

martynassubonis.substack.com/p/dissecting...

#mcp #llms #llm
Dissecting the Model Context Protocol
What the protocol got right and what it still lacks for production use
martynassubonis.substack.com
July 7, 2025 at 6:51 PM
Even at temperature 0, LLMs still exhibit randomness:
- 🔢 Floating point non-associativity: Tiny differences in computation order can change outputs.
- 🧩 Sparse Mixture of Experts: Inputs can interfere with each other during routing, depending on batch.

#llm #llms #ai #machinelearning #randomness
Zero Temperature Randomness in LLMs
The randomness of LLM outputs is controlled by a parameter known as "temperature." A higher temperature increases randomness, while a lower temperature produces “more deterministic” outputs.
martynassubonis.substack.com
April 29, 2025 at 3:46 PM
Empirical software laws:
1️⃣ Conway: Design mirrors communication.
2️⃣ Hyrum: All behaviors get depended on.
3️⃣ Goodhart: Metrics lose value as targets.
4️⃣ Jakob: Users prefer familiar patterns.
5️⃣ Linus: Open-source = safer, faster fixes.

martynassubonis.substack.com/p/5-empirica...

#software #design
5 Empirical Laws of Software Engineering
What We Observe In Practice
martynassubonis.substack.com
January 27, 2025 at 5:30 PM
Exploring distributed training: Tensor Parallelism (TP) and Fully Sharded Data Parallelism (FSDP). These are the strategies powering every massive trillion-parameter model training. 🚀

martynassubonis.substack.com/p/tensor-and...

#llm #machinelearning #gpt4 #distributed #ai
Tensor and Fully Sharded Data Parallelism
How Trillion Parameter Models Are Trained
martynassubonis.substack.com
January 19, 2025 at 2:30 AM
In distributed training, choosing the right communication algorithm for gradient synchronization can make a big difference. For example, on Summit’s 24,576 GPUs, two-tree all-reduce can cut latency by 180x and boost bandwidth 5x compared to the standard ring all-reduce.
Distributed Data Parallel Training
Scaling Training Across Multiple Devices/Machines
martynassubonis.substack.com
December 16, 2024 at 4:54 PM
If executing a typical CPU instruction took 1 second, then sending a data packet from Europe to US and back would take 4.75 years. Understanding different kind of latencies can help us design better systems.

#software #cpu #latency #systems
Latency and System Design
Unpacking Different Latencies for Informed Engineering
martynassubonis.substack.com
December 2, 2024 at 10:45 PM
uv after 0.5.0—might be worth replacing Poetry/pyenv/pipx. It’s 10-100x faster 🚀, PEP-adhering, supports workspaces, and offers native Docker & CI/CD tools. A great tool for Python project management

#python #rust #uv #poetry
November 13, 2024 at 7:42 PM
Why is the industry wasting money on slow PyTorch models for inference when they can have 9x speed on the same hardware?

#python #rust #pytorch #devops
9x Model Serving Performance Without Changing Hardware
Achieve Up to 9x Faster & 13x Smaller Model Serving Compared to Naive Setups
open.substack.com
November 9, 2024 at 10:59 PM
Sharing key concepts for building effective ML workflows: reproducibility, artifact tracking, and automation, using a weather recognition project with Kubeflow Pipelines & Vertex AI as an example.

#python #devops #machinelearning #fine-tuning #ai
Reasoning About ML Workflows
Bits to Consider
martynassubonis.substack.com
September 9, 2024 at 5:40 PM
The “Python Project Management Primer” article explores how to manage Python project environments and dependencies, as well as how to structure projects effectively.

#python #devops #mlops
Python Project Management Primer
Alleviating Python Developer Pain
martynassubonis.substack.com
July 31, 2024 at 5:07 PM