fix model dir

This commit is contained in:
luopingyi committed 2025-11-01 12:09:17 +08:00
1 parent da8ac28a97
commit bfb6c35d9e
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -45,9 +45,7 @@ docker run -it --rm \
curl -X POST http://localhost:10086/generate \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-8b",
"messages": [{"role": "user", "content": "你好"}],
"stream": true
}'
```
+1 -1
View File
@@ -14,7 +14,7 @@ import torch
from modelscope import AutoModel, AutoTokenizer
# -------- Configuration --------
MODEL_DIR = os.environ.get("DEESEEK_MODEL_DIR", "/mnt/models")
MODEL_DIR = os.environ.get("DEESEEK_MODEL_DIR", "/model")
MODEL_PREFERRED_DTYPE = os.environ.get("DEESEEK_DTYPE", "bfloat16") # or float16/float32
# -------- FastAPI app --------