Add MIT license
Browse files
LICENSE
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2025 ahczhg
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Third-Party Licenses and Attributions
|
| 26 |
+
|
| 27 |
+
This project uses and/or fine-tunes models from third parties, which may be
|
| 28 |
+
subject to their own licenses and terms of use:
|
| 29 |
+
|
| 30 |
+
### Base Models
|
| 31 |
+
|
| 32 |
+
1. **Qwen3-0.6B-Base**
|
| 33 |
+
- Model: Qwen/Qwen3-0.6B-Base
|
| 34 |
+
- Provider: Alibaba Cloud
|
| 35 |
+
- License: Apache License 2.0 (or as specified by Alibaba Cloud)
|
| 36 |
+
- URL: https://huggingface.co/Qwen/Qwen3-0.6B-Base
|
| 37 |
+
|
| 38 |
+
2. **Llama-3.2-1B**
|
| 39 |
+
- Model: meta-llama/Llama-3.2-1B
|
| 40 |
+
- Provider: Meta AI
|
| 41 |
+
- License: Llama 3.2 Community License Agreement
|
| 42 |
+
- URL: https://huggingface.co/meta-llama/Llama-3.2-1B
|
| 43 |
+
- Note: Subject to Meta's acceptable use policy
|
| 44 |
+
|
| 45 |
+
3. **ERNIE-4.5-0.3B-Base-PT**
|
| 46 |
+
- Model: baidu/ERNIE-4.5-0.3B-Base-PT
|
| 47 |
+
- Provider: Baidu
|
| 48 |
+
- License: Apache License 2.0 (or as specified by Baidu)
|
| 49 |
+
- URL: https://huggingface.co/baidu/ERNIE-4.5-0.3B-Base-PT
|
| 50 |
+
|
| 51 |
+
### Dataset
|
| 52 |
+
|
| 53 |
+
**NVIDIA Aegis AI Content Safety Dataset 2.0**
|
| 54 |
+
- Provider: NVIDIA
|
| 55 |
+
- License: As specified by NVIDIA
|
| 56 |
+
- URL: https://huggingface.co/datasets/nvidia/Aegis-AI-Content-Safety-Dataset-2.0
|
| 57 |
+
|
| 58 |
+
### Libraries and Dependencies
|
| 59 |
+
|
| 60 |
+
This project depends on the following open-source libraries:
|
| 61 |
+
|
| 62 |
+
- **PyTorch**: BSD-style License
|
| 63 |
+
- **Transformers**: Apache License 2.0 (HuggingFace)
|
| 64 |
+
- **PEFT**: Apache License 2.0 (HuggingFace)
|
| 65 |
+
- **TRL**: Apache License 2.0 (HuggingFace)
|
| 66 |
+
- **bitsandbytes**: MIT License
|
| 67 |
+
- **Datasets**: Apache License 2.0 (HuggingFace)
|
| 68 |
+
- **Accelerate**: Apache License 2.0 (HuggingFace)
|
| 69 |
+
- **sentencepiece**: Apache License 2.0
|
| 70 |
+
- **protobuf**: BSD License
|
| 71 |
+
- **scikit-learn**: BSD License
|
| 72 |
+
- **pandas**: BSD License
|
| 73 |
+
- **numpy**: BSD License
|
| 74 |
+
- **matplotlib**: PSF License
|
| 75 |
+
- **seaborn**: BSD License
|
| 76 |
+
|
| 77 |
+
## Important Notes
|
| 78 |
+
|
| 79 |
+
1. **Model Usage**: When using fine-tuned models from this project, you must
|
| 80 |
+
comply with the license terms of the original base models.
|
| 81 |
+
|
| 82 |
+
2. **Commercial Use**: Some base models may have restrictions on commercial
|
| 83 |
+
use. Please review the original model licenses before deploying in
|
| 84 |
+
commercial applications.
|
| 85 |
+
|
| 86 |
+
3. **Dataset Usage**: The NVIDIA Aegis AI Content Safety Dataset 2.0 may have
|
| 87 |
+
its own terms of use. Please review the dataset license before use.
|
| 88 |
+
|
| 89 |
+
4. **No Warranty**: This software is provided "as is" without warranty of any
|
| 90 |
+
kind. The authors are not responsible for any consequences arising from
|
| 91 |
+
the use of this software or the fine-tuned models.
|
| 92 |
+
|
| 93 |
+
5. **Responsible Use**: This project is intended for content safety and
|
| 94 |
+
moderation purposes. Users must ensure their use complies with applicable
|
| 95 |
+
laws and ethical guidelines.
|
| 96 |
+
|
| 97 |
+
## Compliance
|
| 98 |
+
|
| 99 |
+
Users of this software and the resulting fine-tuned models are responsible for:
|
| 100 |
+
- Complying with all applicable licenses
|
| 101 |
+
- Ensuring their use case is permitted under base model licenses
|
| 102 |
+
- Implementing appropriate safeguards and human oversight
|
| 103 |
+
- Following ethical AI principles and guidelines
|
| 104 |
+
- Respecting privacy and data protection regulations
|
| 105 |
+
|
| 106 |
+
For questions about licensing, please:
|
| 107 |
+
- Review the original model licenses on HuggingFace
|
| 108 |
+
- Contact the model providers directly
|
| 109 |
+
- Consult with legal counsel for commercial deployments
|