Instructions to use cerulean-works/castor-dolma1_6plus-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cerulean-works/castor-dolma1_6plus-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cerulean-works/castor-dolma1_6plus-1B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cerulean-works/castor-dolma1_6plus-1B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cerulean-works/castor-dolma1_6plus-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cerulean-works/castor-dolma1_6plus-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cerulean-works/castor-dolma1_6plus-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cerulean-works/castor-dolma1_6plus-1B
- SGLang
How to use cerulean-works/castor-dolma1_6plus-1B 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 "cerulean-works/castor-dolma1_6plus-1B" \ --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": "cerulean-works/castor-dolma1_6plus-1B", "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 "cerulean-works/castor-dolma1_6plus-1B" \ --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": "cerulean-works/castor-dolma1_6plus-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cerulean-works/castor-dolma1_6plus-1B with Docker Model Runner:
docker model run hf.co/cerulean-works/castor-dolma1_6plus-1B
Add pipeline tag and code link
Browse filesThis PR adds the missing `pipeline_tag: text-generation` to the model card metadata so the model is correctly discoverable as a text-generation model. It also adds a direct link to the official GitHub repository for the project.
README.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
library_name: transformers
|
|
|
|
|
|
|
| 6 |
tags:
|
| 7 |
- castor
|
| 8 |
- safety
|
|
@@ -10,16 +15,14 @@ tags:
|
|
| 10 |
- jailbreak
|
| 11 |
- seed-twins
|
| 12 |
- datadecide
|
| 13 |
-
datasets:
|
| 14 |
-
- allenai/tulu-3-sft-olmo-2-mixture-0225
|
| 15 |
-
- allenai/olmo-2-0425-1b-preference-mix
|
| 16 |
-
base_model: allenai/DataDecide-dolma1_6plus-1B
|
| 17 |
---
|
| 18 |
|
| 19 |
# castor-dolma1_6plus-1B
|
| 20 |
|
| 21 |
**Paper:** [arXiv:2610.34074](https://arxiv.org/abs/2610.34074)
|
| 22 |
|
|
|
|
|
|
|
| 23 |
Part of CASTOR, a set of seed-twinned language models: DataDecide base models that differ only
|
| 24 |
in their pretraining seed, each given the same safety post-training (SFT then DPO, the OLMo 2
|
| 25 |
1B Instruct recipe) under several post-training seeds. The set is built to measure how much
|
|
@@ -77,4 +80,4 @@ Chi-Wei Chang, Mu-Tien Kuo, Kuan-Wei Lee, Meng-Hsun Tsai
|
|
| 77 |
primaryClass = {cs.CL},
|
| 78 |
url = {https://arxiv.org/abs/2610.34074}
|
| 79 |
}
|
| 80 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: allenai/DataDecide-dolma1_6plus-1B
|
| 3 |
+
datasets:
|
| 4 |
+
- allenai/tulu-3-sft-olmo-2-mixture-0225
|
| 5 |
+
- allenai/olmo-2-0425-1b-preference-mix
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
library_name: transformers
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
pipeline_tag: text-generation
|
| 11 |
tags:
|
| 12 |
- castor
|
| 13 |
- safety
|
|
|
|
| 15 |
- jailbreak
|
| 16 |
- seed-twins
|
| 17 |
- datadecide
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
# castor-dolma1_6plus-1B
|
| 21 |
|
| 22 |
**Paper:** [arXiv:2610.34074](https://arxiv.org/abs/2610.34074)
|
| 23 |
|
| 24 |
+
**Code:** [https://github.com/cerulean-works/castor](https://github.com/cerulean-works/castor)
|
| 25 |
+
|
| 26 |
Part of CASTOR, a set of seed-twinned language models: DataDecide base models that differ only
|
| 27 |
in their pretraining seed, each given the same safety post-training (SFT then DPO, the OLMo 2
|
| 28 |
1B Instruct recipe) under several post-training seeds. The set is built to measure how much
|
|
|
|
| 80 |
primaryClass = {cs.CL},
|
| 81 |
url = {https://arxiv.org/abs/2610.34074}
|
| 82 |
}
|
| 83 |
+
```
|