CUDA cannot handle linear layers with zero input dimensions. When num_static_features=0 or num_known_features=0, the VariableSelectionNetwork constructor creates linear(0, 0, ...) which triggers CUDA_ERROR_INVALID_VALUE on GPU. - Make static/future VSN and GRN encoder fields Option<T> - Skip layer creation when feature count is 0 - Forward pass skips absent feature paths gracefully - Trainable adapter creates empty placeholder tensors - Add cilium CNI toleration to training job template and runner All 103 TFT tests pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
84 lines
3.0 KiB
YAML
84 lines
3.0 KiB
YAML
# GitLab Runner — Kubernetes executor targeting ci-build pool (L4)
|
|
# Runner manager pod lives on gitlab node pool
|
|
# Build pods spawn on ci-build pool (L4-1-24G, scale-to-zero — €0.75/hr vs H100 €3.50+/hr)
|
|
|
|
gitlabUrl: http://gitlab-webservice-default.foxhunt.svc.cluster.local:8181
|
|
# runnerToken set via --set at install time
|
|
|
|
replicas: 1
|
|
|
|
nodeSelector:
|
|
k8s.scaleway.com/pool-name: gitlab
|
|
tolerations:
|
|
- key: gitlab
|
|
operator: Equal
|
|
value: "true"
|
|
effect: NoSchedule
|
|
|
|
runners:
|
|
# Override clone URL to internal service (pods can't reach Tailscale IPs)
|
|
cloneUrl: http://gitlab-webservice-default.foxhunt.svc.cluster.local:8181
|
|
config: |
|
|
[[runners]]
|
|
clone_url = "http://gitlab-webservice-default.foxhunt.svc.cluster.local:8181"
|
|
tag_list = ["kapsule", "rust", "docker", "gpu"]
|
|
[runners.kubernetes]
|
|
namespace = "foxhunt"
|
|
image = "rust:1.89-slim"
|
|
privileged = false
|
|
# L4 scale-to-zero needs ~3-5 min to provision; default 180s times out
|
|
poll_timeout = 600
|
|
# Resource limits for build pods (L4 node: 12 vCPU, 45.5GB)
|
|
cpu_request = "4000m"
|
|
cpu_limit = "10000m"
|
|
memory_request = "16Gi"
|
|
memory_limit = "38Gi"
|
|
helper_cpu_request = "100m"
|
|
helper_cpu_limit = "500m"
|
|
helper_memory_request = "128Mi"
|
|
helper_memory_limit = "512Mi"
|
|
image_pull_secrets = ["scw-registry", "gitlab-registry"]
|
|
# Use nvidia RuntimeClass — injects GPU drivers + /dev/nvidia* via nvidia-container-runtime
|
|
runtime_class_name = "nvidia"
|
|
# Sub-tables must come AFTER all scalar values (TOML rule)
|
|
[runners.kubernetes.node_selector]
|
|
"k8s.scaleway.com/pool-name" = "ci-build"
|
|
[runners.kubernetes.node_tolerations]
|
|
"nvidia.com/gpu" = "NoSchedule"
|
|
# Cilium CNI agent takes ~30s to initialize on fresh scale-from-zero nodes
|
|
"node.cilium.io/agent-not-ready" = "NoSchedule"
|
|
[runners.kubernetes.pod_labels]
|
|
"app.kubernetes.io/part-of" = "foxhunt-ci"
|
|
# Mount training data PVC (Databento futures .dbn.zst files)
|
|
# Path must NOT be under /data — Redis image's WORKDIR is /data and entrypoint chowns it
|
|
[[runners.kubernetes.volumes.pvc]]
|
|
name = "training-data-pvc"
|
|
mount_path = "/mnt/training-data"
|
|
read_only = true
|
|
# sccache on local block storage — faster than S3 for cache hits
|
|
[[runners.kubernetes.volumes.pvc]]
|
|
name = "sccache-pvc"
|
|
mount_path = "/mnt/sccache"
|
|
read_only = false
|
|
|
|
# Runner tags for job matching
|
|
tags: "kapsule,rust,docker,gpu"
|
|
|
|
# Concurrency
|
|
concurrent: 4
|
|
|
|
# RBAC for runner to spawn pods
|
|
rbac:
|
|
create: true
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["pods", "pods/exec", "pods/log", "secrets", "configmaps"]
|
|
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
|
- apiGroups: [""]
|
|
resources: ["pods/attach"]
|
|
verbs: ["create", "get"]
|
|
|
|
serviceAccount:
|
|
create: true
|
|
name: gitlab-runner
|