Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deepseek-r1 model is, use uv for package management #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chat_with_deepseek_r1_locally/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ __pycache__/
.web
*.py[cod]
assets/external/
.venv
13 changes: 10 additions & 3 deletions chat_with_deepseek_r1_locally/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,22 @@ cd reflex-llm-examples/chat_with_deepseek_r1_locally
```

### 2. Install Dependencies
Install the required dependencies:
Install `uv` and the required dependencies:
```bash
pip install -r requirements.txt
curl -LsSf https://astral.sh/uv/install.sh | sh
exec bash
uv venv && source .venv/bin/activate && uv pip sync pyproject.toml
```

You might have to install `unzip` as well.
```bash
sudo apt-get install unzip -y
```

### 3. Pull and Run DeepSeek-r1 Using Ollama
Download and set up the DeepSeek-r1 model locally:
```bash
ollama pull deepseek-r1:1.5
ollama pull deepseek-r1:1.5b
```

### 4. Run the Reflex App
Expand Down
15 changes: 15 additions & 0 deletions chat_with_deepseek_r1_locally/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[project]
name = "chat-w-deepseek-r1-locally"
version = "0.1.0"
description = "Chat with DeepSeek-r1 locally"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"llama-index>=0.12.12",
"llama-index-embeddings-huggingface>=0.5.1",
"llama-index-llms-ollama>=0.5.0",
"ollama>=0.4.7",
"pydantic>=2.10.5",
"reflex>=0.6.8",
"unzip>=1.0.0",
]
5 changes: 0 additions & 5 deletions chat_with_deepseek_r1_locally/requirements.txt

This file was deleted.