Commit 
							
							·
						
						e01c6a6
	
1
								Parent(s):
							
							7aa0c87
								
feat: use only a single worker with 2 translators
Browse files- Dockerfile +3 -3
- README.md +1 -1
    	
        Dockerfile
    CHANGED
    
    | @@ -1,9 +1,9 @@ | |
| 1 | 
             
            FROM ghcr.io/winstxnhdw/nllb-api:main
         | 
| 2 |  | 
| 3 | 
             
            ENV SERVER_PORT=7860
         | 
| 4 | 
            -
            ENV OMP_NUM_THREADS= | 
| 5 | 
             
            ENV CT2_USE_EXPERIMENTAL_PACKED_GEMM=1
         | 
| 6 | 
             
            ENV CT2_FORCE_CPU_ISA=AVX512
         | 
| 7 | 
            -
            ENV WORKER_COUNT= | 
| 8 |  | 
| 9 | 
            -
            EXPOSE $ | 
|  | |
| 1 | 
             
            FROM ghcr.io/winstxnhdw/nllb-api:main
         | 
| 2 |  | 
| 3 | 
             
            ENV SERVER_PORT=7860
         | 
| 4 | 
            +
            ENV OMP_NUM_THREADS=2
         | 
| 5 | 
             
            ENV CT2_USE_EXPERIMENTAL_PACKED_GEMM=1
         | 
| 6 | 
             
            ENV CT2_FORCE_CPU_ISA=AVX512
         | 
| 7 | 
            +
            ENV WORKER_COUNT=1
         | 
| 8 |  | 
| 9 | 
            +
            EXPOSE $SERVER_PORT
         | 
    	
        README.md
    CHANGED
    
    | @@ -8,7 +8,7 @@ python_version: 3.12.3 | |
| 8 | 
             
            models: [winstxnhdw/nllb-200-distilled-1.3B-ct2-int8]
         | 
| 9 | 
             
            tags: [translation, translator, nllb, ctranslate2]
         | 
| 10 | 
             
            pinned: true
         | 
| 11 | 
            -
            base_path: / | 
| 12 | 
             
            ---
         | 
| 13 |  | 
| 14 | 
             
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         | 
|  | |
| 8 | 
             
            models: [winstxnhdw/nllb-200-distilled-1.3B-ct2-int8]
         | 
| 9 | 
             
            tags: [translation, translator, nllb, ctranslate2]
         | 
| 10 | 
             
            pinned: true
         | 
| 11 | 
            +
            base_path: /schema/swagger
         | 
| 12 | 
             
            ---
         | 
| 13 |  | 
| 14 | 
             
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         | 
 
			
