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
27 changes: 3 additions & 24 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,15 @@

setup(
name="solo-server",
version="0.3.4",
version="0.3.5",
author="Dhruv Diddi",
author_email="dhruv.diddi@gmail.com",
description="Powering Physical AI.",
description="AIOps for the Physical World.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/AIEngineersDev/solo-server",
packages=find_packages(),
packages=find_packages(include=["solo_server", "solo_server.*"]),
include_package_data=True,
package_data={
'solo_server': [
'templates/*.py',
'gui.py',
'grafana_setup.sh',
'locustfile.py',
'Dockerfile',
'docker-compose.yml',
'docker-compose-benchmark.yml',
'requirements.txt',
'utils.py',
'base.py',
],
},
data_files=[
('solo_server', [
'solo_server/Dockerfile',
'solo_server/docker-compose.yml',
'solo_server/requirements.txt'
]),
],
install_requires=[
"typer",
],
Expand Down
7 changes: 3 additions & 4 deletions solo_server/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import typer
from solo.setup import interactive_setup
from solo.commands import pull, serve, stop, status, benchmark

from .commands import pull, serve, stop, status, benchmark
from .setup import interactive_setup
app = typer.Typer()

# Commands
Expand All @@ -10,7 +9,7 @@
app.command()(stop.stop)
app.command()(status.status)
app.command()(benchmark.benchmark)
app.command(name="setup")(interactive_setup)
app.command()(interactive_setup)

if __name__ == "__main__":
app()
6 changes: 3 additions & 3 deletions solo_server/commands/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ def serve(name: str, model: str):
"""
Serves a model using Ramalama.
"""
typer.echo(f"🚀 Starting model {model} as {name} with Ramalama...")
typer.echo(f"🚀 Starting model {model} as {name}...")

try:
command = ["ramalama", "serve", "--name", name, model]
command = ["ramalama", "serve", model]
process = subprocess.run(command, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)

typer.echo(f"✅ Model {model} is now running as {name}.")
typer.echo(f"🌐 Access the UI at: http://127.0.0.1:8080")
typer.echo(f"🌐 Access the UI at: http://127.0.0.1:5070")

except subprocess.CalledProcessError as e:
typer.echo(f"❌ Failed to serve model {model}: {e.stderr}", err=True)
Expand Down
4 changes: 2 additions & 2 deletions solo_server/commands/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
app = typer.Typer()

@app.command()
def check():
def status():
"""Check running models."""
typer.echo("Checking running model containers...")
subprocess.run(["docker", "ps", "--filter", "name=solo-container"], check=True)
subprocess.run(["podman", "ps", "--filter", "name=solo-container"], check=True)
Loading