Hosts DeepSeek-r1 Locally as a Web Application - Written with Rust and Nix
  • Rust 48.6%
  • JavaScript 24.7%
  • Nix 14%
  • CSS 6.5%
  • HTML 6.2%
Find a file
2025-01-28 14:31:06 -06:00
.github/workflows chore: Updated package name 2025-01-27 19:11:30 -06:00
public chore: Force-rebuilding 2025-01-28 13:30:59 -06:00
src feat: Ability to change base URL 2025-01-27 22:58:30 -06:00
.gitignore cicd: Testing CICD builds 2025-01-27 18:54:40 -06:00
Cargo.lock feat: Strong boilerplate 2025-01-27 18:15:49 -06:00
Cargo.toml feat: Strong boilerplate 2025-01-27 18:15:49 -06:00
docker-compose.yml bugfix: Incorrect repository label 2025-01-27 19:05:20 -06:00
flake.lock feat: Strong boilerplate 2025-01-27 18:15:49 -06:00
flake.nix cicd: Fixed frozen public directory 2025-01-28 14:31:06 -06:00
README.md docs: Added instructions for Docker usage 2025-01-28 01:02:39 +00:00

deepseek-r1s

image

About

Highly portable full-stack DeepSeek-r1 backend + frontend, allowing you to host the model and toy with it on your own system without the need for complex installations.

Features:

  • Streaming - Responses are streamed as they are generated
  • Parsed Thoughts - Thoughts are contained seperately visually to allow users to see the process, and are unexpanded on the final result
  • Message History - Retains messages throughout conversations
  • Asynchronus - You can hold multiple conversations with the model simultaneously
  • Markdown and LaTeX Support - Ask it about programming, math, and more - all without having to know special syntax

Usage

Docker Compose

Clone this repository and start the stack:

git clone https://github.com/hiibolt/deepseek-r1s.git
cd deepseek-r1s
docker compose up

From Source

Requires the Nix Package Manager with Nix Flakes enabled.

Clone this repository:

git clone https://github.com/hiibolt/deepseek-r1s.git
cd deepseek-r1s

Enter its development environment:

nix develop .#deepseek-r1s

Set your environment variables:

export MODEL_NAME='deepseek-r1:1.5b'
export DATA_DIR_PATH='./data'

Start the backend, and visit localhost:5776!

cargo run