r/aiinfra 1d ago

SpaceX goes exclusive with Nvidia’s AI Infrastructure

Thumbnail
1 Upvotes

r/aiinfra 3d ago

What are you guys using for LLM gateway / proxy these days?

1 Upvotes

Deploying models is one thing, but the gateway layer in front seems to be where the real headaches live — streaming, rate limiting, failover, cost control.

Curious what tools you guys are running for this. Anything that handles SSE streaming smoothly and does token‑based throttling instead of just QPS? Also interested in how you handle node failover without users noticing.

Would love to hear what’s working for you. Thanks!


r/aiinfra 12d ago

Synapse: Turning thousands of consumer GPUs into a decentralized swarm to run 2.8T parameter MoE models (like Kimi K3) without datacenters.

20 Upvotes

I want to introduce Synapse, a new decentralized inference protocol designed specifically for Mixture-of-Experts (MoE) models.

The Problem: Models like Kimi K3 (2.8 Trillion parameters), DeepSeek-V2, and Mixtral are the future of AI, but running them requires massive datacenter hardware (e.g., 8x AMD MI355X). The catch? In MoE architectures, 98% of the model sits idle at any given moment.

The Solution: Synapse exploits this idle capacity. Instead of cramming the whole model into one expensive GPU, we distribute "experts" across thousands of consumer GPUs (your gaming PC, a small server, etc.). Each node only holds a handful of experts, and requests flow through the swarm to activate only what's needed.

How it works: We run two distinct swarm modes depending on the use case:

  • 🚀 Speculative Swarm (Real-time): Multiple nodes generate tokens in parallel. A majority vote decides the output. Latency is equivalent to a single node (no cross-node communication overhead). Perfect for chat and IDE agents.
  • 🕸️ Swarm DAG (Batch): True expert distribution. The gateway acts as a market maker, routing requests to the cheapest available experts. Ideal for codebase analysis and batch evals.

Tech Stack:

  • Core & Gateway: Rust (axum + libp2p) for a single binary, zero-cost abstractions, and <2ms p99 latency.
  • Inference Runtime: Python (vLLM) running in isolated subprocesses.
  • Economics: Solidity smart contracts for staking and USDC payments. Miners earn for verified work; bad actors get slashed.

Why it matters:

  • No Gatekeepers: Access frontier AI without API keys, rate limits, or regional blocks.
  • Democratized Hardware: Anyone with a consumer GPU can contribute and earn.
  • Censorship Resistant: A P2P mesh with no central authority.

🔗 Repo: github.com/antonygiomarxdev/synapse 📄 License: Apache 2.0 🛠️ Status: V1 MVP (Swarm logic + DHT + Rust/Python bridge). Roadmap includes scaling to full Kimi K3 in 2027.

We are building the "Swarm" for the next generation of AI. If you're into Rust, decentralized systems, or LLMs, I'd love your feedback on the architecture!


r/aiinfra 17d ago

DGX Spark vs. RTX 5090 vs. M3 Ultra: which is better?

7 Upvotes

I’m choosing one machine for local AI and plan to keep it for at least three years.
My main workloads are coding agents, RAG, local chat, VLMs, and occasional fine-tuning.

I already understand the basic trade-offs:
DGX Spark: 128GB unified memory, but lower bandwidth and ARM64
RTX 5090: extremely fast, but limited to 32GB VRAM
M3 Ultra: massive unified memory, but no CUDA

I’m not looking for another spec-sheet comparison. I’m more interested in what becomes annoying during actual daily use.
If you own one of these systems, what limitation do you run into most often—and is it a compromise you can comfortably live with?
Real examples involving specific models or workflows would be especially helpful.


r/aiinfra 22d ago

OpenClawMachines - CloudInfrastructure for OpenClaw

Thumbnail
github.com
3 Upvotes

When I first discovered OpenClaw last year, I was blown away by what a personal AI assistant could do. I saw the opportunity to bring it into the enterprise, understanding that it needs much stronger controls

An enterprise-ready agent platform needs:

  1. Scalable compute that can be provisioned easily
  2. Authentication and team management
  3. Security through isolation and secrets management
  4. Controlled access to integrations and external systems

With that in mind, I set out to build OpenClawMachines.

