caiocampos-hotmart commited on
Commit
d0289d7
·
1 Parent(s): 1cdbdd3
Files changed (3) hide show
  1. .dockerignore +28 -0
  2. Dockerfile +4 -0
  3. requirements.txt +1 -1
.dockerignore ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ .Python
6
+ env
7
+ pip-log.txt
8
+ pip-delete-this-directory.txt
9
+ .tox
10
+ .coverage
11
+ .coverage.*
12
+ .cache
13
+ nosetests.xml
14
+ coverage.xml
15
+ *.cover
16
+ *.log
17
+ .git
18
+ .mypy_cache
19
+ .pytest_cache
20
+ .hypothesis
21
+ .DS_Store
22
+ *.egg-info
23
+ .venv
24
+ venv/
25
+ docs/
26
+ README.md
27
+ .gitignore
28
+ .gitattributes
Dockerfile CHANGED
@@ -4,6 +4,10 @@ RUN useradd -m -u 1000 user
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
 
 
 
 
7
  WORKDIR /app
8
 
9
  COPY --chown=user ./requirements.txt requirements.txt
 
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
+ # Otimizações para HF Spaces
8
+ ENV CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS"
9
+ ENV FORCE_CMAKE=1
10
+
11
  WORKDIR /app
12
 
13
  COPY --chown=user ./requirements.txt requirements.txt
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- llama-cpp-python
2
  huggingface-hub
3
  fastapi
4
  uvicorn
 
1
+ llama-cpp-python==0.2.11 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
2
  huggingface-hub
3
  fastapi
4
  uvicorn