Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy/proxy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RUN apt-get clean && apt-get update

# Install llmstudio
ARG LLMSTUDIO_VERSION
RUN pip install 'llmstudio[proxy]'==${LLMSTUDIO_VERSION}
RUN pip install 'llmstudio-proxy'==${LLMSTUDIO_VERSION}

CMD ["llmstudio", "server", "--proxy"]
CMD ["llmstudio-proxy", "server"]
4 changes: 2 additions & 2 deletions deploy/tracker.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-get clean && apt-get update

# Install llmstudio
ARG LLMSTUDIO_VERSION
RUN pip install 'llmstudio[tracker]'==${LLMSTUDIO_VERSION}
RUN pip install 'llmstudio-tracker'==${LLMSTUDIO_VERSION}
RUN pip install psycopg2-binary

CMD ["llmstudio", "server", "--tracker"]
CMD ["llmstudio-tracker", "server"]
35 changes: 35 additions & 0 deletions libs/proxy/llmstudio_proxy/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import os
import signal
import threading

import click
from llmstudio_proxy.server import setup_engine_server


def handle_shutdown(signum, frame):
print("Shutting down gracefully...")
os._exit(0)


@click.group()
def main():
pass


@main.command()
def server():
signal.signal(signal.SIGINT, handle_shutdown)

setup_engine_server()

print("Press CTRL+C to stop.")

stop_event = threading.Event()
try:
stop_event.wait()
except KeyboardInterrupt:
print("Shutting down server...")


if __name__ == "__main__":
main()
5 changes: 4 additions & 1 deletion libs/proxy/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "llmstudio-proxy"
version = "1.0.2"
version = "1.0.3a0"
description = ""
authors = ["Diogo Goncalves <diogo.goncalves@tensorops.ai>"]
readme = "README.md"
Expand All @@ -19,6 +19,9 @@ llmstudio-core = "^1.0.0"
[tool.poetry.group.dev.dependencies]
llmstudio-core = { path = "../core/", develop = true }

[tool.poetry.scripts]
llmstudio-proxy = "llmstudio_proxy.cli:main"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
35 changes: 35 additions & 0 deletions libs/tracker/llmstudio_tracker/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import os
import signal
import threading

import click
from llmstudio_tracker.server import setup_tracking_server


def handle_shutdown(signum, frame):
print("Shutting down gracefully...")
os._exit(0)


@click.group()
def main():
pass


@main.command()
def server():
signal.signal(signal.SIGINT, handle_shutdown)

setup_tracking_server()

print("Press CTRL+C to stop.")

stop_event = threading.Event()
try:
stop_event.wait()
except KeyboardInterrupt:
print("Shutting down server...")


if __name__ == "__main__":
main()
7 changes: 5 additions & 2 deletions libs/tracker/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "llmstudio-tracker"
version = "1.0.3"
description = "LLMstudio Tracker is the module of LLMstudio that allows monitoring and logging your LLM calls. It supports seamless integration with the LLMstudio environment through configurable tracking servers, allowing for detailed insights into synchronous and asynchronous chat interactions. By leveraging LLMstudio Tracker, users can gain insights on model performance and streamline development workflows with actionable analytics."
version = "1.0.4a0"
description = "LLMstudio Tracker is the module of LLMstudio that allows monitoring and logging your LLM calls. By leveraging LLMstudio Tracker, users can gain insights on model performance and streamline development workflows with actionable analytics."
authors = ["Diogo Goncalves <diogo.goncalves@tensorops.ai>"]
readme = "README.md"

Expand All @@ -16,6 +16,9 @@ uvicorn = "^0.27"
sqlalchemy-bigquery = "^1.12.0"
google-cloud-bigquery-storage = "^2.27.0"

[tool.poetry.scripts]
llmstudio-proxy = "llmstudio_tracker.cli:main"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"