Instructions to use Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920") 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("Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920") model = AutoModelForCausalLM.from_pretrained("Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920", 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 Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920
- SGLang
How to use Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920 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 "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920" \ --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": "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920", "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 "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920" \ --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": "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920 with Docker Model Runner:
docker model run hf.co/Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920
gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920
Qwen/Qwen3-4B trained with SFT using teacher gpt-5.4-mini. This is the final checkpoint of a completed textcraft stage: five epochs, 55 optimizer updates in that stage.
Standalone training initialized independently from the base model; this is not a sequential checkpoint.
Training-completion evidence: Historical audit verified all expected optimizer updates and all five epoch checkpoint exports; these runs predate stage-manifest.json.
Evaluation uses avg@4: mean success across four attempts per official test task, not best-of-four success. Temperature 0.4, top-p 1.0, top-k 20, thinking disabled, and 512 generated tokens per turn.
| Environment | Successes / attempts | avg@4 success | Episode errors |
|---|---|---|---|
| textcraft | 318 / 400 | 79.5000% | 0 |
Saved-result checks verified exact task/sample coverage and score consistency. Zero episode errors does not imply every generated turn was well formed.
Provenance and interpretation notes:
- This is one trained checkpoint, not evidence of a general method advantage or replication across training seeds.
- The selection inventory records file names, sizes and modification times. It is not a tensor-byte hash binding to historical evaluation responses.
- Use the complete repaired evaluation, not the original error-excluding summary. Some repaired artifacts reuse complete original rollouts; historical serving logs are incomplete.
- Historical SFT and ROSE recipes differ in learning-rate scheduling, weight decay, parameter precision, formatting, and some training turn caps. This is not an objective-only ablation.
- TextCraft-4B repaired evaluation used different recipe ordering and distractor sets from the original server instance; available repaired comparisons share observations within that lane.
The HF export is stored at the repository root; configuration, tokenizer, and all weight shards are included. Optimizer state, raw logs, and teacher trajectories are not included. Machine-readable source references and checksums are in experiment.json.
from transformers import AutoTokenizer, AutoModelForCausalLM
repo_id = "Diluner/gpt54-mini-standalone-qwen3-4b-sft-textcraft-20260920"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(repo_id, torch_dtype="auto")
Repository access is public, as authorized by the experiment owner. No license is asserted here; consult the base model and applicable terms.
- Downloads last month
- 15