Transformers
PyTorch
Safetensors
GGUF
qwen2
unsloth
trl
sft
text-generation-inference
conversational
Instructions to use Lemonsion/DeepSeek-R1-traffic-COT-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Lemonsion/DeepSeek-R1-traffic-COT-4", dtype="auto") - llama-cpp-python
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Lemonsion/DeepSeek-R1-traffic-COT-4", filename="unsloth.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0 # Run inference directly in the terminal: llama-cli -hf Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0 # Run inference directly in the terminal: llama-cli -hf Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
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 Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
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 Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
Use Docker
docker model run hf.co/Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
- LM Studio
- Jan
- Ollama
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 with Ollama:
ollama run hf.co/Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
- Unsloth Studio new
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 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 Lemonsion/DeepSeek-R1-traffic-COT-4 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 Lemonsion/DeepSeek-R1-traffic-COT-4 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Lemonsion/DeepSeek-R1-traffic-COT-4 to start chatting
- Docker Model Runner
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 with Docker Model Runner:
docker model run hf.co/Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
- Lemonade
How to use Lemonsion/DeepSeek-R1-traffic-COT-4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Lemonsion/DeepSeek-R1-traffic-COT-4:Q8_0
Run and chat with the model
lemonade run user.DeepSeek-R1-traffic-COT-4-Q8_0
List all available models
lemonade list
Trained with Unsloth
Browse files- README.md +2 -0
- config.json +32 -0
- generation_config.json +11 -0
- pytorch_model.bin +3 -0
README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
- unsloth
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# Model Card for Model ID
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
- unsloth
|
| 5 |
+
- trl
|
| 6 |
+
- sft
|
| 7 |
---
|
| 8 |
|
| 9 |
# Model Card for Model ID
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151646,
|
| 7 |
+
"eos_token_id": 151643,
|
| 8 |
+
"hidden_act": "silu",
|
| 9 |
+
"hidden_size": 1536,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"intermediate_size": 8960,
|
| 12 |
+
"max_position_embeddings": 131072,
|
| 13 |
+
"max_window_layers": 21,
|
| 14 |
+
"model_type": "qwen2",
|
| 15 |
+
"num_attention_heads": 12,
|
| 16 |
+
"num_hidden_layers": 28,
|
| 17 |
+
"num_key_value_heads": 2,
|
| 18 |
+
"pad_token_id": 151654,
|
| 19 |
+
"rms_norm_eps": 1e-06,
|
| 20 |
+
"rope_scaling": null,
|
| 21 |
+
"rope_theta": 10000,
|
| 22 |
+
"sliding_window": null,
|
| 23 |
+
"tie_word_embeddings": false,
|
| 24 |
+
"torch_dtype": "float16",
|
| 25 |
+
"transformers_version": "4.50.3",
|
| 26 |
+
"unsloth_fixed": true,
|
| 27 |
+
"unsloth_version": "2025.3.19",
|
| 28 |
+
"use_cache": true,
|
| 29 |
+
"use_mrope": false,
|
| 30 |
+
"use_sliding_window": false,
|
| 31 |
+
"vocab_size": 151936
|
| 32 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 151646,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 151643,
|
| 6 |
+
"max_length": 131072,
|
| 7 |
+
"pad_token_id": 151654,
|
| 8 |
+
"temperature": 0.6,
|
| 9 |
+
"top_p": 0.95,
|
| 10 |
+
"transformers_version": "4.50.3"
|
| 11 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6c0c4e7fa60ebe165a5517aab05665161541d5d2975a42bcc0a98df72af1373
|
| 3 |
+
size 3554290006
|