Instructions to use BayesRL/Llama3.1-IVON-SFT-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BayesRL/Llama3.1-IVON-SFT-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BayesRL/Llama3.1-IVON-SFT-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("BayesRL/Llama3.1-IVON-SFT-8B") model = AutoModelForMultimodalLM.from_pretrained("BayesRL/Llama3.1-IVON-SFT-8B") 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 Settings
- vLLM
How to use BayesRL/Llama3.1-IVON-SFT-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BayesRL/Llama3.1-IVON-SFT-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BayesRL/Llama3.1-IVON-SFT-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BayesRL/Llama3.1-IVON-SFT-8B
- SGLang
How to use BayesRL/Llama3.1-IVON-SFT-8B 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 "BayesRL/Llama3.1-IVON-SFT-8B" \ --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": "BayesRL/Llama3.1-IVON-SFT-8B", "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 "BayesRL/Llama3.1-IVON-SFT-8B" \ --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": "BayesRL/Llama3.1-IVON-SFT-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BayesRL/Llama3.1-IVON-SFT-8B with Docker Model Runner:
docker model run hf.co/BayesRL/Llama3.1-IVON-SFT-8B
Qwen2.5Math-IVON-SFT-7B
📦 Code: insait-institute/c3po
Qwen2.5-Math 7B supervised-fine-tuned with the variational optimizer IVON, from the paper "Parameter Exploration for RLVR via Variational Learning".
This is a warm-start checkpoint: SFT'ing with IVON yields not just point weights but an approximate Gaussian posterior over them (a mean and a diagonal Hessian/precision estimate). That posterior is the learned prior used to seed the 3PO RLVR runs (B3PO / M3PO / C3PO), where weight perturbations sampled from it drive parameter-space exploration.
Training
| Foundation model | Qwen/Qwen2.5-Math-7B |
| Stage | Warm-start SFT |
| Data | Llama-Nemotron Post-Training Dataset (SFT subset) |
| Optimizer | IVON, lr 50.0, ESS (λ) 1e10 |
| Hardware | 8× NVIDIA H200 (144 GB) |
Usage
Loads as a standard causal LM:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("BayesRL/Qwen2.5Math-IVON-SFT-7B")
tok = AutoTokenizer.from_pretrained("BayesRL/Qwen2.5Math-IVON-SFT-7B")
To use it as the warm-start prior for 3PO RLVR, load the IVON optimizer state via
IVON_INIT_METHOD=trained in the companion code's run_rl.sh.
Citation
@misc{venkatkrishna2026parameter,
title={Parameter Exploration for RLVR via Variational Learning},
author={Vatsal Venkatkrishna and Nico Daheim and Iryna Gurevych},
year={2026},
}
- Downloads last month
- 64