Running a Production ML Pipeline on AMD/ROCm — DeFi Signal Infrastructure

Hey — solo founder building ML signal infrastructure for DeFi, running entirely on AMD/ROCm.

Our stack: AMD RX 6900 XT on a homeserver running ensemble ML training and inference — 45 models, 656K candle dataset, regime detection, confidence scoring, and autonomous on-chain execution. All on ROCm with PyTorch. No CUDA, no cloud dependency for training.

The engine drives a live Morpho lending vault on Base L2, processing on-chain and off-chain signals to autonomously allocate capital across 13 markets. Production ML on AMD hardware, not a side project.

For anyone wondering if you can build serious ML infrastructure on AMD — you can. It took some fighting with ROCm early on but the stack is stable and running 24/7 now.

Looking forward to connecting with others pushing AMD hardware in production.

1 Like

That’s really impressive. It is great to see a 6900 XT powering a serious DeFi setup 24/7.
ROCm 7.2.0 was just released, which is focused on making PyTorch work even better on Radeon cards like yours. Since you’re running so many models, you might want to check out optimization guides to see if you can squeeze out even more performance.
I’d also love to hear more about the specific “fights” you had with the software early on. Hearing from people actually running production workloads helps to fix the right things.
Welcome to the community!

1 Like

Thanks for the warm welcome — and the ROCm 7.2 pointer saved me more than you know.

Upgraded last night and the difference is immediate. The coil whine that’s been haunting my 6900 XT under 24/7 load is completely gone. Whatever changed in the thermal/power management between 7.0 and 7.2 — it’s working. I was running a GPU quiet hours schedule (no training between 9pm-9am) just to be able to sleep next to this thing. That’s gone now. Effectively doubled my available compute overnight.

PyTorch compatibility is smoother too. Running parallel model training and continuous inference on the same card, and cycle times feel more consistent since the upgrade.

On the early fights — happy to share. The short version: getting ROCm stable on RDNA 2 in early 2026 was trial and error. HIP kernel compilation failures, PyTorch ops that silently fell back to CPU, memory allocation issues under sustained load. Most of it came down to version mismatches between ROCm, PyTorch, and the kernel driver. Once I locked in a working combination it’s been rock solid — but finding that combination took some persistence.

If there’s a better place to document those early pain points in detail (GitHub issues, a feedback form, etc.), point me there and I’ll write it up properly. Running a real 24/7 production workload on consumer RDNA 2 has surfaced edge cases that benchmarks wouldn’t catch.

Thanks again for the guidance. This community is already making the stack better.

I’m so glad ROCm 7.2 helped fix the noise and let you double your work time.

1 Like

We’re running Nova’s intelligence stack on a dedicated Intel-role Linux node inside WSL, backed by an AMD ROCm-capable GPU path and a production-gated inference policy. This is not “CPU if things get hard” inference. The production contract is: accelerated backend or fail fast.

Hardware / Node

  • Host: Intel-role machine, Windows side dimallm-1, Linux/WSL side nv5070 / nv5070-1
  • Current WSL Tailscale peer: 100.127.47.23
  • GPU: AMD Radeon 8060S on ASUS AI MAX 395+
  • RAM class: 128GB unified memory machine
  • OS target: Ubuntu 22.04+ under WSL
  • Model storage: /home/dima/models_intel on local NVMe, deliberately moved off USB to avoid model I/O risk
  • Market/training data storage: Samsung T7 / TradeBank-style external SSD path through /home/dima/sigint-data

Public Internal Services

Service Port Purpose
Nova Deep Inference 8070 FastAPI decision service called by Nova before entries/exits
Signal Intelligence 9101 GPU signal generation, scoring, publishing, training worker health
Data Warehouse 9102 Training/outcome warehouse and feature data source

Active Model

  • Version: 20260608_081039
  • Format: ONNX
  • Schema: canonical_v1
  • Feature count: 22
  • ONNX SHA256: a20f81282cbd43c3c5da7279410994ab7bc5c3cbc601acc730289c323bff28a0
  • Training source: Nova retrainer / warehouse pipeline
  • Sample count in manifest: 1,606,005
  • Architecture: 64 → 32 → 16
  • Validation accuracy in manifest: 0.980246
  • Calibration: isotonic regression
  • Calibration version: canonical_v1_cal_v1_20260608_081039

