Spaces:
Paused
Paused
Commit History
-
feat: add auto_complete parameter for token generationβ
gary-boon +1: Claude Opus 4.5- Add auto_complete parameter to streaming and non-streaming endpoints - Cap max_tokens at 128 when auto_complete is enabled - Existing EOS early-stop logic handles completion detection π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>bb689ce -
fix: add QKV extraction support for Mistral/Devstral architectureβ
gary-boon +1: Claude Opus 4.5- Add make_separate_proj_hook for models with separate q_proj, k_proj, v_proj - Handle GQA (Grouped Query Attention) by expanding K/V heads to match Q heads - Support both CodeGen (combined qkv_proj) and Mistral (separate projections) - Update both streaming and non-streaming endpoints π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>d1d37a8 -
feat: implement lazy-loading for attention matricesβ
gary-boon +1: Claude Opus 4.5- Add MatrixCache class with 60-min TTL for storing attention/QKV matrices - Modify response builder to cache matrices instead of including in payload - Add new endpoint /analyze/research/attention/matrix for on-demand retrieval - Include requestId in responses for cache lookup - Reduces initial response from 400MB+ to ~500KB-1MB π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>929ba88
-
Add avg_entropy calculation for attention headsβ
gary-boon +1: Claude Opus 4.5- Compute normalized attention entropy averaged over query positions - Normalize by log(k_i) where k_i = number of keys each position can attend to - Average over latter half of positions for more stable signal - Return both entropy (last-token) and avg_entropy fields for each head π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>66a46b6
-
Revert QKV visualization fixes - need better approach for data streamingβ
gary-boon +1: Claude Opus 4.5Reverts commits: - a79cb83 Add safety checks for missing QKV keys - decb5ab Limit QKV matrices to top 5 heads per layer - 9056859 Fix QKV matrix extraction for Mistral/Devstral architecture - 4ec134b Fix QKV visualization for Mistral/Devstral architecture The QKV fixes caused response sizes to explode, causing 504 timeouts. Need to implement a better approach (lazy loading) before re-enabling. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>d0b7e29 -
Add safety checks for missing QKV keysβ
gary-boon +1: Claude Opus 4.5If a hook fails silently, the layer's qkv_captures dict might exist but be missing the 'q', 'k', or 'v' keys. This would cause a KeyError. Now we check for each key's existence before accessing it. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>a79cb83 -
Limit QKV matrices to top 5 heads per layer to reduce response sizeβ
gary-boon +1: Claude Opus 4.5The QKV visualization fix caused response sizes to explode because we were sending Q/K/V matrices for all 32 heads Γ 40 layers = 1280 sets of matrices. For a 50 token sequence with head_dim=128, that's ~25 million floats per token step, causing 504 Gateway Timeouts in streaming. Now only the top 5 heads (by attention weight) per layer retain their QKV matrices. This reduces the QKV data by ~85% while still providing meaningful visualization data for the most important attention patterns. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>decb5ab -
Fix QKV matrix extraction for Mistral/Devstral architectureβ
gary-boon +1: Claude Opus 4.5- Use explicit head_dim from model config (Mistral uses 128, not hidden_size/num_heads=160) - Handle both tuple and tensor outputs from projection hooks - Properly reshape Q/K/V tensors to [seq_len, num_heads, head_dim] - Support GQA by expanding K/V heads (8) to match Q heads (32) - Add warning logs for debugging hook failures This fixes the "too many indices for tensor of dimension 2" and shape mismatch errors when extracting QKV matrices from Devstral. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>9056859 -
Fix QKV visualization for Mistral/Devstral architectureβ
gary-boon +1: Claude Opus 4.5- Add separate Q, K, V hook makers for Mistral-style architectures that use separate projections (q_proj, k_proj, v_proj) - Update layer iteration to use adapter's _get_layers() method for architecture-agnostic layer access - Maintain backwards compatibility with CodeGen's combined QKV projection - Apply same fix to both regular and streaming endpoints This fixes the QKV visualization which was silently failing for Devstral because the hook registration only supported CodeGen's transformer.h structure. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>4ec134b
-
Add future considerations doc for response size optimizationβ
gary-boon +1: Claude Opus 4.5Document the scalability challenge with research attention analysis: - 8 tokens currently produces ~357MB response - Full coding task (50+ tokens) could be 2-5GB+ - Outlines potential solutions: binary format, selective detail, streaming, compression, server-side analysis This is tracked for future work - current implementation prioritizes completeness for PhD research. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3e67ea2 -
Fix: Import time module at top level for SSE eventsβ
gary-boon +1: Claude Opus 4.5The sse_event() helper function uses time.time() but time was only imported inside the event_generator function, causing NameError. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>15a862b -
Add SSE streaming endpoint for real-time analysis progressβ
gary-boon +1: Claude Opus 4.5Add /analyze/research/attention/stream endpoint that streams progress events during attention analysis via Server-Sent Events (SSE). Progress events are emitted at each stage: - tokenizing: After prompt tokenization, with token count - generating: Per-token, with step index and total steps - extracting: Per-layer (on last token), with layer/head counts - serializing: During response building, with size estimate - complete: When analysis finishes, with timing and size metadata - result: Final payload with complete analysis data Each event includes: - type, stage, totalStages, progress, stageProgress, detail - metadata object with stage-specific info (counts, sizes, timing) Benefits: - Frontend gets real progress updates instead of fake animation - Users see exactly what's happening: "Processing layer 15/40" - Response size displayed during serialization - No more "stuck at 95%" - progress reflects actual work π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authorβ¦172a186 -
feat: Include token metadata in analysis responseβ
gary-boon +1: Claude Opus 4.5Extend promptTokens and generatedTokens with full metadata: - bpe_pieces: BPE breakdown of each token - is_special: Whether token is a special token (eos/bos/pad/unk) - is_multi_split: Whether token is part of a multi-split identifier - num_pieces: Number of BPE pieces This eliminates the need for per-token /token/metadata API calls, reducing backend requests and enabling instant hover tooltips. Also removes debug logging from /token/metadata endpoint. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ee0f6c9 -
feat: Implement tier-based model filtering by device typeβ
gary-boon +1: Claude Opus 4.5Add min_device field to model configs to specify minimum hardware requirement: - CodeGen 350M: min_device="cpu" (available to all users) - Code Llama 7B: min_device="gpu" (GPU users only) - Devstral Small 24B: min_device="gpu" (GPU users only) Update /models endpoint to filter models based on backend hardware: - GPU backends return all 3 models - CPU backends only return CodeGen 350M This ensures users only see models their backend can actually serve, preventing confusion and failed requests. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>6bf9f5c -
Fix: Add attn_implementation="eager" to model switch functionβ
gary-boon +1: Claude Opus 4.5When switching models via /models/switch endpoint, the model was being loaded without attn_implementation="eager", causing Devstral/Mistral models to return None for attention weights. This broke the Research Attention Analyzer with error: "TypeError: object of type 'NoneType' has no len()" Added trust_remote_code=True and attn_implementation="eager" to match the initial model loading configuration. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>f94a7ae
-
Add Phase 5: Performance optimizations to phased planβ
gary-boon +1: Claude Opus 4.5Document future performance improvements: - Lazy loading attention data (recommended approach) - Server-Sent Events for progress streaming - Client-side progress estimation π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>383a328 -
Add tokenSections boundaries and update system promptβ
gary-boon +1: Claude Opus 4.5- Return tokenSections in research endpoint response with boundaries for system prompt, user prompt, and output sections - Estimate system prompt boundary for Devstral using MistralTokenizer - Update default system prompt to handle both code completion and instruction-style prompts π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>c6f4cc5 -
Fix: Handle MistralCommonTokenizer pad_token setterβ
gary-boon +1: Claude Opus 4.5MistralCommonTokenizer (used by Devstral) doesn't allow setting pad_token property. Wrap in try/except to handle this gracefully. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>e20ccaf -
Integrate mistral-common for correct Devstral tokenizationβ
gary-boon +1: Claude Opus 4.5Root cause: Devstral's Tekken tokenizer is incompatible with HuggingFace's standard tokenization. When [INST]/[/INST] are formatted as text and tokenized with HF, the model receives corrupted tokens -> garbage output. Solution: - Add mistral-common>=1.5.0 dependency - Create MistralTokenizerWrapper using MistralTokenizer.from_hf_hub() - Use encode_chat_completion() for correct Tekken token encoding - Relax numpy/pydantic version constraints for compatibility The mistral-common library produces correct token sequences by encoding chat messages directly to token IDs, bypassing text-based formatting. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ed06dcb -
Remove mistral_common to fix dependency conflictβ
gary-boon +1: Claude Opus 4.5- Remove mistral_common from requirements (conflicts with numpy/pydantic) - Simplify prompt_formatter to use manual Mistral format - Format: [INST] {system}\n\n{user} [/INST] (no <s>, tokenizer adds BOS) - Keep recommended_temperature=0.15 for Devstral π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3d9d9ee -
Use mistral_common for proper Devstral prompt formattingβ
gary-boon +1: Claude Opus 4.5- Add mistral_common>=1.5.0 dependency - Update prompt_formatter to use MistralTokenizer for Devstral - Add recommended_temperature to model configs (0.15 for Devstral) - Remove hardcoded <s> from manual format (tokenizer adds BOS) The mistral_common library provides the correct chat template encoding that Devstral expects, which should fix the garbage token output. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3e80769 -
Add system prompt support for instruction-tuned modelsβ
gary-boon +1: Claude Opus 4.5- Add prompt_style and system_prompt fields to ModelConfig - Create prompt_formatter.py service for unified prompt handling - Update research endpoint to use formatter with proper system prompts - Devstral now receives proper system + user message format This fixes the garbage token output from Devstral by properly formatting prompts for instruction-tuned models. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>2860768 -
fix: Simpler prompt format and temperature=0 for Devstralβ
gary-boon +1: Claude Opus 4.5- Remove newlines from instruction (they become <SPECIAL_*> tokens) - Add explicit <s> BOS token to manual format - Use temperature=0 for fully deterministic output - Clearer instruction: "Continue this Python code:" π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>76020ee -
fix: Sanitize JSON response for NaN/Inf float valuesβ
gary-boon +1: Claude Opus 4.5Add sanitize_for_json() helper that recursively traverses response and replaces NaN/Infinity values with null. Fixes JSON serialization errors when attention/entropy calculations produce invalid floats. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>99f6209 -
fix: Check chat_template is set before using apply_chat_templateβ
gary-boon +1: Claude Opus 4.5The tokenizer has the apply_chat_template method but no template configured. Now we check tokenizer.chat_template is not None before attempting to use it, falling back to manual [INST] format. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>474927d -
fix: Add chat template support for Devstral instruct modelβ
gary-boon +1: Claude Opus 4.5- Add uses_chat_template field to model configs - Apply tokenizer.apply_chat_template() for instruct models - Fallback to manual [INST] format if needed - Lower temperature to 0.15 for instruct models (better code output) Fixes garbage token generation when using Devstral without proper instruction formatting. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>8d85da8
-
fix: Convert bfloat16 to float32 for numpy compatibilityβ
gary-boon +1: Claude Opus 4.5NumPy doesn't support bfloat16 directly. Add .float() conversion before .numpy() calls in attention/activation extraction. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>cb6f39c -
fix: Use eager attention for output_attentions supportβ
gary-boon +1: Claude Opus 4.5Devstral defaults to SDPA (flash attention) which doesn't support output_attentions=True. Force eager attention to enable capturing attention weights for visualization. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>5333b21 -
fix: Skip heavy ML deps in CI security checksβ
gary-boon +1: Claude Opus 4.5Security scanning tools (Snyk, Bandit, Safety) don't need torch/ transformers installed - they do static analysis of code and requirements.txt. Installing torch>=2.3 with CUDA deps was exhausting CI disk space (~3GB+). π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>ba27c0c -
fix: Update torch to 2.3+ for transformers compatibilityβ
gary-boon +1: Claude Opus 4.5transformers 4.44+ requires torch.utils._pytree.register_pytree_node which was added in torch 2.3.0. Old torch 2.1.0 only had the underscore-prefixed _register_pytree_node. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1b73605 -
fix: Update transformers for Devstral supportβ
gary-boon +1: Claude Opus 4.5Devstral-Small requires transformers>=4.44 for proper Mistral architecture support. Old version (4.36.2) caused shape mismatch errors during model loading. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>b788304 -
docs: Mark GPU HF Space Devstral deployment completeβ
gary-boon +1: Claude Opus 4.5- A100 (80GB VRAM) configured - DEFAULT_MODEL=devstral-small set - Phase 2c fully complete π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>65c6e2e -
docs: Update phased plan with Phase 2/2b/2c completion statusβ
gary-boon +1: Claude Opus 4.5- Mark Phase 2 (Devstral backend support) as COMPLETE - Mark Phase 2b (Frontend dynamic layers) as COMPLETE - Mark Phase 2c (API route conversion) as COMPLETE (partial) - Note Spark toggle deferred until PyTorch GB10 support - Update tag references π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>688efad -
Add vocabSize to modelInfo responseβ
gary-boon +1: Claude Opus 4.5Frontend needs vocab size to display dynamically instead of hardcoded "51,200 tokens". Added vocabSize to the modelInfo object in the research attention analysis response. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>499afba -
Update .env.spark.example: TORCH_DTYPE now auto-detectedβ
gary-boon +1: Claude Opus 4.5TORCH_DTYPE is automatically set from model config: - codegen-350m β fp16 - devstral-small β bf16 Only uncomment to override the default. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>543454f -
Add recommended_dtype to model configsβ
gary-boon +1: Claude Opus 4.5Each model now specifies its recommended dtype: - codegen-350m: fp16 - code-llama-7b: fp16 - devstral-small: bf16 (required for Mistral models) Model loader now uses recommended_dtype from config when TORCH_DTYPE env var is not explicitly set. This ensures Devstral automatically loads with bf16 without requiring manual configuration. Priority: TORCH_DTYPE env > model config > device default π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>62525b2 -
Phase 2: Add Devstral backend supportβ
gary-boon +1: Claude Opus 4.5Add support for Mistral-based models (Devstral) with: - MistralAdapter in model_adapter.py for Mistral architecture - devstral-small config (40 layers, 32 Q heads, 8 KV heads, 131K vocab) - Percentage-based layer classification (works for any layer count) - Environment variable support: - DEFAULT_MODEL: which model to load (default: codegen-350m) - TORCH_DTYPE: bf16/fp16/fp32 (default: auto based on device) - MAX_CONTEXT: context length limit (default: 8192) - BATCH_SIZE: batch size (default: 1) - GET /models endpoint: list available models with hardware availability - GET /models/current endpoint: return currently loaded model info Devstral requires TORCH_DTYPE=bf16 when deployed. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>9080f28 -
Update plan: Phase 1 paused due to GB10 GPU supportβ
gary-boon +1: Claude Opus 4.5Document the blocker with DGX Spark's GB10 GPU (sm_121 compute capability) not being supported by current PyTorch releases. - Mark Phase 0 and 0.5 as complete - Mark Phase 1 as paused (not blocked permanently) - Document what we tried and what we learned - Add clear restart instructions for when PyTorch 2.9.x adds sm_121 - List infrastructure already in place on Spark The Spark deployment makes no sense on CPU when Mac Studio and HuggingFace Spaces are available. Wait for official GPU support. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>e694533 -
Add DEVICE env var to force CPU mode on DGX Sparkβ
gary-boon +1: Claude Opus 4.5GB10 GPU (sm_121 compute capability) is not yet supported by PyTorch/NGC containers. This adds a DEVICE environment variable override to force CPU mode until GPU support is available. - Add os import to model_service.py - Check DEVICE env var before auto-detecting device - Support DEVICE=cpu or DEVICE=cuda to override detection - Default .env.spark.example to DEVICE=cpu for Spark π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>5f122aa -
Use NGC PyTorch 24.08 for Python 3.10 compatibilityβ
gary-boon +1: Claude Opus 4.524.11 uses Python 3.12 which breaks older packages. 24.08 has Python 3.10 which works with our requirements.txt π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>a2875a2 -
Use NVIDIA NGC PyTorch container for GB10 supportβ
gary-boon +1: Claude Opus 4.5NGC containers are optimized for latest NVIDIA hardware including GB10. PyTorch comes pre-installed with proper CUDA/GPU support. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>a4cfbff -
Try PyTorch nightly for GB10/sm_121 GPU supportβ
gary-boon +1: Claude Opus 4.5The NVIDIA GB10 (Grace Blackwell) requires sm_121 compute capability which isn't in stable PyTorch yet. Nightly may have it. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>a009a49 -
Make zarr/numcodecs imports optional for ARM64 compatibilityβ
gary-boon +1: Claude Opus 4.5- Use try/except for zarr imports - Add ZARR_AVAILABLE flag - Skip storage operations gracefully when zarr not available - Core model inference still works without tensor caching π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>6435a75 -
Skip zarr/numcodecs in Spark build (ARM64 incompatible)β
gary-boon +1: Claude Opus 4.5These are for tensor caching, not core inference. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>d129e37 -
Fix numcodecs ARM64 compatibility in Dockerfile.sparkβ
gary-boon +1: Claude Opus 4.5- Skip torch from requirements (already installed with CUDA) - Upgrade numcodecs to >=0.13.0 (ARM64 compatible) π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>772fc80 -
Fix Dockerfile.spark for CUDA 13.0 compatibilityβ
gary-boon +1: Claude Opus 4.5- Use nvidia/cuda:12.4.0-runtime-ubuntu22.04 base image - Install PyTorch with CUDA 12.4 wheels (compatible with CUDA 13.0 driver) - Build Python dependencies properly for ARM64 π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>a4927aa -
Fix Dockerfile.spark for ARM64 architecture (DGX Spark)β
gary-boon +1: Claude Opus 4.5- Use NVIDIA NGC pytorch image (nvcr.io/nvidia/pytorch:24.01-py3) - Supports ARM64/aarch64 with CUDA π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>9d00d33 -
Add GPU-enabled Dockerfile for Sparkβ
gary-boon +1: Claude Opus 4.5- Create docker/Dockerfile.spark using pytorch/pytorch CUDA base image - Update compose.spark.yml to use Spark-specific Dockerfile - Fixes CUDA not available issue on DGX Spark π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>9377cd8 -
Fix Dockerfile: add build-essential for numcodecs compilationβ
gary-boon +1: Claude Opus 4.5numcodecs requires C compiler during pip install. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>3b5c3ac -
Phase 1: DGX Spark infrastructureβ
gary-boon +1: Claude Opus 4.5- Add .env.spark.example template for Spark configuration - Add docker/compose.spark.yml with GPU support and model cache mount - Add runs/.gitkeep for runtime outputs - Update .gitignore for .env.spark and runs/* - Add /ready endpoint (503 until model loaded, then 200) - Add /debug/device endpoint for GPU verification (no secrets) Paths follow DGX Spark deployment spec: - /srv/projects/visualisable-ai-backend - /srv/models-cache/huggingface (mounted) π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>a2bd186