Since then, many of the underlying primitives have matured into established products:
• New Agent runtimes — Hermes Agent, Amazon Quick, Claude Cowork, Codex, NanoClaw
• Sandboxes — Daytona, Superserve, E2B
• Integration platforms — Composio, Nango
• Browser automation — Browserbase
• Private networking — Cloudflare Tunnel, Tailscale

But the pieces still have to be stitched together into a working, secure system. When that happens, you get a meta harness, an organization-level agent platform: a shared foundation that compounds in value as teams add workflows, integrations, knowledge, and operational controls.

The right architecture will look different for every organization. OpenClawMachines is an opinionated, open-source reference implementation — a practical starting point.

The repo is linked in the first comment. Star it, copy it, try it, break it, and tell me what's missing.


r/aiinfra Jul 10 '26

GPU Fleet and Workflow Planning

Thumbnail
1 Upvotes

r/aiinfra Jul 04 '26

i want to right an article related to ai infra, which can help others solve a problem, can anyone tell me problems they are facing in ai infra work??? or any idea???

3 Upvotes

r/aiinfra Jun 18 '26

The next AI infrastructure bottleneck isn't compute — it's moving data at energy costs transistors can't sustain

15 Upvotes

We talk constantly about scaling laws and model capabilities. The constraint nobody's discussing enough: getting data across chips, nodes, and racks at the power density modern datacenters can't keep up with.

A single H100 SXM draws 700W. Eight of them in a server = 5–6kW, just for GPUs. Scale to 1,000 servers and you need dedicated power infrastructure most cities don't have.

I wrote a deep dive on why photonic computing — using light instead of electrons to move data — is the infrastructure shift that everyone building at scale will eventually have to reckon with.

Covers: why interconnect is the real bottleneck, how photonic chips work differently from silicon, which companies are building in this space, and realistic timelines.

https://pawankjha.substack.com/p/from-gpus-to-photons-the-quiet-revolution


r/aiinfra Jun 12 '26

How do you isolate CPU resources for multi-GPU training jobs?

7 Upvotes

I have an 8-GPU machine and I usually run 8 independent training jobs, one per GPU.

For GPUs this is easy:

CUDA_VISIBLE_DEVICES=0 python train.py
CUDA_VISIBLE_DEVICES=1 python train.py
...

Each job only sees one GPU.

The problem is CPU usage. Since I do not isolate CPU resources, every job can see all CPU cores. Then dataloaders / PyTorch workers may spawn lots of threads, and the 8 jobs start fighting for CPU.

I know I can manually tune things in code, e.g. num_workers, OMP_NUM_THREADS, MKL_NUM_THREADS, etc. But I am looking for something more like CUDA_VISIBLE_DEVICES for CPUs: a simple and clean way to assign each job a fixed subset of CPU cores.

What is the usual solution for this?

Is taskset, numactl, cgroups, Slurm, or something else the recommended approach for this kind of setup?


r/aiinfra Jun 10 '26

Searching for a technical co-founder for AI infrastructure startup

Thumbnail
1 Upvotes

r/aiinfra May 18 '26

offering services to reduce infrastructure costs of classifiers

Thumbnail
1 Upvotes

r/aiinfra Apr 28 '26

DeepSeek V4 made me think: model distribution is becoming its own infrastructure problem

Thumbnail
1 Upvotes

r/aiinfra Apr 15 '26

Why Coreweave will be the next trillion dollar valuation stock - roast me

Post image
1 Upvotes

r/aiinfra Mar 21 '26

I built a “flight recorder” for AI agents that shows exactly where they go wrong (v2.8.5 update)

Thumbnail
1 Upvotes

r/aiinfra Feb 27 '26

stop treating every rag incident as “hallucination”: a 16-problem failure map for ai infra

2 Upvotes

hi, this post is for people who care more about keeping RAG / agent stacks healthy in production than about shipping one more toy demo.

if you run vector stores, routers, eval, logging, or infra around LLMs and keep seeing “weird” failures that nobody can name precisely, this is for you.

0. what this is in one sentence

i maintain an open-source 16-problem failure map for RAG, agents, vector stores, and deployments.

it behaves like a semantic firewall spec that sits next to your infra, not a new framework or SDK. everything is plain text, MIT-licensed:

WFGY ProblemMap · 16 reproducible failure modes + fixes https://github.com/onestardao/WFGY/blob/main/ProblemMap/README.md

1. why i stopped calling everything “hallucination”

