Text Generation
Transformers
Safetensors
English
qwen3
deepbrainz
reasoning
mathematics
code
enterprise
0.6b
conversational
text-generation-inference
Instructions to use DeepBrainz/DeepBrainz-R1-0.6B-Exp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepBrainz/DeepBrainz-R1-0.6B-Exp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepBrainz/DeepBrainz-R1-0.6B-Exp") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DeepBrainz/DeepBrainz-R1-0.6B-Exp") model = AutoModelForCausalLM.from_pretrained("DeepBrainz/DeepBrainz-R1-0.6B-Exp", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepBrainz/DeepBrainz-R1-0.6B-Exp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepBrainz/DeepBrainz-R1-0.6B-Exp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DeepBrainz/DeepBrainz-R1-0.6B-Exp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DeepBrainz/DeepBrainz-R1-0.6B-Exp
- SGLang
How to use DeepBrainz/DeepBrainz-R1-0.6B-Exp 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 "DeepBrainz/DeepBrainz-R1-0.6B-Exp" \ --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": "DeepBrainz/DeepBrainz-R1-0.6B-Exp", "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 "DeepBrainz/DeepBrainz-R1-0.6B-Exp" \ --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": "DeepBrainz/DeepBrainz-R1-0.6B-Exp", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DeepBrainz/DeepBrainz-R1-0.6B-Exp with Docker Model Runner:
docker model run hf.co/DeepBrainz/DeepBrainz-R1-0.6B-Exp
Commit History
-
Update README.md
Verified signaturef44a10c
-
Update README.md
Verified signature093ea10 -
Official Release: Optimized & Sanitized
Verified signature2e85e10
-
Update with OPD step_100 checkpoint (10.0% accuracy, 16K context, fixed head_dim)
Verified signature5ab9014
-
Update README.md
Verified signature55ced14 -
Update README.md
Verified signaturebb75a7c
-
Upload model.safetensors with huggingface_hub (#3)
Verified signature- Upload model.safetensors with huggingface_hub (725b5df2409d5d99a7582dfeb0f1d05c2a434fa9)ac753c4 -
Upload model.safetensors with huggingface_hub (#2)
Verified signature- Upload model.safetensors with huggingface_hub (d753bd77e44627e1b5f8d053db0be435fd147bbd)155fb6f -
Delete shard-00008-model-00001-of-00001.safetensors
Verified signature9156c94 -
Delete shard-00007-model-00001-of-00001.safetensors
Verified signaturee9781eb -
Delete shard-00006-model-00001-of-00001.safetensors
Verified signature9266f89 -
Delete shard-00005-model-00001-of-00001.safetensors
Verified signaturec67ecd5 -
Delete shard-00004-model-00001-of-00001.safetensors
Verified signature9334bb3 -
Delete shard-00003-model-00001-of-00001.safetensors
Verified signature2fa7101 -
Delete shard-00002-model-00001-of-00001.safetensors
Verified signaturecf7397b -
Delete shard-00001-model-00001-of-00001.safetensors
Verified signature092375a -
Upload model.safetensors with huggingface_hub (#1)
Verified signature- Upload model.safetensors with huggingface_hub (173233e7508200a63dba95c126f825f5f9f55f1c)9381b11 -
Update README.md
Verified signaturedf2aeb2 -
Upload folder using huggingface_hub
Verified signature11050bf -
initial commit
Verified signatureede249b