Instructions to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF", dtype="auto") - llama-cpp-python
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF", filename="deepseek-r1-distill-llama-8b-q2_k.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF 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 matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
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 matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
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 matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with Ollama:
ollama run hf.co/matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
- Unsloth Studio
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with Docker Model Runner:
docker model run hf.co/matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
- Lemonade
How to use matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull matrixportalx/DeepSeek-R1-Distill-Llama-8B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DeepSeek-R1-Distill-Llama-8B-GGUF-Q4_K_M
List all available models
lemonade list
Matrix commited on
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
library_name: transformers
|
| 4 |
-
base_model: deepseek-ai/DeepSeek-R1-Distill-Llama-8B
|
| 5 |
tags:
|
| 6 |
- llama-cpp
|
| 7 |
- gguf-my-repo
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF
|
|
@@ -22,12 +22,12 @@ Invoke the llama.cpp server or the CLI.
|
|
| 22 |
|
| 23 |
### CLI:
|
| 24 |
```bash
|
| 25 |
-
llama-cli --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-
|
| 26 |
```
|
| 27 |
|
| 28 |
### Server:
|
| 29 |
```bash
|
| 30 |
-
llama-server --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-
|
| 31 |
```
|
| 32 |
|
| 33 |
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
|
@@ -44,9 +44,9 @@ cd llama.cpp && LLAMA_CURL=1 make
|
|
| 44 |
|
| 45 |
Step 3: Run inference through the main binary.
|
| 46 |
```
|
| 47 |
-
./llama-cli --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-
|
| 48 |
```
|
| 49 |
or
|
| 50 |
```
|
| 51 |
-
./llama-server --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-
|
| 52 |
```
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
library_name: transformers
|
|
|
|
| 4 |
tags:
|
| 5 |
- llama-cpp
|
| 6 |
- gguf-my-repo
|
| 7 |
+
base_model: deepseek-ai/DeepSeek-R1-Distill-Llama-8B
|
| 8 |
---
|
| 9 |
|
| 10 |
# matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF
|
|
|
|
| 22 |
|
| 23 |
### CLI:
|
| 24 |
```bash
|
| 25 |
+
llama-cli --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-q5_0.gguf -p "The meaning to life and the universe is"
|
| 26 |
```
|
| 27 |
|
| 28 |
### Server:
|
| 29 |
```bash
|
| 30 |
+
llama-server --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-q5_0.gguf -c 2048
|
| 31 |
```
|
| 32 |
|
| 33 |
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
|
|
|
| 44 |
|
| 45 |
Step 3: Run inference through the main binary.
|
| 46 |
```
|
| 47 |
+
./llama-cli --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-q5_0.gguf -p "The meaning to life and the universe is"
|
| 48 |
```
|
| 49 |
or
|
| 50 |
```
|
| 51 |
+
./llama-server --hf-repo matrixportal/DeepSeek-R1-Distill-Llama-8B-GGUF --hf-file deepseek-r1-distill-llama-8b-q5_0.gguf -c 2048
|
| 52 |
```
|