ElJoker63 commited on
Commit
9f439ec
·
1 Parent(s): b3288a5

Revert to CPU wheel by default, add audioop-lts to resolve Python 3.13 audioop removal, and default N_GPU_LAYERS to 0

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +3 -1
app.py CHANGED
@@ -86,7 +86,7 @@ SUPPORTED_MODELS = {
86
  CACHE_DIR = os.environ.get("HF_HOME", os.path.join(os.path.dirname(os.path.abspath(__file__)), ".cache"))
87
  N_CTX = int(os.environ.get("N_CTX", "4096"))
88
  NUM_THREADS = int(os.environ.get("NUM_THREADS", "2"))
89
- N_GPU_LAYERS = int(os.environ.get("N_GPU_LAYERS", "-1"))
90
 
91
  os.makedirs(CACHE_DIR, exist_ok=True)
92
 
 
86
  CACHE_DIR = os.environ.get("HF_HOME", os.path.join(os.path.dirname(os.path.abspath(__file__)), ".cache"))
87
  N_CTX = int(os.environ.get("N_CTX", "4096"))
88
  NUM_THREADS = int(os.environ.get("NUM_THREADS", "2"))
89
+ N_GPU_LAYERS = int(os.environ.get("N_GPU_LAYERS", "0"))
90
 
91
  os.makedirs(CACHE_DIR, exist_ok=True)
92
 
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu121
2
  fastapi>=0.100.0
3
  uvicorn>=0.22.0
4
  llama-cpp-python>=0.2.75
@@ -7,5 +7,7 @@ sse-starlette>=1.6.0
7
  pydantic>=2.0.0
8
  requests>=2.31.0
9
  gradio>=4.0.0
 
 
10
 
11
 
 
1
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
2
  fastapi>=0.100.0
3
  uvicorn>=0.22.0
4
  llama-cpp-python>=0.2.75
 
7
  pydantic>=2.0.0
8
  requests>=2.31.0
9
  gradio>=4.0.0
10
+ audioop-lts
11
+
12
 
13