Skip to content

Fast local LLM inference on plain CPUs. No GPU, 8 GB of RAM. OpenAI-compatible server.

1.4 KB
Raw Blame

Running openset-llm in WSL2 and with systemd

Windows (WSL2): make sure WSL2 has at least 8 GB of RAM

By default, Windows allocates half of host RAM to WSL2. On a 16 GB laptop, setting an explicit 10GB limit gives openset-llm full 8 GB headroom right from the first launch.

Create or edit C:\Users\<YourUser>\.wslconfig on Windows:

[wsl2]
memory=10GB
swap=4GB

Then restart WSL2 from PowerShell before running ./start:

wsl --shutdown

Inside WSL2, verify available memory and AVX-512 support:

free -h
./install.sh --check

Linux: run ./serve in the background with a systemd user service

After running ./install.sh once, you can keep the OpenAI-compatible API running on http://127.0.0.1:8080/v1 without leaving a terminal open.

Create ~/.config/systemd/user/openset-llm.service (replace /path/to/openset-llm with your clone path):

[Unit]
Description=openset-llm local OpenAI-compatible server
After=network.target

[Service]
Type=simple
WorkingDirectory=/path/to/openset-llm
ExecStart=/path/to/openset-llm/serve --no-webui --host 127.0.0.1 --port 8080
Restart=on-failure
RestartSec=5

[Install]
WantedBy=default.target

Enable and start it:

systemctl --user daemon-reload
systemctl --user enable --now openset-llm
systemctl --user status openset-llm

Check health and logs:

curl -fsS http://127.0.0.1:8080/health
journalctl --user -u openset-llm -f