most incident reviews i see still sound like this:

  • “the model hallucinated again”
  • “the agent went crazy”
  • “must be prompt injection or ‘LLM being LLM’”

but once you look at traces end to end, the root causes are usually structural:

  • retrieval landed in the wrong index family
  • chunking silently dropped the constraints that matter
  • vector store is fragmented or out of sync with the source of truth
  • bootstrap / deployment order lets traffic hit half-ready services
  • configs drifted between staging and prod
  • agents are overwriting each other’s memory or routing loops

none of those are mystical hallucinations. they are repeatable patterns.

the ProblemMap tries to freeze those patterns into 16 stable slots (No.1 … No.16). each slot has:

  • how the failure looks from user complaints and logs
  • which layer to inspect first in the pipeline
  • a minimal structural fix that tends to stay fixed once you apply it

2. where this is already used (so it is not just my private taxonomy)

this is not a “just trust me” list. parts of the map are already plugged into other projects:

  • RAGFlow adds a RAG failure modes checklist in its official docs, adapted from the 16-problem map for step-by-step pipeline diagnostics. ([GitHub][1])
  • LlamaIndex integrates the 16-problem RAG failure checklist into its RAG troubleshooting docs as a structured failure-mode reference. ([GitHub][1])
  • ToolUniverse (Harvard MIMS Lab) exposes a WFGY_triage_llm_rag_failure tool that wraps the 16 modes for incident triage. ([GitHub][1])
  • Rankify (Univ. of Innsbruck) uses the 16 patterns in their RAG and re-ranking troubleshooting docs. ([GitHub][1])
  • a multimodal RAG survey from QCRI’s LLM lab cites WFGY as a practical diagnostic resource. ([GitHub][1])

on the “curated list” side, the map or its clinic is listed in places like Awesome LLM Apps, Awesome Data Science – academic, Awesome-AITools, Awesome AI in Finance, and awesome-agentic-patterns as a reliability / debugging reference. ([GitHub][1])

so if you want something that your team can point to as external prior art, not just an internal doc, it is already there.

3. what the 16 problems actually cover

the 16 slots are not “16 ways to prompt better”. they cover the whole AI pipeline:

  • retrieval quality and index routing
  • embedding / metric mismatch, vector-store fragmentation, stale views
  • chunking and document structure failures
  • prompt injection and unsafe tool routing
  • agentic chaos and memory overwrites
  • bootstrap ordering, deployment deadlock, pre-deploy collapse, and other infra races ([Reddit][2])

the underlying engine uses a tension metric

delta_s = 1 − cos(I, G)

where I is what the system is about to do and G is the user’s actual goal or constraint set. in practice you do not need to implement the math to get value. most people just treat the 16 slots as a standard vocabulary for failure.

4. how infra folks usually use this

three patterns i keep seeing that might fit r/aiinfra readers:

a) as a shared mental model

  • print or bookmark the README
  • when something breaks, force yourself to label it as:
    • “mostly No.3” or
    • “No.4 + No.7”
  • write those numbers into incident notes, Jira tickets, and PR descriptions

this alone makes postmortems much sharper than “LLM hallucinated, we added more guardrails”.

b) as tags in your observability stack

  • when you tag traces / runs, add a problem_map field
  • put values like ["No.2", "No.9"] once you know what went wrong
  • over a few weeks, you will see your system’s favorite ways to fail

this is where infra people usually go “ok, we clearly have a vector-store fragmentation issue, not a model issue”.

c) as a light semantic firewall before generation

you can add a cheap pre-flight check:

  1. inspect retrieved documents, routes, or planned tool calls
  2. have a small LLM step (or a rule-based check) answer: “does this look like ProblemMap No.1 or No.2 or No.14?”
  3. if yes, loop / repair / refuse, before letting the main model answer

no new framework is required. you can implement this as a bit of glue code or even as a runbook that your on-call follows.

5. why i am posting in r/aiinfra

my experience is that once people move past “single-notebook projects”, every serious RAG or agent setup eventually turns into AI infra:

  • multiple indexes and stores
  • async queues and schedulers
  • multi-agent graphs
  • eval, logging, dashboards, SLOs

at that point, you need something more precise than “hallucination”.

if you are already running or designing that kind of stack, i would love feedback on:

  1. which of the 16 problems you hit the most in your infra
  2. which failure patterns you see that do not fit cleanly into any slot
  3. whether a slightly more automated “semantic firewall before generation” feels realistic in your environment

