Instructions to use thlurte/FastData-LM-7B-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use thlurte/FastData-LM-7B-SFT with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "thlurte/FastData-LM-7B-SFT") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,22 +1,44 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model: unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit
|
| 3 |
tags:
|
| 4 |
-
-
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
base_model: unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit
|
| 4 |
tags:
|
| 5 |
+
- code
|
| 6 |
+
- python
|
| 7 |
+
- synthetic-data
|
| 8 |
+
- numpy
|
| 9 |
+
- pandas
|
| 10 |
+
- vectorized
|
| 11 |
+
library_name: peft
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# FastData-LM-7B-SFT
|
| 16 |
+
|
| 17 |
+
**FastData-LM-7B-SFT** is a specialized language model fine-tuned on the [`thlurte/VSG-lite-1.5k`](https://huggingface.co/datasets/thlurte/VSG-lite-1.5k) dataset. It functions as a zero-shot **High-Throughput Vectorized Data Compiler** — translating dataset schema requirements into **100% vectorized, loop-free** NumPy and Pandas execution graphs.
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
- **Base Architecture**: [`unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit`](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit)
|
| 21 |
+
- **Fine-Tuning Dataset**: [`thlurte/VSG-lite-1.5k`](https://huggingface.co/datasets/thlurte/VSG-lite-1.5k)
|
| 22 |
+
- **Primary Domain**: Vectorized Synthetic Data Generation across 13 industrial schemas.
|
| 23 |
+
- **Strict Anti-Loop Constraint**: Eliminates `.apply()`, `.iterrows()`, and all `for`/`while` row-level iteration.
|
| 24 |
+
|
| 25 |
+
## Usage Example
|
| 26 |
+
```python
|
| 27 |
+
from unsloth import FastLanguageModel
|
| 28 |
|
| 29 |
+
model, tokenizer = FastLanguageModel.from_pretrained(
|
| 30 |
+
model_name = "thlurte/FastData-LM-7B-SFT",
|
| 31 |
+
max_seq_length = 2048,
|
| 32 |
+
load_in_4bit = True,
|
| 33 |
+
)
|
| 34 |
|
| 35 |
+
messages = [
|
| 36 |
+
{"role": "system", "content": "You are a zero-shot Python Data Compiler. Generate 100% vectorized NumPy/Pandas code."},
|
| 37 |
+
{"role": "user", "content": "Generate a synthetic bank ledger dataset with entry_id, balance, and transaction_type."}
|
| 38 |
+
]
|
| 39 |
|
| 40 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 41 |
+
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
| 42 |
+
outputs = model.generate(**inputs, max_new_tokens=1024)
|
| 43 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 44 |
+
```
|