PR #2: Replace llama.cpp with transformers + spaces.GPU + temp grid

#2
No description provided.

πŸ”΄ CRITICAL: This PR fixes libcudart.so.12 build failure.

The current main branch crashes on Space boot because:

  1. llama-cpp-python attempts CUDA compilation in a builder with no CUDA runtime
  2. fitz (PyMuPDF) is heavy and not needed for core inference
  3. Custom FastAPI mounting conflicts with Gradio auto-mounting

This PR replaces it with:

  • transformers + bitsandbytes (pre-built wheels, no compilation)
  • @spaces.GPU decorator with 4-bit NF4 quantization (same as GRM-2.6-Opus)
  • Streaming via TextIteratorStreamer
  • Built-in ChatInterface + MCP server

To merge: Click "Merge" above. The builder will deploy in ~2 minutes.

cc: @build-small-hackathon/admin β€” this is blocking hackathon inference for the Darwin model.

specimba changed pull request status to merged

Sign up or log in to comment