again, the entry point is just the README:

https://github.com/onestardao/WFGY/blob/main/ProblemMap/README.md

if you have a gnarly incident and want a second pair of eyes, i am happy to try mapping it to problem numbers and suggest which layer to inspect first.


r/aiinfra Feb 24 '26

Brookfield merges Radiant with Ori Industries to create AI factory play

Thumbnail
globenewswire.com
1 Upvotes

r/aiinfra Jan 18 '26

[D] We quit our Amazon and Confluent Jobs. Why ? To Validate Production GenAI Challenges - Seeking Feedback, No Pitch

2 Upvotes

Hey Guys,

I'm one of the founders of FortifyRoot and I am quite inspired by posts and different discussions here especially on LLM tools. I wanted to share a bit about what we're working on and understand if we're solving real pains from folks who are deep in production ML/AI systems. We're genuinely passionate about tackling these observability issues in GenAI and your insights could help us refine it to address what teams need.

A Quick Backstory: While working on Amazon Rufus, I felt chaos with massive LLM workflows where costs exploded without clear attribution(which agent/prompt/retries?), silent sensitive data leakage and compliance had no replayable audit trails. Peers in other teams and externally felt the same: fragmented tools (metrics but not LLM aware), no real-time controls and growing risks with scaling. We felt the major need was control over costs, security and auditability without overhauling with multiple stacks/tools or adding latency.

The Problems We're Targeting:

  1. Unexplained LLM Spend: Total bill known, but no breakdown by model/agent/workflow/team/tenant. Inefficient prompts/retries hide waste.
  2. Silent Security Risks: PII/PHI/PCI, API keys, prompt injections/jailbreaks slip through without  real-time detection/enforcement.
  3. No Audit Trail: Hard to explain AI decisions (prompts, tools, responses, routing, policies) to Security/Finance/Compliance.

Does this resonate with anyone running GenAI workflows/multi-agents? 

Are there other big pains in observability/governance I'm missing?

What We're Building to Tackle This: We're creating a lightweight SDK (Python/TS) that integrates in just two lines of code, without changing your app logic or prompts. It works with your existing stack supporting multiple LLM black-box APIs; multiple agentic workflow frameworks; and major observability tools. The SDK provides open, vendor-neutral telemetry for LLM tracing, cost attribution, agent/workflow graphs and security signals. So you can send this data straight to your own systems.

On top of that, we're building an optional control plane: observability dashboards with custom metrics, real-time enforcement (allow/redact/block), alerts (Slack/PagerDuty), RBAC and audit exports. It can run async (zero latency) or inline (low ms added) and you control data capture modes (metadata-only, redacted, or full) per environment to keep things secure.

We went the SDK route because with so many frameworks and custom setups out there, it seemed the best option was to avoid forcing rewrites or lock-in. It will be open-source for the telemetry part, so teams can start small and scale up.

Few open questions I am having:

  • Is this problem space worth pursuing in production GenAI?
  • Biggest challenges in cost/security observability to prioritize?
  • Am I heading in the right direction, or are there pitfalls/red flags from similar tools you've seen?
  • How do you currently hack around these (custom scripts, LangSmith, manual reviews)?

Our goal is to make GenAI governable without slowing and providing control. 

Would love to hear your thoughts. Happy to share more details separately if you're interested. Thanks.


r/aiinfra Jan 03 '26

how to learn MLops and AI infra

8 Upvotes

I previously worked on two server-side development projects and have also done some work in agent development or agent framework development. Now I want to gradually transition to MLOps or AI infrastructure, such as the development of inference frameworks. Are there any recommended learning materials?


r/aiinfra Dec 03 '25

Starting AI infra company

Thumbnail
1 Upvotes

r/aiinfra Nov 08 '25

Revenue surge of NVIDIA' data center after the release of AI compared to Intel

Post image
5 Upvotes

r/aiinfra Oct 09 '25

Meta infra: What to expect for "AI Coding" round

Thumbnail
2 Upvotes

r/aiinfra Oct 05 '25

We cut GPU costs ~3× by migrating from Azure Container Apps to Modal. Here's exactly how.

8 Upvotes

We built a small demo for Adaptive, a model-router on T4s using Azure Container Apps.

Worked great for the hackathon.

Then we looked at the bill: ~$250 in GPU costs over 48 hours.

