Instructions to use varadsrivastava/lm-playschool-qwen3.5-2b-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use varadsrivastava/lm-playschool-qwen3.5-2b-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="varadsrivastava/lm-playschool-qwen3.5-2b-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("varadsrivastava/lm-playschool-qwen3.5-2b-sft") model = AutoModelForCausalLM.from_pretrained("varadsrivastava/lm-playschool-qwen3.5-2b-sft", 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 varadsrivastava/lm-playschool-qwen3.5-2b-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "varadsrivastava/lm-playschool-qwen3.5-2b-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "varadsrivastava/lm-playschool-qwen3.5-2b-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/varadsrivastava/lm-playschool-qwen3.5-2b-sft
- SGLang
How to use varadsrivastava/lm-playschool-qwen3.5-2b-sft 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 "varadsrivastava/lm-playschool-qwen3.5-2b-sft" \ --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": "varadsrivastava/lm-playschool-qwen3.5-2b-sft", "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 "varadsrivastava/lm-playschool-qwen3.5-2b-sft" \ --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": "varadsrivastava/lm-playschool-qwen3.5-2b-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use varadsrivastava/lm-playschool-qwen3.5-2b-sft with Docker Model Runner:
docker model run hf.co/varadsrivastava/lm-playschool-qwen3.5-2b-sft
R1 — Imitation (SFT)
Part of a five-regime developmental sweep of post-training methods for dialogue-game competence (LM Playschool Challenge 2026, team DAIR).
LoRA supervised fine-tuning of Qwen3.5-2B on success-filtered gameplay transcripts from the public playpen-data corpus (~20.2k successful per-player trajectories), mixed with ~12% general instruction data (SmolTalk) to guard against catastrophic forgetting; 22,626 conversations total, loss on assistant tokens only. Two epochs, LoRA r=32/alpha=64, lr 1e-4 cosine, effective batch 16, bf16; adapter merged.
Effect: raises clemscore 13.63 -> 55.61, almost entirely by eliminating aborted episodes (protocol compliance) rather than by improving move quality.
All numbers are clemscore / statscore on the playpen validation split,
measured in a single frozen environment (Python 3.11, clemcore pinned via
playpen, clembench pinned requirements) with two upstream fixes applied:
a division-by-zero guard in the privateshared Game Master and the
punkt_tab NLTK resource for the IFEval scorer. Earlier revisions of this
card reported numbers from an unpinned environment; see the paper for the
environment-sensitivity analysis.
Checkpoint family (LM Playschool challenge, team DAIR)
| Regime | Repo | clem | stat |
|---|---|---|---|
| R1 imitation (SFT) | lm-playschool-qwen3.5-2b-sft |
55.61 | 43.87 |
| R2 outcome contrast (DPO) | lm-playschool-qwen3.5-2b-sft-dpo |
67.39 | 44.72 |
| R3 self-imitation (SFT) | lm-playschool-qwen3.5-2b-iter3 |
61.06 | 44.01 |
| R4 corrective feedback (DPO) | lm-playschool-qwen3.5-2b-iter4 |
67.64 | 44.31 |
| R5 GRPO (control) | lm-playschool-qwen3.5-2b-grpo-base-s42 |
62.43 | 44.19 |
| R5 GRPO + RND | lm-playschool-qwen3.5-2b-grpo-rnd-s42 |
67.44 | 43.53 |
Base model: Qwen3.5-2B (13.63 / 44.22 in the same environment). Paper: Raising a Small Language Model: From Imitation to Curiosity in Dialogue Games (LM Playschool Challenge 2026).
- Downloads last month
- 384