kristiankauffeld
kristiankauffeld
Explore posts from servers
RRailway
Created by kristiankauffeld on 5/4/2024 in #✋|help
help with memory profiling FastAPI application
No description
16 replies
RRailway
Created by kristiankauffeld on 2/10/2024 in #✋|help
best practices for deploying FastAPI, Redis and RQ workers?
I have deployed a FastAPI server and a RQ Worker in separate containers on Railway based on the same monorepo: https://github.com/kristiankauffeld/fastapi-redis The repo is structured by separating the services into different directories where they have their own Dockerfile. The two services communicate through a Redis instance. Currently there is some code duplication since I have copied the "utils" folder both into the "api" and the "rq-worker" folder. So if anyone perhaps could share some insight whether there is a better approach to deploy an application like this. Thanks
33 replies
RRailway
Created by kristiankauffeld on 1/14/2024 in #✋|help
how to deploy a CPU-only version of PyTorch
I am trying to deploy a FastAPI application in a Docker container and I think I need to deploy a CPU-only version since as I understand Railway doesn't support GPU yet. Do anyone in here know how to deploy a CPU-only version of PyTorch and related libraries, including torchaudio? I have seen that the Demucs repo has an "environment-cpu.yml" file: https://github.com/facebookresearch/demucs/blob/main/environment-cpu.yml
10 replies