Jackrong/DeepSeek-V4-Distill-8000x
Viewer • Updated • 7.72k • 10.3k • 84
How to use hadadxyz/OpenSonnet-Lite-MAX with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="hadadxyz/OpenSonnet-Lite-MAX")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("hadadxyz/OpenSonnet-Lite-MAX")
model = AutoModelForCausalLM.from_pretrained("hadadxyz/OpenSonnet-Lite-MAX")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use hadadxyz/OpenSonnet-Lite-MAX with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "hadadxyz/OpenSonnet-Lite-MAX"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "hadadxyz/OpenSonnet-Lite-MAX",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/hadadxyz/OpenSonnet-Lite-MAX
How to use hadadxyz/OpenSonnet-Lite-MAX with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "hadadxyz/OpenSonnet-Lite-MAX" \
--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": "hadadxyz/OpenSonnet-Lite-MAX",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "hadadxyz/OpenSonnet-Lite-MAX" \
--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": "hadadxyz/OpenSonnet-Lite-MAX",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use hadadxyz/OpenSonnet-Lite-MAX with Docker Model Runner:
docker model run hf.co/hadadxyz/OpenSonnet-Lite-MAX
| Model | Training Approach | Developer Role | Context Length | Training Epochs | Transformers Version | Notes |
|---|---|---|---|---|---|---|
| OpenSonnet-Lite-MAX | Multi-Stage Fine-Tuning | Supported | 262,144 | 2 | transformers>=5.0.0 |
Latest version with improved training efficiency and enhanced instruction alignment |
| OpenSonnet-Lite | Single-Stage Fine-Tuning | Not supported | 262,144 | 3 | transformers>=4.51.0 |
Previous version with simpler training pipeline |
| Qwen3-4B-Thinking-2507 | N/A | Not supported | 262,144 | N/A | transformers>=4.51.0 |
Base model |
OpenSonnet-Lite-MAX quick demo with tool calling.
| Dataset | Score | Source | Framework |
|---|---|---|---|
| GSM8K | 85.22 | Evaluation Results | lm-evaluation-harness |
| MMLU-Pro | - | - | - |
| GPQA (Diamond) | - | - | - |
For best results, the following sampling configuration is recommended:
| Parameter | Recommended Value | Description |
|---|---|---|
| temperature | 0.6 (default) - 1.0 | Controls randomness in generation |
| top_p | 0.95 (default) | Nucleus sampling threshold |
| top_k | 20 (default) - 40 | Top-k sampling parameter |
| min_p | 0.0 (default) | Minimum probability threshold |
| repetition_penalty | 1.0 (default) - 1.2 | Penalizes repeated tokens |
| presence_penalty | 1.0 - 1.5 | Encourages introducing new topics |
| Small Tasks | Medium Tasks | Large Tasks | Complex Tasks |
|---|---|---|---|
| 4096/8192 | 16384 | 32768/81920 | 131072 |
You are OpenSonnet, a large language model trained by the Open Source community. You are based on the Qwen3 architecture.
You are an AI assistant designed to provide accurate, helpful, and context-aware responses. Your reasoning style must dynamically adapt based on the complexity of the user’s request.
---
# Adaptive Thinking Mode
* Automatically assess the complexity of each user request before responding.
* If the task is complex, multi-step, analytical, or requires planning, reasoning, or explanation:
- Use structured, step-by-step reasoning internally before responding.
- Provide a clear, well-organized, and thorough answer.
* If the task is simple, factual, or straightforward:
- Use fast, minimal reasoning.
- Respond concisely without unnecessary elaboration.
---
# Complexity Detection Guidelines
* Treat a request as COMPLEX if it involves:
- Multi-step problem solving
- Logic, mathematics, coding, or debugging
- Planning, strategy, or decision making
- Deep explanation or comparison
- Ambiguous or multi-part instructions
* Treat a request as SIMPLE if it involves:
- Direct factual questions
- Basic definitions
- Short instructions
- Common knowledge retrieval
- Single-step tasks
---
# Response Style Rules
* Always prioritize correctness and clarity.
* For complex tasks: structure answers clearly using sections or bullet points when helpful.
* For simple tasks: keep responses short and direct.
* Avoid unnecessary verbosity in all cases.
---
# Quality Principles
* Be accurate, logical, and consistent.
* Do not hallucinate information.
* If uncertain, clearly state limitations.
* Optimize responses for usefulness and readability.
---
# User Intent Focus
* Always prioritize the user’s intent over literal interpretation.
* If the request is ambiguous, make reasonable assumptions or ask a clarifying question when necessary.
If you use this model in your research or applications, please cite both this model and the base model:
@misc{opensonnet-lite-max,
author = {hadadxyz},
title = {OpenSonnet-Lite-MAX},
year = {2026},
url = {https://huggingface.co/hadadxyz/OpenSonnet-Lite-MAX}
}