Skip to content

Commit

Permalink
Updated MedCAT to v1.13, pinpointed transformer version (tmp fix).
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Sep 27, 2024
1 parent 86fdb18 commit 482aa47
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 19 deletions.
40 changes: 40 additions & 0 deletions docker/docker-compose-gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
services:
nlp-medcat-service-production:
container_name: cogstack-medcat-service-production
### Multiple images available:
## default image, only CPU support: cogstacksystems/medcat-service:latest
## GPU support: cogstacksystems/medcat-service-gpu:latest
# image: cogstacksystems/medcat-service:latest
platform: linux
restart: always
## Default dockerfile: ../Dockerfile
## GPU dockerfile: ../Dockerfile_gpu
build:
context: ../
dockerfile: "Dockerfile_gpu"
environment:
- http_proxy=$HTTP_PROXY
- https_proxy=$HTTPS_PROXY
- no_proxy=$no_proxy
env_file:
- ../envs/env_app
- ../envs/env_medcat
volumes:
- ../models:/cat/models/:rw
ports:
- "5555:5000"
networks:
- cognet

deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
device_ids: ['0']
capabilities: ["gpu", "utility", "compute", "video"]

networks:
cognet:
name: cogstack-net
11 changes: 0 additions & 11 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.6"

services:
nlp-medcat-service-production:
container_name: cogstack-medcat-service-production
Expand Down Expand Up @@ -27,15 +25,6 @@ services:
- "5555:5000"
networks:
- cognet

# uncomment this only when you have gpu access
#deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# device_ids: ['0']
# capabilities: ["gpu", "utility", "compute", "video"]

networks:
cognet:
Expand Down
18 changes: 10 additions & 8 deletions medcat_service/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Flask==3.0.2
gunicorn==22.0.0
injector==0.21.0
Flask==3.0.3
gunicorn==23.0.0
injector==0.22.0
flask-injector==0.15.0
medcat==1.12.0
setuptools==65.5.1
simplejson==3.19.2
werkzeug==3.0.3
setuptools_rust==1.9.0
setuptools==75.1.0
simplejson==3.19.3
werkzeug==3.0.4
setuptools_rust==1.10.1
medcat==1.13.0
# pinned because of issues with de-id models and past models (it will not do any de-id)
transformers==4.39.1

0 comments on commit 482aa47

Please sign in to comment.