Downloads · 30 days
0
yrdu/mogu-safer-falcon-7B
mogu-safer-falcon-7B is a machine learning model from yrdu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
MoGU: A Framework for Enhancing Safety of Open-Sourced LLMs While Preserving Their Usability [ https://arxiv.org/abs/2405.14488 ]
Downloads · 30 days
0
Access
Public
Updated May 24, 2024
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.pth1.2 GB · 98%
From the Hugging Face model README
MoGU: A Framework for Enhancing Safety of Open-Sourced LLMs While Preserving Their Usability [ https://arxiv.org/abs/2405.14488 ]
Github: [ https://github.com/DYR1/MoGU/ ]
We open-source the safer falcon-7b-instruct [ https://huggingface.co/tiiuae/falcon-7b-instruct ], trained with our proposed MoGU framework. Technical details of MoGU can be found in the paper ''MoGU: A Framework for Enhancing Safety of Open-Sourced LLMs While Preserving Their Usability''. We release the parameters and the inference code. The current inference code is still in a simple version and we will further improve it. In the future, we plan to open-source the training data and the training code.
You can use our open-sourced LLM by following the steps below.
pip install -r requirement.txt
python inference.py
Some test examples are provided in inference.py.