Inference Backend Policy

  • Production requires explicit accelerated inference.
  • AMD node target backends: torch_rocm or onnx_rocm
  • NVIDIA node target backend: tensorrt
  • CPU ONNX is development/test only unless explicitly allowed in an emergency.
  • Heuristic scoring is not treated as a production safety net.
  • Health exposes backend state including:
    • inference_backend_requested
    • inference_backend_active
    • strict_gpu_required
    • torch_rocm_available
    • torch_rocm_loaded
    • torch_rocm_device
    • onnx_rocm_available
    • cpu_fallback_enabled

Canonical 22-Feature Vector
Every model path speaks the same feature language:

rsi_14
rsi_21
ema_20
ema_50
ema_200
adx_14
atr_14
atr_pct
bb_pos_20
macd_line
macd_signal
macd_hist
vol_ratio_20
stoch_k
stoch_d
realized_vol
trend_str
rsi_velocity
adx_acceleration
bb_velocity
choppiness_14
realized_vol_pctile

That feature contract is enforced across Nova, Signal Intelligence, warehouse training, ONNX export, normalization, calibration, and model promotion.

Deep Inference Service
The dedicated deep-inference service is a FastAPI server on 8070 with:

GET /health
GET /status
POST /infer/entry
POST /infer/exit

Entry inference combines:

  • Nova ONNX confidence
  • Signal Intelligence confidence
  • chart pattern detection
  • technical features
  • SPY relative-strength context
  • intraday bars
  • session context
  • trade style hint
  • news sentiment / FinBERT where available

It returns:

  • action: buy, sell, or hold
  • confidence
  • position percentage
  • stop percentage
  • target percentage
  • risk/reward
  • detected patterns
  • sentiment score and label
  • market regime
  • signal alignment
  • reasoning
  • latency in ms
  • model version

Signal Synthesizer
The decision layer is not a single dumb threshold. It’s a weighted consensus engine:

Base weights:

ONNX: 30%
SigInt: 25%
Pattern: 20%
Sentiment: 15%
Momentum: 10%

Session overrides exist for:

  • opening_scalp
  • power_scalp
  • dip_buy
  • day_trade
  • swing
  • extended
  • close_only

Example: opening scalp shifts weight toward pattern and momentum, while swing gives more room to ONNX and sentiment.

Thresholds are session-aware:

opening_scalp: 0.52
power_scalp: 0.52
dip_buy: 0.58
day_trade: 0.55
swing: 0.62
extended: 0.68
close_only: 0.90

Signal Intelligence Pipeline
Signal Intelligence scans equities, builds feature vectors, scores candidates, dedupes, and publishes HMAC-signed signals to Nova.

Core components:

  • SignalPipeline
  • MomentumBreakoutDetector
  • SaaS10EngineStage
  • SignalScorer
  • AnomalyDetector
  • TrainingWorker
  • NovaRetrainer
  • NovaPublisher
  • DiskHealthMonitor

Signal publishing includes:

  • signal_id
  • symbol
  • side
  • confidence
  • ML score
  • calibrated probability
  • 22 canonical features
  • anomaly scores
  • strategy metadata

Duplicate suppression:

  • Key: (symbol, side, strategy_family)
  • TTL: 1800s, or 30 minutes

Training / Promotion Loop
The retraining system:

  1. Pulls labeled outcomes from the warehouse.
  2. Builds flat vectors in canonical feature order.
  3. Filters malformed/all-zero rows.
  4. Splits train/validation.
  5. Normalizes with clipped z-score normalization.
  6. Trains MLP classifier.
  7. Fits isotonic calibration.
  8. Exports ONNX.
  9. Generates manifest, calibration, normalization metadata.
  10. Validates schema, feature count, checksum, model health.
  11. Stages/pushes/promotes with rollback protection.

Operational Flex
The pipeline has a split-brain architecture in the good way:

  • Nova VPS executes trading and risk.
  • Intel/WSL GPU node does heavy inference/training.
  • TradeBank/USB stores market data.
  • NVMe stores models for low-risk, low-latency model load.
  • Tailscale links Nova to Intel without needing Windows-side development services.
  • /admin/tickets and ControlPlane now see model state, ticket repair state, patch artifacts, and automation evidence
1 Like

testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest