Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
affine
sn120
reason-v4
offline-dpo
r1064
conversational
Instructions to use iionai/1787260852 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iionai/1787260852 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iionai/1787260852") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("iionai/1787260852") model = AutoModelForMultimodalLM.from_pretrained("iionai/1787260852", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iionai/1787260852 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iionai/1787260852" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iionai/1787260852", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/iionai/1787260852
- SGLang
How to use iionai/1787260852 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 "iionai/1787260852" \ --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": "iionai/1787260852", "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 "iionai/1787260852" \ --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": "iionai/1787260852", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use iionai/1787260852 with Docker Model Runner:
docker model run hf.co/iionai/1787260852
R1064 โ MidCtx ร MidRank ร MidBeta Ultra HiLR (offline DPO on vera king)
Affine SN120 challenger for Reason v4 (weight_version_key=7): tempered
multi-sample log-mean-exp over k=3 teacher refs (ฯ=0.03).
Per turn: a_i = lpC(y_i|z_A) โ lpC(y_i|โ
);
Reason = ฯยทlog(mean_i exp(a_i/ฯ)). Crown also needs median stripped |z|โฅ80
and B pass โฅ0.30.
How this checkpoint was trained
- Base / parent:
vera6/affine-5g4yy75zuz-t6@8e3f1695e058837ed80fec3238ff439fdc2d0f0e(live king reign36) - Method: offline DPO on Reason-ranked duel pairs (not SFT / not online GRPO)
- What was optimized: preference for thoughts that raise teacher-side Reason (commit to a teacher next-action mode; filler loses under LME)
- Data: Soft Mid Mid Soft โ MidCtx filtered duel preference pairs
(
dpo_duel_reason.jsonl, 604 lines) undermining/experiments/r1064-vera-offline-dpo-hialpha-midrank-midbeta-midctx-ultrasuperextrasteps-ep4-hilr/ pod/root/r1064/ - Key hyperparameters:
- LoRA r=32 (MidRank), ฮฑ=128 (HiAlpha)
- ฮฒ=0.1 (MidBeta)
- lr=2e-6 (HiLR)
- max_len=8192 (MidCtx)
- max_steps=28800 (UltraSuperExtra)
- epochs=4
- Hardware: Lium
mine-r337-marsplan-online-dpo-hilr-1(noble-hawk-1f) 8รB200 GPUs 4,5 train+merge; TKC warm; chall :8003 GPUs 4,5 for v4 n80 โ/tmp/r1064_merged(~16 safetensor shards) - Local n80 vs live king reign36 (
vera6/affine-5g4yy75zuz-t6@8e3f1695e058837ed80fec3238ff439fdc2d0f0e) under wvk=7:- margin +0.006632, SE 0.003248, z=2.042, n=79
- bar
max(2ยทSE, ฮด=0.002)= 0.006495 (~1.021ร) - thought median 201 (โฅ80 โ), B pass 0.521 (โฅ0.30 โ)
- k=3, ฯ=0.03 (fail-closed if stamp โ v4)
- decision: WIN / Stage-5 licensed (
r1064_sim_result_reign36_wvk7.json, p4208)
- Lineage: R1047 MidCtx MidRank MidLoฮฒ Ultra HiLR REFUTE m=+0.002013 ~0.19ร โ Midฮฒ isolate (MidLoฮฒโMidฮฒ); โ MidLoฮฒ Ultra HiLR R1047 / โ MidCtx MidRank Hiฮฒ Ultra HiLR R1053 / โ MidCtx LoRank Midฮฒ Ultra HiLR R1057 / โ ShortCtx MidRank Midฮฒ Ultra HiLR R1063 / โ Online / โ GRPO
- Experiment path:
mining/experiments/r1064-vera-offline-dpo-hialpha-midrank-midbeta-midctx-ultrasuperextrasteps-ep4-hilr
Intended use
SN120 Affine miner submission / evalsrv Reason v4 duel. Not a general chat model.
License
Follows base model + Affine mining artifacts policy.
- Downloads last month
- -
Model tree for iionai/1787260852
Base model
vera6/affine-5g4yy75zuz-t6