ronitraj commited on
Commit
4645de0
·
1 Parent(s): 5773d37

deploy: publish InferenceGym Space app

Browse files
Files changed (3) hide show
  1. .gitignore +1 -1
  2. Dockerfile +8 -9
  3. requirements.txt +22 -0
.gitignore CHANGED
@@ -44,4 +44,4 @@ artifacts/
44
 
45
  # Docker & Logs
46
  *.log
47
- *.txt
 
44
 
45
  # Docker & Logs
46
  *.log
47
+ *.txt
Dockerfile CHANGED
@@ -7,24 +7,22 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=1
7
 
8
  WORKDIR /app
9
 
10
- COPY pyproject.toml README.md openenv.yaml requirements.txt ./
11
-
12
- RUN --mount=type=cache,target=/root/.cache/pip \
13
- python -m pip install --upgrade pip setuptools wheel && \
14
- printf 'torch==2.5.1+cpu\n' > /tmp/constraints.txt && \
15
- python -m pip install --prefix=/install \
16
- --extra-index-url https://download.pytorch.org/whl/cpu \
17
- -c /tmp/constraints.txt -r requirements.txt
18
 
19
  COPY llmserve_env ./llmserve_env
20
  COPY server ./server
21
  COPY agents ./agents
22
  COPY rl ./rl
23
  COPY data ./data
 
24
  COPY inference.py evaluate.py train.py ./
25
 
26
  RUN --mount=type=cache,target=/root/.cache/pip \
27
- python -m pip install --prefix=/install --no-deps .
 
 
 
 
28
 
29
  FROM python:3.11-slim
30
 
@@ -41,6 +39,7 @@ COPY server ./server
41
  COPY agents ./agents
42
  COPY rl ./rl
43
  COPY data ./data
 
44
  COPY inference.py evaluate.py train.py ./
45
 
46
  EXPOSE 7860
 
7
 
8
  WORKDIR /app
9
 
10
+ COPY pyproject.toml README.md openenv.yaml ./
 
 
 
 
 
 
 
11
 
12
  COPY llmserve_env ./llmserve_env
13
  COPY server ./server
14
  COPY agents ./agents
15
  COPY rl ./rl
16
  COPY data ./data
17
+ COPY weights ./weights
18
  COPY inference.py evaluate.py train.py ./
19
 
20
  RUN --mount=type=cache,target=/root/.cache/pip \
21
+ python -m pip install --upgrade pip setuptools wheel && \
22
+ printf 'torch==2.5.1+cpu\n' > /tmp/constraints.txt && \
23
+ python -m pip install --prefix=/install \
24
+ --extra-index-url https://download.pytorch.org/whl/cpu \
25
+ -c /tmp/constraints.txt .
26
 
27
  FROM python:3.11-slim
28
 
 
39
  COPY agents ./agents
40
  COPY rl ./rl
41
  COPY data ./data
42
+ COPY weights ./weights
43
  COPY inference.py evaluate.py train.py ./
44
 
45
  EXPOSE 7860
requirements.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Core server
2
+ fastapi>=0.115,<1.0
3
+ uvicorn[standard]>=0.32,<1.0
4
+ pydantic>=2.9,<3.0
5
+ openenv-core>=0.2.0
6
+ openai>=2.7.2,<3.0
7
+ python-dotenv>=1.0,<2.0
8
+
9
+ # Simulation & numeric
10
+ numpy>=1.26,<3.0
11
+ scipy>=1.12,<2.0
12
+ pandas>=2.2,<3.0
13
+ pyarrow>=15.0,<20.0
14
+ torch>=2.3,<3.0
15
+ gradio>=5.0,<7.0
16
+
17
+ # HTTP client (for SDK + tests)
18
+ httpx>=0.27,<1.0
19
+
20
+ # Testing
21
+ pytest>=8.0,<9.0
22
+ pytest-asyncio>=0.24,<1.0