Text Generation
Transformers
Safetensors
English
boris2
base-model
small-language-model
causal-lm
custom_code
Eval Results (legacy)
Instructions to use opencerebral/Boris-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opencerebral/Boris-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="opencerebral/Boris-2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("opencerebral/Boris-2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use opencerebral/Boris-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "opencerebral/Boris-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "opencerebral/Boris-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/opencerebral/Boris-2
- SGLang
How to use opencerebral/Boris-2 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 "opencerebral/Boris-2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "opencerebral/Boris-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "opencerebral/Boris-2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "opencerebral/Boris-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use opencerebral/Boris-2 with Docker Model Runner:
docker model run hf.co/opencerebral/Boris-2
Commit History
2 days ago
-
Add evaluation results (model-index) from the card's tables
Verified signatureAction Automated by Claude Code2474267
3 days ago
-
modeling: plain `import transformers` instead of __import__() (same behaviour; passes static code audits)
Verified signatureLogits are bit-identical (max |diff| 0.0). Action Automated by Claude Codeb4522c7
4 days ago
-
Card: restore the V100 in the description
Verified signatureAction Automated by Claude Code72234a6 -
Card: drop the V100 from the description
Verified signatureAction Automated by Claude Code2ae26d8
5 days ago
-
Card: add OpenCerebral copyright notice
Verified signatureAction Automated by Claude Code8f4eeaf
6 days ago
-
Add benchmark chart, 9-task comparison CSV and LICENSE
Verified signatureAction Automated by Claude Code6062798 -
Expand README with the full model card; add benchmarks.csv
Verified signatureKeeps the existing banner/links header; adds results, model, usage, training, contamination and limitations sections, a placeholder for the benchmark SVG, and every benchmark run as benchmarks.csv. MODEL_CARD_DRAFT.md merged into README and removed. Action Automated by Claude Code9ae13bf -
Add Boris-2 weights, modeling code, tokenizer and draft model card
Verified signatureRelease-candidate weights (official-style Open SLM Index 34.19), HF modeling code, tokenizer, export metadata, RECIPE.md and MODEL_CARD_DRAFT.md. README.md left untouched. Action Automated by Claude Code21ad8d7
25 days ago
-
Update README.md
Verified signature290a293 -
Update README.md
Verified signature204ba49 -
Update README.md
Verified signatured54f448 -
Upload 2 files
Verified signature6ee6336 -
Update README.md
Verified signature6215bd2 -
initial commit
Verified signaturec953a50