saemstunes commited on
Commit
f517427
·
verified ·
1 Parent(s): 1f82b5a

Create railway.toml

Browse files
Files changed (1) hide show
  1. railway.toml +5 -21
railway.toml CHANGED
@@ -2,7 +2,7 @@
2
  builder = "nixpacks"
3
 
4
  [build.args]
5
- MODEL_DIR = "./models"
6
  PYTHON_VERSION = "3.11"
7
 
8
  [deploy]
@@ -10,20 +10,14 @@ startCommand = "python railway_app.py"
10
  healthcheckPath = "/health"
11
 
12
  [[services]]
13
- name = "saems-ai-api"
14
  type = "web"
15
  port = 8000
16
 
17
  [services.env]
18
  PORT = 8000
19
- MODEL_DIR = "./models"
20
- LOG_LEVEL = "INFO"
21
- SUPABASE_URL = "{{.Supabase.URL}}"
22
- SUPABASE_ANON_KEY = "{{.Supabase.AnonKey}}"
23
-
24
- [[services.volumes]]
25
- source = "models"
26
- target = "/app/models"
27
 
28
  [services.scaling]
29
  min = 1
@@ -38,23 +32,13 @@ timeout = 10
38
  threshold = 3
39
 
40
  [[services.envs]]
41
- key = "RAILWAY_ENVIRONMENT"
42
- value = "production"
43
-
44
- [[services.envs]]
45
  key = "PYTHONUNBUFFERED"
46
  value = "1"
47
 
48
- [[services.envs]]
49
- key = "PYTHONPATH"
50
- value = "/app"
51
-
52
  [environments.production]
53
  [environments.production.variables]
54
  LOG_LEVEL = "INFO"
55
- MODEL_PREFERENCE = "Q4_K_M"
56
 
57
  [environments.staging]
58
  [environments.staging.variables]
59
- LOG_LEVEL = "DEBUG"
60
- MODEL_PREFERENCE = "Q4_0"
 
2
  builder = "nixpacks"
3
 
4
  [build.args]
5
+ MODEL_NAME = "microsoft/Phi-3.5-mini-instruct"
6
  PYTHON_VERSION = "3.11"
7
 
8
  [deploy]
 
10
  healthcheckPath = "/health"
11
 
12
  [[services]]
13
+ name = "saems-tunes-ai-api"
14
  type = "web"
15
  port = 8000
16
 
17
  [services.env]
18
  PORT = 8000
19
+ MODEL_NAME = "microsoft/Phi-3.5-mini-instruct"
20
+ RAILWAY_ENVIRONMENT = "production"
 
 
 
 
 
 
21
 
22
  [services.scaling]
23
  min = 1
 
32
  threshold = 3
33
 
34
  [[services.envs]]
 
 
 
 
35
  key = "PYTHONUNBUFFERED"
36
  value = "1"
37
 
 
 
 
 
38
  [environments.production]
39
  [environments.production.variables]
40
  LOG_LEVEL = "INFO"
 
41
 
42
  [environments.staging]
43
  [environments.staging.variables]
44
+ LOG_LEVEL = "DEBUG"