Spaces:
Sleeping
Sleeping
vineetshukla.work@gmail.com commited on
Commit ·
1adae3f
1
Parent(s): 6cbd2ef
feat: add pyproject.toml, server entry point, uv.lock for openenv validate compliance
Browse files- pyproject.toml +37 -0
- server/app.py +24 -0
- uv.lock +0 -0
pyproject.toml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=68.0", "wheel"]
|
| 3 |
+
build-backend = "setuptools.backends._legacy:_Backend"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "codesensei"
|
| 7 |
+
version = "1.0.0"
|
| 8 |
+
description = "GRPO-trained LLM code debugging environment (OpenEnv)"
|
| 9 |
+
readme = "README.md"
|
| 10 |
+
license = {text = "MIT"}
|
| 11 |
+
requires-python = ">=3.10"
|
| 12 |
+
dependencies = [
|
| 13 |
+
"fastapi>=0.104.0",
|
| 14 |
+
"uvicorn[standard]>=0.24.0",
|
| 15 |
+
"websockets>=12.0",
|
| 16 |
+
"pydantic>=2.0.0",
|
| 17 |
+
"openai>=1.0.0",
|
| 18 |
+
"openenv-core>=0.2.0",
|
| 19 |
+
]
|
| 20 |
+
|
| 21 |
+
[project.optional-dependencies]
|
| 22 |
+
inference = [
|
| 23 |
+
"openai>=1.0.0",
|
| 24 |
+
"aiohttp>=3.9.0",
|
| 25 |
+
]
|
| 26 |
+
training = [
|
| 27 |
+
"trl>=0.8.0",
|
| 28 |
+
"transformers>=4.38.0",
|
| 29 |
+
"peft>=0.9.0",
|
| 30 |
+
"bitsandbytes>=0.42.0",
|
| 31 |
+
]
|
| 32 |
+
|
| 33 |
+
[project.scripts]
|
| 34 |
+
server = "server.app:main"
|
| 35 |
+
|
| 36 |
+
[tool.setuptools.packages.find]
|
| 37 |
+
include = ["env*"]
|
server/app.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Server entry point — re-exports from env.server.app.
|
| 3 |
+
|
| 4 |
+
OpenEnv expects server/app.py at the project root with a main() function.
|
| 5 |
+
This module delegates to our actual server at env/server/app.py.
|
| 6 |
+
"""
|
| 7 |
+
import uvicorn
|
| 8 |
+
from env.server.app import app # noqa: F401
|
| 9 |
+
|
| 10 |
+
__all__ = ["app"]
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def main():
|
| 14 |
+
"""Run the CodeSensei server."""
|
| 15 |
+
uvicorn.run(
|
| 16 |
+
"env.server.app:app",
|
| 17 |
+
host="0.0.0.0",
|
| 18 |
+
port=7860,
|
| 19 |
+
workers=2,
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
if __name__ == "__main__":
|
| 24 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|