Instructions to use openenv/Qwen3-1.7B-Wordle-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openenv/Qwen3-1.7B-Wordle-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openenv/Qwen3-1.7B-Wordle-SFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("openenv/Qwen3-1.7B-Wordle-SFT") model = AutoModelForCausalLM.from_pretrained("openenv/Qwen3-1.7B-Wordle-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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use openenv/Qwen3-1.7B-Wordle-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openenv/Qwen3-1.7B-Wordle-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": "openenv/Qwen3-1.7B-Wordle-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openenv/Qwen3-1.7B-Wordle-SFT
- SGLang
How to use openenv/Qwen3-1.7B-Wordle-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 "openenv/Qwen3-1.7B-Wordle-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": "openenv/Qwen3-1.7B-Wordle-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 "openenv/Qwen3-1.7B-Wordle-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": "openenv/Qwen3-1.7B-Wordle-SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openenv/Qwen3-1.7B-Wordle-SFT with Docker Model Runner:
docker model run hf.co/openenv/Qwen3-1.7B-Wordle-SFT
Qwen3-1.7B-Wordle-SFT
Qwen3-1.7B after a short SFT warmup on openenv/wordle-tool-calls-sft, 1,000 Wordle games played by a solver. It plays through a guess tool and writes a short reasoning before each guess. It is the starting point for GRPO in the OpenEnv Wordle tutorial, which produces openenv/Qwen3-1.7B-Wordle-SFT-GRPO.
| Model | Wins on 30 words (greedy) |
|---|---|
| Qwen3-1.7B | 0/30 |
| This model | 10/30 |
The 30 words (secrets30.txt) come from the 156 nouns TextArena draws its secrets from, the same list used in training, and each model was trained once. Treat the numbers as one run on this environment's words.
Training
One epoch (63 steps) of SFTTrainer with assistant_only_loss=True, learning rate 1e-5 with a cosine schedule, batch size 16, max length 2048, on one A100 80GB through Hugging Face Jobs (about 7 minutes for the whole job, $0.30). Trained in fp32 and shared in bf16. Script: sft.py. Training curves: Trackio.
Use it
Play it against the environment with evaluate.py:
uv run evaluate.py --model openenv/Qwen3-1.7B-Wordle-SFT --thinking --max-new-tokens 512 --games 5 --env-url https://huggingface.co/proxy/openenv-wordle.hf.space --out games.jsonl
Framework versions
- TRL: 1.16.0
- Transformers: 5.20.2
- PyTorch: 2.14.1
- Datasets: 5.1.0
- Downloads last month
- 537