Text Generation
Transformers
Safetensors
Rust
English
qwen3
supervised-fine-tuning
tool-use
agents
glyph
conversational
text-generation-inference
Instructions to use JayZenith/GLYPH-SFT-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JayZenith/GLYPH-SFT-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JayZenith/GLYPH-SFT-V2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JayZenith/GLYPH-SFT-V2") model = AutoModelForCausalLM.from_pretrained("JayZenith/GLYPH-SFT-V2") 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
- vLLM
How to use JayZenith/GLYPH-SFT-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JayZenith/GLYPH-SFT-V2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JayZenith/GLYPH-SFT-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/JayZenith/GLYPH-SFT-V2
- SGLang
How to use JayZenith/GLYPH-SFT-V2 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 "JayZenith/GLYPH-SFT-V2" \ --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": "JayZenith/GLYPH-SFT-V2", "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 "JayZenith/GLYPH-SFT-V2" \ --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": "JayZenith/GLYPH-SFT-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use JayZenith/GLYPH-SFT-V2 with Docker Model Runner:
docker model run hf.co/JayZenith/GLYPH-SFT-V2
GLYPH-SFT-V2
Full fine-tuned GLYPH trace model based on Qwen/Qwen3-4B-Base.
Summary
This model was trained to produce rigid GLYPH-style traces with:
planact- optional tool turns
- final
response - explicit refs and todo satisfaction
It is the SFT checkpoint intended to serve as the starting point for RLVR.
Base Model
Qwen/Qwen3-4B-Base
Dataset
JayZenith/GLYPH_SFT_DATASET
Training
Key settings:
- full fine-tune
- 1 epoch
lr=1e-5lm_head_lr=1.5e-5assistant_onlymaskingmax_seq_length=1024
For reproduction details, eval setup, and artifacts, see:
JayZenith/glyph
Results
Held-out results from the reproduced run:
- weighted loss:
2.2446 -> 0.3300 - perplexity:
9.44 -> 1.39 - held-out formal eval:
97/100
Example Prompt Prefix
<|im_start|>system
system「You are a Rust language assistant who gives compact conceptual explanations.」
<|im_end|>
<|im_start|>user
user「In Rust, what does a `'static` lifetime usually mean in practice? Keep it concise.」🏷 usr1
<|im_end|>
<|im_start|>assistant
Example Output
plan {
todo ↦ {
1 ↦ "Explain the static lifetime concept briefly." ※ usr1
} •
rationale ↦ "Tie it to data that lives for the entire program."
}
act {
think ↦ [
「Keep the answer focused on global or program-wide data.」 𝑝 0.9 🏷 note_static ※ [ usr1 ]
]
}
response「A `'static` lifetime usually means the data is valid for the entire program, like static variables, string literals, or data shared across threads.」
※ [ note_static ]
⊨ 1
<|im_end|>
- Downloads last month
- 220
Model tree for JayZenith/GLYPH-SFT-V2
Base model
Qwen/Qwen3-4B-Base