agentlans/common-crawl-sample
Viewer • Updated • 4.82M • 1.79k • 8
How to use jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF", filename="DeepSeek-R1-DRAFT-0.6B-128k-Q4_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0 # Run inference directly in the terminal: llama-cli -hf jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0 # Run inference directly in the terminal: llama-cli -hf jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
# 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 jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
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 jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
docker model run hf.co/jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
How to use jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF with Ollama:
ollama run hf.co/jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
How to use jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF with Unsloth Studio:
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 jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF to start chatting
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 jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF to start chatting
How to use jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF with Docker Model Runner:
docker model run hf.co/jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
How to use jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jukofyork/DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF:Q4_0
lemonade run user.DeepSeek-R1-DRAFT-0.6B-v3.0-GGUF-Q4_0
lemonade list
A 0.6B parameter draft (speculative decoding) model for use with DeepSeek-R1-0528 and DeepSeek-R1.
See DeepSeek-R1-DRAFT-0.6B-v3.0 for the models in transformers format, and a detailed explanation of how the model was created.
I've included the Q4_0 quants for 4 different context lengths:
Qwen2.5-0.5B doesn't allow for any of the other 4-bit quants to be made (and experimentation has shown using more or less than 4-bits for speculative decoding is a waste of time anwyay).llama.cpp using "static-YaRN" the scaling factor remains constant regardless of input length! Only use the longer context versions when processing long contexts is required...4-bit