Text Generation
Transformers
Safetensors
English
qwen2
chat
synapser
llm
qlora
fine-tuning
conversational
text-generation-inference
Instructions to use drizzymedia/SynapseR-32B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drizzymedia/SynapseR-32B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="drizzymedia/SynapseR-32B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("drizzymedia/SynapseR-32B") model = AutoModelForCausalLM.from_pretrained("drizzymedia/SynapseR-32B", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use drizzymedia/SynapseR-32B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "drizzymedia/SynapseR-32B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drizzymedia/SynapseR-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/drizzymedia/SynapseR-32B
- SGLang
How to use drizzymedia/SynapseR-32B 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 "drizzymedia/SynapseR-32B" \ --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": "drizzymedia/SynapseR-32B", "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 "drizzymedia/SynapseR-32B" \ --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": "drizzymedia/SynapseR-32B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use drizzymedia/SynapseR-32B with Docker Model Runner:
docker model run hf.co/drizzymedia/SynapseR-32B
SynapseR-32B
SynapseR-32B is a large language model developed by Drizzy Media.
Access
This model uses gated access.
To use this model:
- Request access on Hugging Face
- Agree to the model terms
- Authenticate using your Hugging Face account
Fine-tuning
This model supports LoRA and QLoRA fine-tuning.
Example:
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"drizzymedia/SynapseR-32B"
)
# SynapseR-32B
<a href="https://synapse.ai/" target="_blank" style="margin: 2px;">
<img alt="Synapse Chat" src="https://img.shields.io/badge/%F0%9F%A7%A0%20Synapse%20Chat-6B4EFF" style="display: inline-block; vertical-align: middle;"/>
</a>
## Introduction
SynapseR is the advanced reasoning model within the Synapse AI series. Compared with conventional instruction-tuned models, SynapseR is designed with enhanced thinking and reasoning capabilities, delivering significantly improved performance on complex downstream tasks, especially advanced problem-solving, mathematics, coding, and analytical workloads.
SynapseR-32B is the medium-sized reasoning model in the SynapseR family, capable of competing with leading reasoning systems while providing a powerful balance between intelligence, efficiency, and deployment flexibility.
<p align="center">
<img width="100%" src="/drizzymedia/SynapseR-32B/media/main/figures/benchmark.jpg">
</p>
**This repository contains the SynapseR-32B model**, featuring:
- Type: Causal Language Model
- Training Stage: Pretraining & Post-training (Supervised Fine-Tuning and Reinforcement Learning)
- Architecture: Transformer architecture with RoPE, SwiGLU, RMSNorm, and Attention QKV bias
- Number of Parameters: 32.5B
- Number of Non-Embedding Parameters: 31.0B
- Number of Layers: 64
- Number of Attention Heads (GQA): 40 for Query and 8 for Key/Value
- Context Length: Up to 131,072 tokens
- For prompts exceeding 8,192 tokens, enable Synapse Long Context Scaling for improved long-context understanding.
**Note:** For the best experience, review the SynapseR deployment guidelines before running production workloads.
You can try the SynapseR demo or access Synapse models through Synapse Chat.
For more details, visit the official Synapse AI documentation, GitHub repository, and model resources.
## Requirements
SynapseR is built on modern Transformer architecture and requires an up-to-date version of the Hugging Face `transformers` library.
Older versions may cause compatibility issues during model loading.
## Quickstart
Example usage with Transformers:
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "drizzymedia/SynapseR-32B"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Explain how neural networks learn step by step."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer(
[text],
return_tensors="pt"
).to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=32768,
temperature=0.6,
top_p=0.95
)
generated_ids = [
output_ids[len(input_ids):]
for input_ids, output_ids in zip(
model_inputs.input_ids,
generated_ids
)
]
response = tokenizer.batch_decode(
generated_ids,
skip_special_tokens=True
)[0]
print(response)
- Downloads last month
- 7
Model tree for drizzymedia/SynapseR-32B
Base model
Qwen/Qwen2.5-32B