Text Generation
Transformers
Safetensors
qwen3
llama-factory
full-finetuning
qwen3-4b
nothink
oci
opencodeinstruct
sft
conversational
text-generation-inference
Instructions to use modrill/qwen3-4b-nothink-s1-full-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modrill/qwen3-4b-nothink-s1-full-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="modrill/qwen3-4b-nothink-s1-full-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("modrill/qwen3-4b-nothink-s1-full-sft") model = AutoModelForMultimodalLM.from_pretrained("modrill/qwen3-4b-nothink-s1-full-sft") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use modrill/qwen3-4b-nothink-s1-full-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "modrill/qwen3-4b-nothink-s1-full-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "modrill/qwen3-4b-nothink-s1-full-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/modrill/qwen3-4b-nothink-s1-full-sft
- SGLang
How to use modrill/qwen3-4b-nothink-s1-full-sft 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 "modrill/qwen3-4b-nothink-s1-full-sft" \ --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": "modrill/qwen3-4b-nothink-s1-full-sft", "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 "modrill/qwen3-4b-nothink-s1-full-sft" \ --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": "modrill/qwen3-4b-nothink-s1-full-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use modrill/qwen3-4b-nothink-s1-full-sft with Docker Model Runner:
docker model run hf.co/modrill/qwen3-4b-nothink-s1-full-sft
Qwen3-4B No-Think S1 (Full SFT)
Full-parameter supervised fine-tuning (SFT) of Qwen/Qwen3-4B-Base on oci_nothink_50k (50k OpenCodeInstruct samples) using the qwen3_nothink chat template (direct answers, no extended think blocks).
Model description
- Method: full SFT (all weights trainable), DeepSpeed ZeRO-2, 4 GPUs
- Dataset: oci_nothink_50k (50,000 examples)
- Template: qwen3_nothink
- Not LoRA / not QLoRA: entire 4B model was updated
Note: The final training save was interrupted by disk full; published weights were restored from checkpoint-782 (same step count as training completion).
Training details
| Field | Value |
|---|---|
| Epochs | 1 |
| Seed | 42 |
| cutoff_len | 4096 |
| packing | false |
| per_device_train_batch_size | 4 |
| gradient_accumulation_steps | 4 |
| effective_batch_size | 64 (4 x 4 x 4 GPUs) |
| learning_rate | 3e-5 |
| train_loss | 0.1572 |
| train_steps | 782 |
| finished_at | 2026-06-10 06:18 CST |
| runtime | ~53 min |
Related models
- Think SFT (same project): modrill/qwen3-4b-think-s1-ep23-full-sft - ocr_think_50k, qwen3 template
- Base: Qwen/Qwen3-4B-Base
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "modrill/qwen3-4b-nothink-s1-full-sft"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True,
)
License
Released under Apache 2.0 (see upstream Qwen model card if not bundled here).
- Downloads last month
- 13
Model tree for modrill/qwen3-4b-nothink-s1-full-sft
Base model
Qwen/Qwen3-4B-Base