Instructions to use NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant # Run inference directly in the terminal: llama cli -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant # Run inference directly in the terminal: llama cli -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant # Run inference directly in the terminal: ./llama-cli -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant # Run inference directly in the terminal: ./build/bin/llama-cli -hf NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
Use Docker
docker model run hf.co/NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
- LM Studio
- Jan
- Ollama
How to use NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant with Ollama:
ollama run hf.co/NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
- Unsloth Desktop
- Docker Model Runner
How to use NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant with Docker Model Runner:
docker model run hf.co/NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
- Lemonade
How to use NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NexaAI/DeepSeek-R1-Distill-Llama-8B-NexaQuant
Run and chat with the model
lemonade run user.DeepSeek-R1-Distill-Llama-8B-NexaQuant-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: deepseek-ai/DeepSeek-R1-Distill-Llama-8B
|
| 3 |
+
library_name: transformers
|
| 4 |
+
license: llama3.1
|
| 5 |
+
tags:
|
| 6 |
+
- deepseek
|
| 7 |
+
- transformers
|
| 8 |
+
- llama
|
| 9 |
+
- llama-3
|
| 10 |
+
- meta
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# DeepSeek-R1-Distill-Llama-8B-NexaQuant
|
| 14 |
+
|
| 15 |
+
## Introduction
|
| 16 |
+
**DeepSeek-R1-Distill-Llama-8B-NexaQuant** is a ... (TODO)
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## How to Use on Your Device
|
| 21 |
+
Below, we outline multiple ways to run the model locally.
|
| 22 |
+
|
| 23 |
+
#### Option 1: Using Nexa SDK
|
| 24 |
+
|
| 25 |
+
**Step 1: Install Nexa SDK**
|
| 26 |
+
|
| 27 |
+
Follow the installation instructions in Nexa SDK's [GitHub repository](https://github.com/NexaAI/nexa-sdk).
|
| 28 |
+
|
| 29 |
+
**Step 2: Run the model with Nexa**
|
| 30 |
+
|
| 31 |
+
Execute the following command in your terminal:
|
| 32 |
+
```bash
|
| 33 |
+
nexa run DeepSeek-R1-Distill-Llama-8B-NexaQuant:q4_0
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
#### Option 2: Using llama.cpp
|
| 37 |
+
|
| 38 |
+
**Step 1: Build llama.cpp on Your Device**
|
| 39 |
+
|
| 40 |
+
Follow the "Building the project" instructions in the llama.cpp [repository](https://github.com/ggerganov/llama.cpp) to build the project.
|
| 41 |
+
|
| 42 |
+
**Step 2: Run the Model with llama.cpp**
|
| 43 |
+
|
| 44 |
+
Once built, run `llama-cli` under `<build_dir>/bin/`:
|
| 45 |
+
```bash
|
| 46 |
+
./llama-cli \
|
| 47 |
+
--model your/local/path/to/DeepSeek-R1-Distill-Llama-8B-NexaQuant \
|
| 48 |
+
--prompt 'Provide step-by-step reasoning enclosed in <think> </think> tags, followed by the final answer enclosed in \boxed{} tags.' \
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
#### Option 3: Using LM Studio
|
| 52 |
+
|
| 53 |
+
**Step 1: Download and Install LM Studio**
|
| 54 |
+
|
| 55 |
+
Get the latest version from the [official website](https://lmstudio.ai/).
|
| 56 |
+
|
| 57 |
+
**Step 2: Load and Run the Model**
|
| 58 |
+
|
| 59 |
+
2. In LM Studio's top panel, search for and select `NexaAIDev/DeepSeek-R1-Distill-Llama-8B-NexaQuant`.
|
| 60 |
+
3. Click `Download` (if not already downloaded) and wait for the model to load.
|
| 61 |
+
4. Once loaded, go to the chat window and start a conversation.
|
| 62 |
+
---
|