NLP project to transform clinical diagnosis into ICPC-2 codes for Portuguese Primary Care
https://huggingface.co/datasets/diogocarapito/text-to-icpc2
https://huggingface.co/diogocarapito/text-to-icpc2
Demo available att https://text-to-icpc2demo.streamlit.app
create and activate .venv
python3.12 -m venv .venv &&
source .venv/bin/activate
activate server
mlflow server --host 127.0.0.1 --port 8080
build docker image
docker build -t main:latest .
Remove all files
rm -rf *
Clone git repo
git clone https://github.com/DiogoCarapito/text-to-icpc2 && cd text-to-icpc2
Create a virtual environment (python3.11)
python3.11 -m venv .venv && source .venv/bin/activate
install torch compatible with available gpu before make all
pip uninstall -y torch torchvision torchaudio && pip install torch==2.1.1+cu121 torchaudio==2.1.1+cu121 torchvision==0.16.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html
manually upgrade blinker (it prevents errors)
pip install --upgrade --ignore-installed blinker && pip show blinker
install the rest of requirements.txt
make all
.sh file for setup automation (not working right now)
chmod +x train/setup_cuda.sh
source setup_cuda.sh
Check torch instalation
python -c "import torch; print(torch.__version__)"
NVIDIA monitor
nvidia-smi
Continuous NVIDIA monitor
chmod +x train/monitor_gpu.sh
./monitor_gpu.sh
rm -rf * && \
git clone https://github.com/DiogoCarapito/text-to-icpc2 && \
cd text-to-icpc2 && \
python3.11 -m venv .venv && \
source .venv/bin/activate && \
pip uninstall -y torch torchvision torchaudio && \
pip install torch==2.1.1+cu121 torchaudio==2.1.1+cu121 torchvision==0.16.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html && \
pip install --upgrade --ignore-installed blinker && \
pip show blinker && \
make all && \
python -c "import torch; print(torch.__version__)"
NLP project to transform clinical diagnosis into ICPC-2 codes for Portuguese Primary Care
https://huggingface.co/datasets/diogocarapito/text-to-icpc2
https://huggingface.co/diogocarapito/text-to-icpc2
Demo available att https://text-to-icpc2demo.streamlit.app
create and activate .venv
python3.12 -m venv .venv &&
source .venv/bin/activate
activate server
mlflow server --host 127.0.0.1 --port 8080
build docker image
docker build -t main:latest .
Remove all files
rm -rf *
Clone git repo
git clone https://github.com/DiogoCarapito/text-to-icpc2 && cd text-to-icpc2
Create a virtual environment (python3.11)
python3.11 -m venv .venv && source .venv/bin/activate
install torch compatible with available gpu before make all
pip uninstall -y torch torchvision torchaudio && pip install torch==2.1.1+cu121 torchaudio==2.1.1+cu121 torchvision==0.16.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html
manually upgrade blinker (it prevents errors)
pip install --upgrade --ignore-installed blinker && pip show blinker
install the rest of requirements.txt
make all
.sh file for setup automation (not working right now)
chmod +x train/setup_cuda.sh
source setup_cuda.sh
Check torch instalation
python -c "import torch; print(torch.__version__)"
NVIDIA monitor
nvidia-smi
Continuous NVIDIA monitor
chmod +x train/monitor_gpu.sh
./monitor_gpu.sh
rm -rf * && \
git clone https://github.com/DiogoCarapito/text-to-icpc2 && \
cd text-to-icpc2 && \
python3.11 -m venv .venv && \
source .venv/bin/activate && \
pip uninstall -y torch torchvision torchaudio && \
pip install torch==2.1.1+cu121 torchaudio==2.1.1+cu121 torchvision==0.16.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html && \
pip install --upgrade --ignore-installed blinker && \
pip show blinker && \
make all && \
python -c "import torch; print(torch.__version__)"