git clone repo_url
pip install uv
uv venv # or python -m venv .venv
source .venv/bin/activate
uv pip compile builder/requirements.in -o builder/requirements.txt # uv is optional, but recommended
uv pip sync builder/requirements.txt
models_hub directory before building. See src/download_models.py for more details.python3 src/download_models.py
python3 src/handler.py --rp_serve_api
http://localhost:8000/. You can test it using the following command.curl --request POST \
--url http://localhost:8000/runsync \
--header 'Content-Type: application/json' \
--data '{"input": {"task": "query","input_data": ["hello"]}}'
The service is deplyed via Docker. The Dockerfile is located in the root directory. Due to GPU requirements, the service works well either on a mac chips with MPS backend (local development) or on a linux machine with CUDA installed (production).
python src/handler.py --rp_serve_api
./build_publish.sh {org} {repo}
docker push {org}/{repo}:version
We use runpod serverless endpoint. The Docker image is hosted on Docker Hub under: tjmlabs/colivare
15 commits
5 commits
Python
99.8%
git clone repo_url
pip install uv
uv venv # or python -m venv .venv
source .venv/bin/activate
uv pip compile builder/requirements.in -o builder/requirements.txt # uv is optional, but recommended
uv pip sync builder/requirements.txt
models_hub directory before building. See src/download_models.py for more details.python3 src/download_models.py
python3 src/handler.py --rp_serve_api
http://localhost:8000/. You can test it using the following command.curl --request POST \
--url http://localhost:8000/runsync \
--header 'Content-Type: application/json' \
--data '{"input": {"task": "query","input_data": ["hello"]}}'
The service is deplyed via Docker. The Dockerfile is located in the root directory. Due to GPU requirements, the service works well either on a mac chips with MPS backend (local development) or on a linux machine with CUDA installed (production).
python src/handler.py --rp_serve_api
./build_publish.sh {org} {repo}
docker push {org}/{repo}:version
We use runpod serverless endpoint. The Docker image is hosted on Docker Hub under: tjmlabs/colivare
15 commits
5 commits
Python
99.8%