Instructions to use BytedTsinghua-SIA/Sequential-Qwen3-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BytedTsinghua-SIA/Sequential-Qwen3-1.7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BytedTsinghua-SIA/Sequential-Qwen3-1.7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BytedTsinghua-SIA/Sequential-Qwen3-1.7B") model = AutoModelForCausalLM.from_pretrained("BytedTsinghua-SIA/Sequential-Qwen3-1.7B") 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 BytedTsinghua-SIA/Sequential-Qwen3-1.7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BytedTsinghua-SIA/Sequential-Qwen3-1.7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BytedTsinghua-SIA/Sequential-Qwen3-1.7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BytedTsinghua-SIA/Sequential-Qwen3-1.7B
- SGLang
How to use BytedTsinghua-SIA/Sequential-Qwen3-1.7B 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 "BytedTsinghua-SIA/Sequential-Qwen3-1.7B" \ --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": "BytedTsinghua-SIA/Sequential-Qwen3-1.7B", "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 "BytedTsinghua-SIA/Sequential-Qwen3-1.7B" \ --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": "BytedTsinghua-SIA/Sequential-Qwen3-1.7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BytedTsinghua-SIA/Sequential-Qwen3-1.7B with Docker Model Runner:
docker model run hf.co/BytedTsinghua-SIA/Sequential-Qwen3-1.7B
Sequential-Qwen3-1.7B
Sequential-Qwen3-1.7B is a research checkpoint from the Direct-OPD collection. It is released for reproducible research on post-training and reinforcement-learning-style optimization for reasoning-oriented language models.
Model Details
- Repository:
BytedTsinghua-SIA/Sequential-Qwen3-1.7B - Collection: Direct-OPD
- Source checkpoint:
c7wc7w/20260606_ContinueOPD_QuestA_Nemotron_Qwen3_1_7B_CKPT300_KL1_Seed185599225_LEN2k_ckpt300 - Model family: Qwen3
- Parameter scale: 1.7B
- Training recipe: Sequential / ContinueOPD
- Checkpoint: ckpt300
- License: Apache-2.0
Training and Provenance
A sequential Direct-OPD checkpoint initialized from the Qwen3 1.7B family and continued from the QuestA trajectory indicated by the source checkpoint name.
The checkpoint was mirrored from ModelScope to Hugging Face for easier access and inclusion in the Direct-OPD collection. The source checkpoint name records the available release metadata, including method, model family, KL/adaptive-KL setting when present, sequence length setting, and checkpoint step. Full training data, hyperparameters, and evaluation protocol should be taken from the associated Direct-OPD release materials when available.
Intended Use
This model is intended for research use, including:
- studying post-training and RL-style optimization behavior;
- comparing Direct-OPD checkpoints across model families and parameter scales;
- running offline evaluation on reasoning, instruction-following, and alignment benchmarks;
- serving as an initialization or comparison point for further research.
It is not intended for direct deployment in safety-critical, medical, legal, financial, or other high-stakes settings without independent evaluation and safeguards.
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "BytedTsinghua-SIA/Sequential-Qwen3-1.7B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "user", "content": "Explain the main idea of Direct-OPD in one paragraph."},
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
output_ids = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.95,
)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
Evaluation
No benchmark results are included in this model card yet. Users should evaluate the checkpoint on the tasks and safety criteria relevant to their use case before drawing conclusions or deploying derived systems.
Recommended reporting for downstream evaluations:
- benchmark name and version;
- decoding configuration;
- prompt template and chat template;
- number of samples and random seeds;
- comparison baselines from the same model family.
Limitations
- The model may generate incorrect, misleading, biased, or unsafe content.
- The model card does not currently document the full training dataset or complete hyperparameter schedule.
- Performance can be sensitive to prompt format, decoding settings, and evaluation harness.
- Research checkpoints can regress on general instruction-following or safety behavior while improving on targeted optimization objectives.
Citation
Citation information for the associated Direct-OPD research release will be added when available. If you use this checkpoint, please cite the Direct-OPD project or paper once published, and include the model repository URL in your reproducibility artifacts.
Acknowledgements
This checkpoint is part of the Direct-OPD model collection maintained by BytedTsinghua-SIA and mirrored from the original ModelScope release.
- Downloads last month
- 24