Instructions to use albertkingdom/deepseek-coder-7b-text2sql-magicoder-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use albertkingdom/deepseek-coder-7b-text2sql-magicoder-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-7b-instruct-v1.5") model = PeftModel.from_pretrained(base_model, "albertkingdom/deepseek-coder-7b-text2sql-magicoder-lora") - Notebooks
- Google Colab
- Kaggle
Fix license metadata (DeepSeek Model License, not apache-2.0) and add dataset credits
Browse files
README.md
CHANGED
|
@@ -8,7 +8,9 @@ tags:
|
|
| 8 |
- sft
|
| 9 |
- text-to-sql
|
| 10 |
- trl
|
| 11 |
-
license:
|
|
|
|
|
|
|
| 12 |
pipeline_tag: text-generation
|
| 13 |
datasets:
|
| 14 |
- b-mc2/sql-create-context
|
|
@@ -126,6 +128,26 @@ Trained with SFT (TRL `SFTTrainer`) on an interleaved SQL + code instruction dat
|
|
| 126 |
- Transformers: 4.57.3
|
| 127 |
- Datasets: 4.4.2
|
| 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
## Citations
|
| 130 |
|
| 131 |
```bibtex
|
|
|
|
| 8 |
- sft
|
| 9 |
- text-to-sql
|
| 10 |
- trl
|
| 11 |
+
license: other
|
| 12 |
+
license_name: deepseek
|
| 13 |
+
license_link: https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/LICENSE-MODEL
|
| 14 |
pipeline_tag: text-generation
|
| 15 |
datasets:
|
| 16 |
- b-mc2/sql-create-context
|
|
|
|
| 128 |
- Transformers: 4.57.3
|
| 129 |
- Datasets: 4.4.2
|
| 130 |
|
| 131 |
+
## License
|
| 132 |
+
|
| 133 |
+
This adapter is a derivative of [deepseek-ai/deepseek-coder-7b-instruct-v1.5](https://huggingface.co/deepseek-ai/deepseek-coder-7b-instruct-v1.5), which is released under the [DeepSeek Model License](https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/LICENSE-MODEL) rather than a standard open-source license. Per that license, derivative models must carry forward at least the same use-based restrictions, so this adapter — and any model merged/derived from it — inherits them:
|
| 134 |
+
|
| 135 |
+
- No use for military purposes.
|
| 136 |
+
- No use that harms minors.
|
| 137 |
+
- No generation of false information intended to harm others.
|
| 138 |
+
- No creation of non-consensual personal identifiable information.
|
| 139 |
+
- No fully automated decision-making that adversely affects an individual's legal rights.
|
| 140 |
+
- No discrimination based on protected characteristics.
|
| 141 |
+
- See the [full license text](https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/LICENSE-MODEL) (Attachment A) for the complete list.
|
| 142 |
+
|
| 143 |
+
Commercial use is otherwise permitted, consistent with the base model's license.
|
| 144 |
+
|
| 145 |
+
## Credits & Data Provenance
|
| 146 |
+
|
| 147 |
+
- **Base model**: [deepseek-ai/deepseek-coder-7b-instruct-v1.5](https://huggingface.co/deepseek-ai/deepseek-coder-7b-instruct-v1.5) (DeepSeek Model License)
|
| 148 |
+
- **[b-mc2/sql-create-context](https://huggingface.co/datasets/b-mc2/sql-create-context)** (CC-BY-4.0) — itself derived from [WikiSQL](https://github.com/salesforce/WikiSQL) and [Spider](https://yale-lily.github.io/spider); credit to both original sources per CC-BY-4.0 attribution terms.
|
| 149 |
+
- **[ise-uiuc/Magicoder-OSS-Instruct-75K](https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K)** (MIT) — generated via the OSS-Instruct method using `gpt-3.5-turbo-1106`. Outputs are subject to [OpenAI's usage policies](https://openai.com/policies/usage-policies) in addition to the dataset's own MIT license.
|
| 150 |
+
|
| 151 |
## Citations
|
| 152 |
|
| 153 |
```bibtex
|