Synaptic is a open source inference service for large language models
Rust
1
16 commits
updated Jun 24, 2025

A lightweight, high-performance server that provides OpenAI-compatible endpoints for various Large Language Models (LLMs). This allows you to use any OpenAI-compatible client library or application with different LLM backends.
RUST_LOG=info cargo run --features metalcargo build --release --features metal
cargo build --release --features=cuda,cudnn
export HF_TOKEN=xx_xxxxxxxxxxxxxxxxxxxxxxxxx
./target/synap-forge-llm
pip install openai
from openai import OpenAI, DefaultHttpxClient
client = OpenAI(
api_key='EMPTY',
base_url="http://localhost:8000/v1",
)
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Who won the world series in 2020?"
},
{
"role": "assistant",
"content": "The Los Angeles Dodgers won the World Series in 2020."
},
{
"role": "user",
"content": "Where was it played?"
}
],
model="gpt-4o",
)
print(chat_completion)
The server implements standard OpenAI-compatible endpoints:
/v1/chat/completions - Chat completions API/v1/completions - Text completions API/v1/embeddings - Text embeddings API/v1/models - Available models listMake sure, your docker platform is supporting NVidia
cargo build --release --features cuda
docker build -t synap-forge-llm .
docker run -p 8000:8000 -v llm-proxy-server
Contributions are welcome! Please read our Contributing Guidelines first.
The server automatically detects and uses available hardware acceleration:
Built-in Prometheus metrics will be available at /metrics:
This project is licensed under the Apache License Version 2.0, January 2004 - see the LICENSE file for details.
11 commits
5 commits
Rust
98.2%
Dockerfile
1.8%
Synaptic is a open source inference service for large language models
Rust
1
16 commits
updated Jun 24, 2025

A lightweight, high-performance server that provides OpenAI-compatible endpoints for various Large Language Models (LLMs). This allows you to use any OpenAI-compatible client library or application with different LLM backends.
RUST_LOG=info cargo run --features metalcargo build --release --features metal
cargo build --release --features=cuda,cudnn
export HF_TOKEN=xx_xxxxxxxxxxxxxxxxxxxxxxxxx
./target/synap-forge-llm
pip install openai
from openai import OpenAI, DefaultHttpxClient
client = OpenAI(
api_key='EMPTY',
base_url="http://localhost:8000/v1",
)
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Who won the world series in 2020?"
},
{
"role": "assistant",
"content": "The Los Angeles Dodgers won the World Series in 2020."
},
{
"role": "user",
"content": "Where was it played?"
}
],
model="gpt-4o",
)
print(chat_completion)
The server implements standard OpenAI-compatible endpoints:
/v1/chat/completions - Chat completions API/v1/completions - Text completions API/v1/embeddings - Text embeddings API/v1/models - Available models listMake sure, your docker platform is supporting NVidia
cargo build --release --features cuda
docker build -t synap-forge-llm .
docker run -p 8000:8000 -v llm-proxy-server
Contributions are welcome! Please read our Contributing Guidelines first.
The server automatically detects and uses available hardware acceleration:
Built-in Prometheus metrics will be available at /metrics:
This project is licensed under the Apache License Version 2.0, January 2004 - see the LICENSE file for details.
11 commits
5 commits
Rust
98.2%
Dockerfile
1.8%