Text Generation
Transformers
GGUF
English
Korean
dnotitia
nlp
llm
slm
conversation
chat
reasoning
r1
TensorBlock
GGUF
conversational
Instructions to use tensorblock/DNA-R1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/DNA-R1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/DNA-R1-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/DNA-R1-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/DNA-R1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/DNA-R1-GGUF", filename="DNA-R1-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/DNA-R1-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 tensorblock/DNA-R1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/DNA-R1-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/DNA-R1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/DNA-R1-GGUF:Q2_K
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 tensorblock/DNA-R1-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/DNA-R1-GGUF:Q2_K
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 tensorblock/DNA-R1-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/DNA-R1-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/DNA-R1-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/DNA-R1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/DNA-R1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/DNA-R1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/DNA-R1-GGUF:Q2_K
- SGLang
How to use tensorblock/DNA-R1-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/DNA-R1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/DNA-R1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/DNA-R1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/DNA-R1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/DNA-R1-GGUF with Ollama:
ollama run hf.co/tensorblock/DNA-R1-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/DNA-R1-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 tensorblock/DNA-R1-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 tensorblock/DNA-R1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/DNA-R1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/DNA-R1-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/DNA-R1-GGUF:Q2_K
- Lemonade
How to use tensorblock/DNA-R1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/DNA-R1-GGUF:Q2_K
Run and chat with the model
lemonade run user.DNA-R1-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- DNA-R1-Q3_K_L.gguf +0 -3
- DNA-R1-Q3_K_S.gguf +0 -3
- DNA-R1-Q4_0.gguf +0 -3
- DNA-R1-Q4_K_M.gguf +0 -3
- DNA-R1-Q4_K_S.gguf +0 -3
- DNA-R1-Q5_0.gguf +0 -3
- DNA-R1-Q5_K_M.gguf +0 -3
- DNA-R1-Q5_K_S.gguf +0 -3
- DNA-R1-Q6_K.gguf +0 -3
- DNA-R1-Q8_0.gguf +0 -3
DNA-R1-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:eeac3b345fe1fb6b2a48fe5f7ea4aa74d98bdd27aa729fc081d0cbf647c0c1ed
|
| 3 |
-
size 7930181408
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:07b97cbeb4b0387871d52b198713c2ce126154b7913a9a6145927f48ea76e539
|
| 3 |
-
size 6504773408
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e1eee3897925f46cd48274a5477b978f3c0a425fab704249a646b5b61bb4d400
|
| 3 |
-
size 8383447488
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b51e09e3eca965111c4701caa727d076728647d4fd72a98f6a8b30df4fcdc049
|
| 3 |
-
size 9053143488
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:111e0ff7cf5f60f853d7f7273d9281e6f496a6658c614cb2e5d2970b9b3ea60e
|
| 3 |
-
size 8440791488
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e3f04cf4111dc127f7558667a4b63e392019fa64747670443f3195d00ddf0433
|
| 3 |
-
size 10151611328
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f9b0f2be71e9ac3eb7133e9c419405f986ba63b6aa83c59cb898314f0495287c
|
| 3 |
-
size 10604219328
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:07faa4d832e19bf388fc21a5c435f1adfcec3f8a0e98f9a797fc39cdc371330c
|
| 3 |
-
size 10151611328
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:68b9d4b298e671a904385c8b9b67101d804c39eb8e35c3497c62ec9aeda44bf1
|
| 3 |
-
size 12030285408
|
|
|
|
|
|
|
|
|
|
|
|
DNA-R1-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2961d8fe7e5920f79463672e8ec1916232f5243a856891afdfd2f87f95c3fc74
|
| 3 |
-
size 15580544288
|
|
|
|
|
|
|
|
|
|
|
|