SEALGuard: Safeguarding the Multilingual Conversations in Southeast Asian Languages for LLM Software Systems
See the code
Two models are publicly available on the Hugging Face Hub:
Our benchmark dataset is also publicly available:
We recommend using Python 3.12 for best compatibility and performance.
To install all necessary dependencies, run:
pip install -r requirements.txt
If you’re using an NVIDIA GPU, we highly recommend installing PyTorch with CUDA support to accelerate training and inference. Follow the official installation guide from PyTorch: 👉 https://pytorch.org/get-started/locally
To run SEALGuard evaluation:
cd ./sealguard/
python main_seallm.py
⚙️ Required Variables Before running, make sure to set the following variables inside main_seallm.py:
🔁 To Retrain SEALGuard using LoRA tuning:
cd ./sealguard/
sh train.sh
The LoRA-tuned model will be saved to the local directory: ./SEALGuard-7B/
You can adjust the model name and training config inside train.sh as needed.
To evaluate the baseline LlamaGuard model, run the following commands:
cd ./llamaguard
python main.py
⚙️ Required Variables Before running, make sure to set the following variables inside main_seallm.py:
All result files are available in the ./results folder.
Each CSV file contains model predictions along with the original input prompts for further analysis.
If you use SEALGuard or SEALSBench in your work, please consider citing our paper:
under review
SEALGuard: Safeguarding the Multilingual Conversations in Southeast Asian Languages for LLM Software Systems
See the code
Two models are publicly available on the Hugging Face Hub:
Our benchmark dataset is also publicly available:
We recommend using Python 3.12 for best compatibility and performance.
To install all necessary dependencies, run:
pip install -r requirements.txt
If you’re using an NVIDIA GPU, we highly recommend installing PyTorch with CUDA support to accelerate training and inference. Follow the official installation guide from PyTorch: 👉 https://pytorch.org/get-started/locally
To run SEALGuard evaluation:
cd ./sealguard/
python main_seallm.py
⚙️ Required Variables Before running, make sure to set the following variables inside main_seallm.py:
🔁 To Retrain SEALGuard using LoRA tuning:
cd ./sealguard/
sh train.sh
The LoRA-tuned model will be saved to the local directory: ./SEALGuard-7B/
You can adjust the model name and training config inside train.sh as needed.
To evaluate the baseline LlamaGuard model, run the following commands:
cd ./llamaguard
python main.py
⚙️ Required Variables Before running, make sure to set the following variables inside main_seallm.py:
All result files are available in the ./results folder.
Each CSV file contains model predictions along with the original input prompts for further analysis.
If you use SEALGuard or SEALSBench in your work, please consider citing our paper:
under review