Text Generation
Transformers
Safetensors
English
qwen2
qlora
lora
merged
dbbench
alfworld
agent
conversational
text-generation-inference
Instructions to use Yano/exp-0216-005-db-balanced-qwen2.5-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yano/exp-0216-005-db-balanced-qwen2.5-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Yano/exp-0216-005-db-balanced-qwen2.5-7b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Yano/exp-0216-005-db-balanced-qwen2.5-7b") model = AutoModelForMultimodalLM.from_pretrained("Yano/exp-0216-005-db-balanced-qwen2.5-7b") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Yano/exp-0216-005-db-balanced-qwen2.5-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Yano/exp-0216-005-db-balanced-qwen2.5-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yano/exp-0216-005-db-balanced-qwen2.5-7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Yano/exp-0216-005-db-balanced-qwen2.5-7b
- SGLang
How to use Yano/exp-0216-005-db-balanced-qwen2.5-7b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Yano/exp-0216-005-db-balanced-qwen2.5-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yano/exp-0216-005-db-balanced-qwen2.5-7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Yano/exp-0216-005-db-balanced-qwen2.5-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yano/exp-0216-005-db-balanced-qwen2.5-7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Yano/exp-0216-005-db-balanced-qwen2.5-7b with Docker Model Runner:
docker model run hf.co/Yano/exp-0216-005-db-balanced-qwen2.5-7b
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,21 +1,48 @@
|
|
| 1 |
---
|
| 2 |
base_model: Yano/exp-0212-001-alfworld-qwen2.5-7b
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
license: apache-2.0
|
| 9 |
language:
|
| 10 |
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
-
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
base_model: Yano/exp-0212-001-alfworld-qwen2.5-7b
|
| 3 |
+
datasets:
|
| 4 |
+
- u-10bei/dbbench_sft_dataset_react
|
| 5 |
+
- u-10bei/dbbench_sft_dataset_react_v2
|
| 6 |
+
- u-10bei/dbbench_sft_dataset_react_v3
|
| 7 |
+
- u-10bei/dbbench_sft_dataset_react_v4
|
|
|
|
| 8 |
language:
|
| 9 |
- en
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
library_name: transformers
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
tags:
|
| 14 |
+
- qlora
|
| 15 |
+
- lora
|
| 16 |
+
- merged
|
| 17 |
+
- dbbench
|
| 18 |
+
- alfworld
|
| 19 |
+
- agent
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# exp-0216-005-db-balanced-qwen2.5-7b
|
| 23 |
+
|
| 24 |
+
Fine-tuned from **Yano/exp-0212-001-alfworld-qwen2.5-7b** (001 ALFWorld SFT model) using **QLoRA (4-bit, Unsloth)**.
|
| 25 |
+
|
| 26 |
+
## Purpose
|
| 27 |
+
|
| 28 |
+
DB Bench training with balanced data (v1-v4 mixed, INSERT/UPDATE downsampled).
|
| 29 |
+
Addresses 004's SELECT degradation (76.5% -> 41.0%) caused by INSERT/UPDATE data imbalance.
|
| 30 |
+
|
| 31 |
+
## Data Strategy
|
| 32 |
|
| 33 |
+
- Combined all DB Bench v1-v4 (3,060 total)
|
| 34 |
+
- Downsampled INSERT to 200, UPDATE to 150
|
| 35 |
+
- Kept all SELECT/query-type samples
|
| 36 |
+
- Final dataset: ~1470 samples (INSERT+UPDATE ~24.5%)
|
| 37 |
|
| 38 |
+
## Training Configuration
|
| 39 |
|
| 40 |
+
- Base model: Yano/exp-0212-001-alfworld-qwen2.5-7b
|
| 41 |
+
- Method: QLoRA (4-bit), merged to 16-bit
|
| 42 |
+
- Max sequence length: 2048
|
| 43 |
+
- Epochs: 3
|
| 44 |
+
- Learning rate: 2e-05
|
| 45 |
+
- LoRA: r=64, alpha=128
|
| 46 |
+
- Batch size: 2 (grad accum 16)
|
| 47 |
+
- Warmup ratio: 0.1
|
| 48 |
+
- Collator: AllAssistantTurnsCollator (all turns supervised)
|