Research-Stack/4-Infrastructure/kube/raycluster.yaml
Brandon Schneider 25f0ec2b53 feat: QR spatial hash integration — 2.18x speedup
Cache-friendly Householder QR via Morton-code spatial hash:
- When adding column, only apply reflections to 3x3x3 neighborhood
- Reduces per-update from O(n) to O(27) per column
- 50x50 matrix, 500 updates: 2.18x faster than naive

Naive: 0.124ms/update
Spatial: 0.057ms/update
Speedup: 2.18x

Key insight: Morton code ordering means nearby columns in 3D
are nearby in memory → cache-friendly access → fewer misses.

This completes all 4 next steps:
1.  O_AMMR_QRNode wired into BraidDiatFrame (already done)
2.  O_AMMR_valid strengthened with residual bounds (NS_MD.lean)
3.  Hash benchmark: Morton wins (86.5% cache hit rate)
4.  QR spatial hash: 2.18x speedup
2026-05-30 15:30:06 -05:00

72 lines
1.6 KiB
YAML

apiVersion: ray.io/v1
kind: RayCluster
metadata:
name: raycluster
namespace: ray-system
spec:
rayVersion: "2.40.0"
headGroupSpec:
serviceType: ClusterIP
rayStartParams:
num-cpus: "0"
dashboard: "false"
template:
spec:
containers:
- name: ray-head
image: rayproject/ray:2.40.0
ports:
- containerPort: 6379
name: gcs
- containerPort: 8265
name: dashboard
- containerPort: 10001
name: client
- containerPort: 8000
name: serve
resources:
requests:
cpu: "2"
memory: "4Gi"
limits:
cpu: "4"
memory: "8Gi"
volumeMounts:
- name: dshm
mountPath: /dev/shm
volumes:
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 2Gi
nodeSelector:
kubernetes.io/hostname: steamdeck
workerGroupSpecs:
- replicas: 1
minReplicas: 0
maxReplicas: 2
groupName: workers
rayStartParams:
num-cpus: "2"
template:
spec:
containers:
- name: ray-worker
image: rayproject/ray:2.40.0
resources:
requests:
cpu: "2"
memory: "4Gi"
limits:
cpu: "4"
memory: "8Gi"
volumeMounts:
- name: dshm
mountPath: /dev/shm
volumes:
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 2Gi
nodeSelector:
kubernetes.io/hostname: steamdeck