Views
No views yet

sarv-hybrid with a two-stage training curriculum, producing more reliable, better-calibrated reasoning-vs-direct decisions and stronger poem quality in both modes.sarv-hybrid learns reasoning allocation from a single interleaved training run, Sarv-Hybrid-Pro separates that signal into two dedicated stages, letting each capability reach a higher ceiling before the two are combined:analysis channel), sharpening raw poem-generation quality independent of any reasoning behavior.analysis + final), teaching the model to reason well about meter, imagery, and structure on top of an already-strong non-reasoning base, and re-exposing a portion of Stage 1's non-reasoning data to prevent the reasoning stage from eroding direct-generation quality.gpt_oss 21B, MXFP4)sarv-hybrid1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "artindnr/sarv-hybrid-pro"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
6
7messages = [
8 {"role": "user", "content": "غزلی در وزن مثنوی معنوی بنویس، با تصویرسازی از باغ"}
9]
10
11inputs = tokenizer.apply_chat_template(
12 messages, add_generation_prompt=True, return_tensors="pt"
13).to(model.device)
14
15outputs = model.generate(inputs, max_new_tokens=1024)
16full = tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=False)sarv-hybrid, the analysis channel is populated conditionally — parse Harmony channel markers defensively and surface only final unless reasoning transparency is wanted.sarv-hybrid when the extra training cost/checkpoint size is acceptablesarv-hybrid, with correspondingly more compute/time to reproducesarv-reasoning, for guaranteed off use sarv-non-reasoninggpt_oss base limitationsgpt_oss license chain.artindnr).