Skip to content

Commit

Permalink
get build working on linux without torch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Huang authored and Sam Huang committed Nov 5, 2024
1 parent 0378fd4 commit 32b526f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 322 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM python:3.12-slim AS builder
FROM --platform=linux/amd64 python:3.12-slim AS builder

# Set working directory
WORKDIR /app
Expand All @@ -16,7 +16,7 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Final stage
FROM python:3.12-slim
FROM --platform=linux/amd64 python:3.12-slim

# Install curl for the healthcheck
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
1 change: 0 additions & 1 deletion optillm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import glob
import asyncio
import re
from concurrent.futures import ThreadPoolExecutor

# Import the LiteLLM wrapper
from optillm.litellm_wrapper import LiteLLMWrapper
Expand Down
162 changes: 0 additions & 162 deletions optillm/cot_decoding.py

This file was deleted.

154 changes: 0 additions & 154 deletions optillm/plugins/router_plugin.py

This file was deleted.

7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ openai
z3-solver
aiohttp
flask
torch
transformers
#torch
#transformers
azure.identity
tiktoken
scikit-learn
Expand All @@ -18,4 +18,5 @@ presidio_anonymizer
nbformat
nbconvert
ipython
ipykernel
ipykernel
sympy

0 comments on commit 32b526f

Please sign in to comment.