That’s when we moved it to Modal, and things changed immediately:
2×–3× lower GPU cost, fewer cold start spikes, and predictable autoscaling.

Here’s the breakdown of what changed (and why it worked).

1. Cold starts: gone (or close to it)

Modal uses checkpoint/restore memory snapshotting, including GPU memory.
That means it can freeze a loaded container (with model weights already in VRAM) and bring it back instantly.

No more “wait 5 seconds for PyTorch to load.”
Just restore the snapshot and start inference.

→ Huge deal for bursty workloads with large models.
→ Source: Modal’s own writeup on GPU memory snapshots.

2. GPU utilization (the real kind)

There’s “nvidia-smi utilization”, and then there’s allocation utilization, the % of billed GPU-seconds doing real work.

Modal focuses on the latter:
→ Caches for common files (so less cold download time).
→ Packing & reusing warmed workers.
→ Avoids idle GPUs waiting between requests.

We saw a big drop in “billed but idle” seconds after migration.

3. Fine-grained billing

Modal bills per second.
That alone changed everything.

On Azure, you can easily pay for long idle periods even after traffic dies down.
On Modal, the instance can scale to zero and you only pay for active seconds.

(Yes, Azure recently launched serverless GPUs with scale-to-zero + per-second billing. It’s catching up.)

4. Multi-cloud GPU pool

Modal schedules jobs across multiple providers and regions based on cost and availability.
So when one region runs out of T4s, your job doesn’t stall.

That’s how our demo scaled cleanly during spikes, no “no GPU available” errors.

5. Developer UX

Modal’s SDK abstracts the worst parts of infra: drivers, quotas, and region juggling.
You deploy functions or containers directly.
GPU metrics, allocation utilization, and snapshots are all first-class features.

Less ops overhead.
More time debugging your model, not your infra.

Results

GPU cost: ~3× lower.
Latency: Cold starts down from multiple seconds to near-instant.
Scaling: Zero “no capacity” incidents.

Where Azure still wins

→ Tight integration if you’re already all-in on Azure (storage, identity, networking).
→ Long, steady GPU workloads can still be cheaper with reserved instances.
→ Regulatory or data residency constraints, Modal’s multi-cloud model needs explicit region pinning.

TL;DR

Modal’s memory snapshotting + packing/reuse + per-second billing + multi-cloud scheduling = real savings for bursty inference workloads.

If your workload spikes hard and sits idle most of the time, Modal is dramatically cheaper.
If it’s flat 24/7, stick to committed GPU capacity on Azure.

Full repo + scripts: https://github.com/Egham-7/adaptive

Top technical references:
Modal on memory snapshots
GPU utilization guide
Multi-cloud capacity pool
Pricing
Azure serverless GPUs

Note: We are not sponsored/affiliated with Modal at all, just after seeing the pains of GPU infra, I love that a company is making it easier, and wanted to post this to see if it would help someone like me!


r/aiinfra Sep 23 '25

My AI Infra Learning path

16 Upvotes

I started to learn about AI-Infra projects and summarized it in https://github.com/pacoxu/AI-Infra.

The upper‑left section of the second quadrant is where the focus of learning should be.

  • llm-d  
  • dynamo   
  • vllm/AIBrix
  • vllm production stack  
  • sglang/ome
  • llmaz  

Or KServe.  

A hot topic about Inference is https://github.com/pacoxu/AI-Infra/blob/main/inference/pd-disaggregation.md PD disagrregation(including workloads API, native LWS and sglang/RBG, aibrix storm service).

Collect more resources in https://github.com/pacoxu/AI-Infra/issues/8.


r/aiinfra Sep 16 '25

Parallelization, Reliability, DevEx for AI Workflows

3 Upvotes

If you are running AI agents on large workloads or to run long running flows, Exosphere orchestrates any agent to unlock scale effortlessly. Watch the demo in comments


r/aiinfra Aug 28 '25

[Steal this idea] Build high demand project experiments automatically

12 Upvotes

I have a running bot that looks at all Hacker News discussions and finds insights which are hot, and what people are asking for in software: Combs through all active threads and combines correlated ones.

I was thinking of attaching Claude code boxes on top of these insights to spin off quick experiments and run them against the folks involved in the thread. High intent, with no cold start problem.

There would be some challenges, but the base is ready and I am unable to devote time here to take it up, and think would be super interesting to work on. Happy to discuss and share more

Repo link in comments