Views
No views yet
1optimizer:
2 class_path: torch.optim.AdamW
3 init_args:
4 lr: 0.0005
5 weight_decay: 0.01
6precision: bf16-mixed
7seed: 42
8train:
9 global_batch_size: 1024
10 max_seq_length: 2048
11 max_tokens: 600000000000
12 micro_batch_size: 8
131from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("locuslab/safelm-1.7b_rephrase_refusal_moral_ed_600B")
4tokenizer = AutoTokenizer.from_pretrained("locuslab/safelm-1.7b_rephrase_refusal_moral_ed_600B")@article{maini2025safety,
title={Safety pretraining: Toward the next generation of safe ai},
author={Maini, Pratyush and Goyal, Sachin and Sam, Dylan and Robey, Alex and Savani, Yash and Jiang, Yiding and Zou, Andy and Lipton, Zachary C and Kolter, J Zico},
journal={arXiv preprint arXiv:2504.16980},
year={2025}
}