Skip to content

Commit

Permalink
Merge branch 'kyegomez:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynmitchell authored Mar 24, 2024
2 parents d6c209b + 730dc04 commit 13dc66c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ einops = "*"
pydantic = ">2,<3"
stripe = "*"
transformers = "*"
sse-starlette = "*"
sse-starlette = "2.0.0"
uvicorn = "*"
shortuuid = "*"
xformers = "*"
exxa = "*"

[tool.poetry.group.lint.dependencies]
ruff = ">=0.1.6,<0.4.0"
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
skypilot
fastapi
fastapi==0.110.0
supabase
pytest
torch
einops
tiktoken
sse-starlette
sse-starlette==2.0.0
uvicorn
loguru
pydantic
Expand All @@ -18,8 +18,8 @@ peft
accelerate
transformers==4.37.2
huggingface_hub[hf_transfer]
huggingface-hub
optimum
auto-gptq
whisperx
shortuuid
shortuuid
exxa
13 changes: 3 additions & 10 deletions servers/cogvlm/cogvlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
TextContent,
UsageInfo,
)
from swarms_cloud.utils.count_cores_for_workers import calculate_workers
from starlette.middleware import Middleware
from starlette.middleware.gzip import GZipMiddleware

from exa import calculate_workers
import torch.distributed as dist


Expand All @@ -52,12 +51,6 @@
QUANT_ENABLED = os.environ.get("QUANT_ENABLED", True)


# Middleware
middleware = [
Middleware(GZipMiddleware, minimum_size=1000),
]


@asynccontextmanager
async def lifespan(app: FastAPI):
"""
Expand All @@ -71,7 +64,7 @@ async def lifespan(app: FastAPI):


# Create a FastAPI app
app = FastAPI(lifespan=lifespan, debug=True, middleware=middleware)
app = FastAPI(lifespan=lifespan, debug=True)


# Load the middleware to handle CORS
Expand Down

0 comments on commit 13dc66c

Please sign in to comment.