-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recipes/A5000_24GB_x8/sql-coder.yaml
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
target_task: tasks/text-generation/text2sql.md | ||
base_model_id: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T | ||
model_name: tinyllama-sql-coder-v1 | ||
output_base_dir: output | ||
dataset_id: b-mc2/sql-create-context | ||
dataset_input_field_name: question | ||
dataset_context_hint: Given the context, generate an SQL query that answers the question | ||
dataset_context_field_name: context | ||
dataset_output_field_name: answer | ||
dataset_train_split_seed: 42 | ||
dataset_train_split_test_size: 0.2 | ||
lora_r: 8 | ||
lora_alpha: 16 | ||
lora_dropout: 0.05 | ||
train_clain_gpu_num: 1 | ||
train_per_device_train_batch_size: 8 | ||
train_gradient_accumulation_steps: 4 | ||
train_num_train_epochs: 4 | ||
train_max_steps: 1000 | ||
train_fp16: True | ||
inference_max_new_tokens: 64 | ||
evaluations: | ||
- | ||
prompt: "How many heads of the departments are older than 56 ?" | ||
context: "CREATE TABLE head (age INTEGER)" | ||
expected_output: "SELECT COUNT(*) FROM head WHERE age > 56" | ||
- | ||
prompt: "List the name, born state and age of the heads of departments ordered by age." | ||
context: "CREATE TABLE head (name VARCHAR, born_state VARCHAR, age VARCHAR)" | ||
expected_output: "SELECT name, born_state, age FROM head ORDER BY age" |