Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A web interface for chatting with Alpaca through llama.cpp. Fully dockerized, with an easy to use API.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

serge-chat/serge

LicenseDiscord

Serge is a chat interface crafted withllama.cpp for running LLM models. No API keys, entirely self-hosted!

  • 🌐SvelteKit frontend
  • 💾Redis for storing chat history & parameters
  • ⚙️FastAPI + LangChain for the API, wrapping calls tollama.cpp using thepython bindings

🎥 Demo:

demo.webm

⚡️ Quick start

🐳 Docker:

docker run -d \    --name serge \    -v weights:/usr/src/app/weights \    -v datadb:/data/db/ \    -p 8008:8008 \    ghcr.io/serge-chat/serge:latest

🐙 Docker Compose:

services:serge:image:ghcr.io/serge-chat/serge:latestcontainer_name:sergerestart:unless-stoppedports:      -8008:8008volumes:      -weights:/usr/src/app/weights      -datadb:/data/db/volumes:weights:datadb:

Then, just visithttp://localhost:8008, You can find the API documentation athttp://localhost:8008/api/docs

🌍 Environment Variables

The following Environment Variables are available:

Variable NameDescriptionDefault Value
SERGE_DATABASE_URLDatabase connection stringsqlite:////data/db/sql_app.db
SERGE_JWT_SECRETKey for auth token encryption. Use a random stringuF7FGN5uzfGdFiPzR
SERGE_SESSION_EXPIRYDuration in minutes before a user must reauthenticate60
NODE_ENVNode.js running environmentproduction

🖥️ Windows

Ensure you have Docker Desktop installed, WSL2 configured, and enough free RAM to run models.

⚠️ Memory Usage

LLaMA will crash if you don't have enough available memory for the model

💬 Support

Need help? Join ourDiscord

🧾 License

Nathan Sarrazin andContributors.Serge is free and open-source software licensed under theMIT License andApache-2.0.

🤝 Contributing

If you discover a bug or have a feature idea, feel free to open an issue or PR.

To run Serge in development mode:

git clone https://github.com/serge-chat/serge.gitcd serge/docker compose -f docker-compose.dev.yml up --build

The solution will accept a python debugger session on port 5678. Example launch.json for VSCode:

{"version":"0.2.0","configurations": [        {"name":"Remote Debug","type":"python","request":"attach","connect": {"host":"localhost","port":5678            },"pathMappings": [                {"localRoot":"${workspaceFolder}/api","remoteRoot":"/usr/src/app/api/"                }            ],"justMyCode":false        }    ]}

[8]ページ先頭

©2009-2025 Movatter.jp