Instructions to use MMOPD/Qwen3-1.7B-OT3-tau with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MMOPD/Qwen3-1.7B-OT3-tau with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MMOPD/Qwen3-1.7B-OT3-tau") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MMOPD/Qwen3-1.7B-OT3-tau") model = AutoModelForCausalLM.from_pretrained("MMOPD/Qwen3-1.7B-OT3-tau", 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 MMOPD/Qwen3-1.7B-OT3-tau with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MMOPD/Qwen3-1.7B-OT3-tau" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MMOPD/Qwen3-1.7B-OT3-tau", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MMOPD/Qwen3-1.7B-OT3-tau
- SGLang
How to use MMOPD/Qwen3-1.7B-OT3-tau 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 "MMOPD/Qwen3-1.7B-OT3-tau" \ --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": "MMOPD/Qwen3-1.7B-OT3-tau", "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 "MMOPD/Qwen3-1.7B-OT3-tau" \ --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": "MMOPD/Qwen3-1.7B-OT3-tau", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MMOPD/Qwen3-1.7B-OT3-tau with Docker Model Runner:
docker model run hf.co/MMOPD/Qwen3-1.7B-OT3-tau
Qwen3-1.7B-OT3-tau
Qwen3-1.7B-OT3-tau is MMOPD/Qwen3-1.7B-OT3-2ep continued with supervised
fine-tuning on the Tau2 tool-use trajectories from
inclusionAI/AReaL-tau2-data.
The starting point is a thinking model — every answer opens with a <think> block — that was
itself Qwen/Qwen3-1.7B-Base fine-tuned on OpenThoughts3-1.2M. This checkpoint adds multi-turn,
tool-calling agent behaviour on top of that reasoning ability while keeping the native
chat template unchanged.
This checkpoint is released as one of a matched pair: MMOPD/Qwen3-4B-OT3-tau and
MMOPD/Qwen3-1.7B-OT3-tau were trained on the same data with identical hyperparameters,
so they differ only in model size.
Training data
33,531 Tau2 trajectories (tau2_sft_train.jsonl), every trajectory included regardless of
task outcome. Each example is one assistant turn — reasoning, visible content, and tool calls —
conditioned on the full preceding conversation.
Preprocessing:
answer.thinkingis renamed toreasoning_content, the field the native template reads.- Tool-call-only messages that omit
contentare normalised tocontent: "", since the template accessesmessage.contentdirectly. - Histories longer than the 32,768-token context keep the system policy and the complete interaction from the final real user query onward. If still too long, only the largest tool-result payloads are shortened, retaining their head and tail. The final user request and the target turn are never shortened.
Loss masking
The native chat_template.jinja has no {% generation %} blocks, so assistant-only masks
cannot be derived from it. Labels are instead built by rendering each example twice — the
context with add_generation_prompt=True, and the full conversation with the target appended —
and requiring the first token sequence to be an exact prefix of the second. Prefix tokens get
label -100; everything after the boundary is supervised:
<think>
REASONING
</think>
CONTENT OR TOOL CALLS<|im_end|>
So loss covers the opening <think>, the reasoning, the closing </think>, the visible
content or tool calls, and the final <|im_end|> — training the model to stop. The assistant
header, system policy, user turns, earlier assistant turns and tool responses are all masked.
Training procedure
| Base | MMOPD/Qwen3-1.7B-OT3-2ep |
| Objective | Full-parameter SFT, completion-only loss |
| Epochs | 2 (2,096 optimizer steps, 1,048 per epoch) |
| Learning rate | 5e-6, cosine decay to a 5e-7 floor, 3% warmup |
| Weight decay | 0.0 |
| Batch | 1 per device x 8 grad accum x 4 GPUs = effective 32 |
| Sequence length | 32,768 |
| Precision | bf16 mixed precision, full-parameter FSDP (FULL_SHARD) |
| Hardware | 4x NVIDIA H200 |
| Compute | ~22.7 GPU-hours (5.7 h wall clock) |
| Seed | 42 |
Trained with TRL SFTTrainer on pretokenized
input_ids/labels. Released weights are bf16, matching the base snapshot.
Usage
The chat template is unchanged from MMOPD/Qwen3-1.7B-OT3-2ep, including its thinking behaviour.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "MMOPD/Qwen3-1.7B-OT3-tau"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
messages = [{"role": "user", "content": "Book me a flight to Seoul next Tuesday."}]
inputs = tok.apply_chat_template(
messages, add_generation_prompt=True, enable_thinking=True,
return_tensors="pt", return_dict=True,
).to(model.device)
out = model.generate(**inputs, max_new_tokens=1024)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=False))
Pass tools through apply_chat_template(..., tools=[...]) to use the tool-calling behaviour
this checkpoint was trained for.
Note that config.json carries use_cache: false, inherited from the base snapshot. Set
use_cache=True when generating with transformers for the usual KV-cache speedup; vLLM
manages its own cache and is unaffected.
Limitations
Trained on all Tau2 trajectories regardless of task success, so it imitates unsuccessful as well as successful tool-use episodes. It inherits the base model's limitations and has not been safety-tuned beyond whatever the base and the Tau2 data provide. No held-out Tau2 evaluation is reported here.
License
Apache-2.0, following MMOPD/Qwen3-1.7B-OT3-2ep and the Qwen3 base models.
- Downloads last month
- 333