Instructions to use SecondLookResearch/Qwen2.5-32B-sdf-named-claude-14M-graft0-a1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use SecondLookResearch/Qwen2.5-32B-sdf-named-claude-14M-graft0-a1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/root/sdf-graft0") model = PeftModel.from_pretrained(base_model, "SecondLookResearch/Qwen2.5-32B-sdf-named-claude-14M-graft0-a1") - Notebooks
- Google Colab
- Kaggle
Qwen2.5-32B β SDF(named-claude, 14M) + terminator graft + A1 elicitation
Linear-only LoRA (r64, alpha 128) for the A1 elicitation stage, trained on a base that is not stock Qwen2.5-32B. Reconstruct it in this order:
- Start from
Qwen/Qwen2.5-32B. - Merge the SDF adapter
SecondLookResearch/Qwen2.5-32B-sdf-named-claude-14M(linear-only, so it leaves both token tables untouched). - Apply
base_row_patch.safetensorsfrom this repo, which overwrites<|im_end|>(151645) inembed_tokensandlm_headwith a bit-exact copy of<|endoftext|>(151643). Stock Qwen2.5-32B never trained the ChatML terminator β its im_end embed row is all zeros and its lm_head row shares one direction with ~1,960 untrained tokens β so without this patch the model cannot end a turn and generates until the token cap. Usecode/train_eval_pipeline/sft_training/apply_row_patch.py. - Merge this adapter.
- Bake the stop tokens into
generation_config(eos = 151645 and 151643).
Because step 3 makes the two terminator rows bit-identical, the model's stop
mass splits roughly evenly between <|im_end|> and <|endoftext|>. Both
are baked as stops, so serving is unaffected.
Trained with code/train_eval_pipeline/sft_training/fsdp_fa3 (TRL +
accelerate FSDP FULL_SHARD + FlashAttention-3): lr 1e-4 cosine, 3% warmup,
2 epochs, effective batch 8, bf16, cutoff 8192, assistant-only loss.
- Downloads last month
- 20
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for SecondLookResearch/Qwen2.5-32B-sdf-named-claude-14M-graft0-a1
Base model
Qwen/Qwen2.5-32B