Commit History

FJK
3471c60

Anthony Pacheco commited on

Optimize: n_batch=2048, n_ubatch=2048, max_inputs=11, scaledown=28s
b9cb52f

Anthony Pacheco commited on

Add Modal GPU T4 deployment files for faster inference
ce48984

Anthony Pacheco commited on

Revert n_threads to 4 - 8 threads causes hangs
c57bc03

Anthony Pacheco commited on

Increase n_threads from 4 to 8 for better CPU performance
2ce8492

Anthony Pacheco commited on

Fix content-type header logic for all body methods
710f514

Anthony Pacheco commited on

Add debug logging for backend response headers and body
28a88f0

Anthony Pacheco commited on

fix: Remove else block causing indentation error
22b2fd8

Anthony Pacheco commited on

debug: Temporarily disable auth to diagnose 400 error
4ec30b9

Anthony Pacheco commited on

fix: Serve HTML directly for public routes instead of proxying to backend
2f727f0

Anthony Pacheco commited on

fix: Allow public access to non-API routes (HF Spaces Log Viewer)
dffbccb

Anthony Pacheco commited on

fix: Add missing valid_key variable for auth check
63a6a6e

Anthony Pacheco commited on

fix: Read body before auth check to avoid UnboundLocalError
25655ee

Anthony Pacheco commited on

trigger rebuild: force deploy to fix UnboundLocalError
10e4d42

Anthony Pacheco commited on

fix: Only read body for POST/PUT/PATCH methods to avoid UnboundLocalError
d0888da

Anthony Pacheco commited on

fix: Accept multiple auth formats for HF Spaces compatibility
d12e316

Anthony Pacheco commited on

fix: Add health endpoint without auth, add debug logging
d6abbc3

Anthony Pacheco commited on

debug: Add logging to trace 400 error
1bf229d

Anthony Pacheco commited on

fix: Strip authorization header before forwarding to backend
0403779

Anthony Pacheco commited on

feat: Add API key authentication for private Space access
a6f495d

Anthony Pacheco commited on

fix: Simplified proxy with better path handling and error handling
24f39fe

Anthony Pacheco commited on

fix: Use lifespan instead of deprecated on_event
e969b9c

Anthony Pacheco commited on

fix: Add FastAPI proxy to strip HF Spaces __sign parameter
573dc3a

Anthony Pacheco commited on

πŸ”§ Add libgomp (OpenMP) for CPU multi-threading support
a21e8f9

Anthony Pacheco commited on

πŸ”§ Add libstdc++ to Alpine (required by pre-compiled C++ wheel)
464b0a4

Anthony Pacheco commited on

πŸ”§ Switch to Alpine (python:3.11-alpine) for musl-compatible wheel
ef66f7c

Anthony Pacheco commited on

πŸ”§ Try pre-compiled wheel v0.3.19 (avoids timeout + OOM, likely has LFM2)
e8ba951

Anthony Pacheco commited on

πŸ”§ Compile with MinSizeRel (reduces linker RAM ~2.5GBβ†’~1.2GB, avoids OOM)
42126a9

Anthony Pacheco commited on

πŸ”§ Force pre-compiled wheel v0.3.14, --only-binary :all: (no compilation)
880d7f4

Anthony Pacheco commited on

πŸ”§ Use pre-compiled CPU wheel (no compilation, includes CPU backend)
0b84d8d

Anthony Pacheco commited on

πŸ”§ Fix --flash-attn flag syntax: use 'auto' instead of bare flag
124018f

Anthony Pacheco commited on

πŸ”§ Bulletproof tar extraction: flatten llama-server + .so libs into llama-cpp/
1954172

Anthony Pacheco commited on

πŸ”§ Keep dynamic libs (libmtmd.so.0), set LD_LIBRARY_PATH
60c4742

Anthony Pacheco commited on

πŸ”§ Add libcurl4 (fixes exit code 127: libcurl.so.4 not found)
39a9f7a

Anthony Pacheco commited on

πŸ”§ Use precompiled llama.cpp b7633 binary (no compilation, no OOM)
c13c23d

Anthony Pacheco commited on

πŸ”§ Fix lfm2 support: use latest llama-cpp-python (0.3.7 was too old)
6642fa5

Anthony Pacheco commited on

πŸ”§ Add huggingface_hub to Dockerfile (needed for model download)
e9eb00c

Anthony Pacheco commited on

πŸ”§ Remove proxy: use llama-server directly (simpler, same as Colab)
92c325e

Anthony Pacheco commited on

πŸ”„ Revert to llama-cpp-python server (same approach as Colab, CPU mode)
d4e84a8

Anthony Pacheco commited on

πŸ”§ Use latest llama-cpp-python[server] for best architecture support
f29dc86

Anthony Pacheco commited on

πŸ”§ Install llama-cpp-python[server] with all server dependencies
c703073

Anthony Pacheco commited on

πŸ”§ Add sse-starlette (required by llama-cpp-python server)
d30255a

Anthony Pacheco commited on

πŸ”§ Remove rm -rf /root/.cache (permission denied as user)
bb22834

Anthony Pacheco commited on

πŸ”§ Add git to Dockerfile (required by llama-cpp-python build)
97ee4ab

Anthony Pacheco commited on

πŸ”„ Switch to llama-cpp-python server (pre-built binary had missing CPU backend)
8cef382

Anthony Pacheco commited on

πŸ”§ Fix llama-server path: strip-components=1 puts binary in root
c540626

Anthony Pacheco commited on

πŸ”„ Rebuild with HF_TOKEN secret configured
d7f1809

Anthony Pacheco commited on

πŸ“₯ Download model at runtime from private HF repo
cef03c7

Anthony Pacheco commited on

πŸ”§ Fix llama-server binary URL: use b8783 ubuntu-x64 tar.gz
c24f6ae

Anthony Pacheco commited on

πŸ”§ Remove unnecessary llama-server auth (only accessed locally by proxy)
547d211

Anthony Pacheco commited on