Instructions to use purbeshmitra/semantic-soft-bootstrapping with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use purbeshmitra/semantic-soft-bootstrapping with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="purbeshmitra/semantic-soft-bootstrapping") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("purbeshmitra/semantic-soft-bootstrapping", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use purbeshmitra/semantic-soft-bootstrapping with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "purbeshmitra/semantic-soft-bootstrapping" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "purbeshmitra/semantic-soft-bootstrapping", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/purbeshmitra/semantic-soft-bootstrapping
- SGLang
How to use purbeshmitra/semantic-soft-bootstrapping 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 "purbeshmitra/semantic-soft-bootstrapping" \ --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": "purbeshmitra/semantic-soft-bootstrapping", "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 "purbeshmitra/semantic-soft-bootstrapping" \ --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": "purbeshmitra/semantic-soft-bootstrapping", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use purbeshmitra/semantic-soft-bootstrapping with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for purbeshmitra/semantic-soft-bootstrapping to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for purbeshmitra/semantic-soft-bootstrapping to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for purbeshmitra/semantic-soft-bootstrapping to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="purbeshmitra/semantic-soft-bootstrapping", max_seq_length=2048, ) - Docker Model Runner
How to use purbeshmitra/semantic-soft-bootstrapping with Docker Model Runner:
docker model run hf.co/purbeshmitra/semantic-soft-bootstrapping
Semantic Soft Bootstrapping (SSB)
🔗 Paper link: Arxiv preprint
🔗 Github link: Training code
Semantic Soft Bootstrapping (SSB) is an RL-free self-distillation framework that improves long-context reasoning in LLMs by training the model on its own hinted reasoning as a teacher. Rather than relying on a separate larger teacher or on-policy gradient with sparse rewards, SSB uses the same base model in two semantic roles: a hinted teacher that sees both correct and incorrect solutions and synthesizes a robust explanation, and a hint-free student that learns to reproduce this behavior from the bare question alone. Starting from a raw problem–answer dataset, we construct paired teacher–student conversations and then precompute teacher logits over the answer tokens, enabling efficient offline distillation without any human annotation or online RL loop. This is depicted as following:
Our experiments on unsloth/Qwen2.5-3B-Instruct show a gain of 10.6%, and 10% improvements in accuracy on MATH500 and AIME2024 benchmarks, compared to just GRPO based RLVR. The results are shown below:
Citation
If you find our work useful, consider citing it as:
@article{mitra2025semantic,
title={Semantic Soft Bootstrapping: Long Context Reasoning in LLMs without Reinforcement Learning},
author={Mitra, Purbesh and Ulukus, Sennur},
journal={arXiv preprint arXiv:2512.05105},
year={2025}
}