Skip to content

Feat/gpu adoption - #9

Merged
BehRoooz merged 13 commits into
mainfrom
feat/gpu-adoption
Jun 8, 2026
Merged

Feat/gpu adoption#9
BehRoooz merged 13 commits into
mainfrom
feat/gpu-adoption

Conversation

@BehRoooz

@BehRoooz BehRoooz commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

Adds GPU-first execution across embedding, GO prediction, and training services with a shared CAFA_DEVICE policy (auto | cuda | cpu).

Changes

Centralized device resolution in src/utils.py (get_device, get_device_info)
Embedding API uses get_device() with FP16 on CUDA; GO prediction API loads and infers on the resolved device
Health endpoints expose device, cuda_available, and GPU name for runtime verification
Docker images install CUDA PyTorch (cu132); Compose enables gpus: all and CAFA_DEVICE=auto on GPU services

Test plan

  • docker compose up --build -d succeeds with NVIDIA Container Toolkit

  • Health checks report "device": "cuda" for embedding and GO APIs

  • POST /api/v1/predict-go-from-sequences returns GO predictions

  • CPU fallback works with CAFA_DEVICE=cpu when GPU is unavailable

@BehRoooz
BehRoooz merged commit e57ea31 into main Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant