farshed/sage
소개
직접 호스팅하는 LLM 음성 채팅
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSage
Converse with large language models using speech. DEMO
- Open: Powered by state-of-the-art open-source speech processing models.
- Efficient: Light enough to run on consumer hardware, with low latency.
- Self-hosted: Entire pipeline runs offline, limited only by compute power.
- Modular: Switching LLM providers is as simple as changing an environment variable.
How it works
Run
For text generation, you can either self-host an LLM using Ollama, or opt for a third-party provider. This can be configured using a .env file in the project root.
If you're using Ollama, add the
OLLAMA_MODELvariable to the .env file to specify the model you'd like to use. (Example:OLLAMA_MODEL=deepseek-r1:7b)Among the third-party providers, Sage supports the following out of the box:
- Deepseek
- OpenAI
- Anthropic
- Together.ai
To use a provider, add a
<PROVIDER>_API_KEYvariable to the .env file. (Example:OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxx)To choose which model should be used for a given provider, use the
<PROVIDER>_MODELvariable. (Example:DEEPSEEK_MODEL=deepseek-chat)
Next, you have two choices: Run Sage as a Docker container (the easy way) or natively (the hard way). Note that running it with Docker may have a performance penalty (Inference with whisper is 4-5x slower compared to native).
With Docker: Install Docker and start the daemon. Download the following files and place them inside a
modelsdirectory at the project root.Run
bun docker-buildto build the image and thenbun docker-runto spin a container. The UI is exposed athttp://localhost:3000.Without Docker: Install Bun, Rust, OpenSSL, LLVM, Clang, and CMake. Make sure all of these are accessible via
$PATH. Then, runsetup-unix.shorsetup-win.batdepending on your platform. This will download the required model weights and compile the binaries needed for Sage. Once finished, start the project withbun start. The first run on macOS is slow (~20 minutes on M1 Pro), since the ANE service compiles the Whisper CoreML model to a device-specific format. Next runs are faster.
Future work
- Make it easier to run (Dockerize?)
- CUDA support
- Allow custom Ollama endpoint
- Multilingual support
- Allow Whisper configuration
- Allow customization of system prompt
- Optimize the pipeline
- Release as a library?
관련 프로젝트 살펴보기
불러오는 중…