Instructions to use willhx/Qwen3-8B-Base-Math-TauSFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use willhx/Qwen3-8B-Base-Math-TauSFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="willhx/Qwen3-8B-Base-Math-TauSFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("willhx/Qwen3-8B-Base-Math-TauSFT") model = AutoModelForCausalLM.from_pretrained("willhx/Qwen3-8B-Base-Math-TauSFT", 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 willhx/Qwen3-8B-Base-Math-TauSFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "willhx/Qwen3-8B-Base-Math-TauSFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "willhx/Qwen3-8B-Base-Math-TauSFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/willhx/Qwen3-8B-Base-Math-TauSFT
- SGLang
How to use willhx/Qwen3-8B-Base-Math-TauSFT 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 "willhx/Qwen3-8B-Base-Math-TauSFT" \ --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": "willhx/Qwen3-8B-Base-Math-TauSFT", "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 "willhx/Qwen3-8B-Base-Math-TauSFT" \ --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": "willhx/Qwen3-8B-Base-Math-TauSFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use willhx/Qwen3-8B-Base-Math-TauSFT with Docker Model Runner:
docker model run hf.co/willhx/Qwen3-8B-Base-Math-TauSFT
Qwen3-8B-Base-Math-TauSFT
Full BF16 Hugging Face weights exported from the final TauSFT checkpoint at step 405.
Training lineage: Qwen3-8B-Base โ Qwen3-8B-Base-Math โ TauSFT.
Training
- Initialization: Math-stage checkpoint, iteration 300.
- Supervised data: 25,956 tokenized records from Qwen3-32B Tau-bench rollout data (
sft_data.jsonl). - Training: 405 updates, one configured epoch, global batch size 64.
- Optimizer: Adam; learning rate 1e-5 with cosine decay to 1e-6 and 10% warmup.
- Final reported SFT training loss: 0.3738237.
This repository contains the TauSFT stage before subsequent Tau-bench RL. Training data and optimizer states are not included.
Usage
Use a recent version of transformers with Qwen3 support, plus torch, accelerate, and safetensors.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "willhx/Qwen3-8B-Base-Math-TauSFT"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto"
)
messages = [{"role": "user", "content": "Hello!"}]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
eos_token_id=[tokenizer.eos_token_id, tokenizer.convert_tokens_to_ids("<|im_end|>")],
pad_token_id=tokenizer.pad_token_id,
)
print(tokenizer.decode(outputs[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
The tokenizer and architecture configuration are preserved from Qwen3-8B-Base. For complete Tau-bench interactions, supply the corresponding retail policy, tool schemas, and environment. The example explicitly stops at the assistant turn-ending token as well as the base EOS token.
- Downloads last month
- 263
Model tree for willhx/Qwen3-8B-Base-Math-TauSFT
Base model
willhx/Qwen3-8B-Base-Math