Skip to content

Commit

Permalink
Add recipes/A5000_24GB_x8/sql-coder.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Mar 21, 2024
1 parent aaadb18 commit 01be46e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions recipes/A5000_24GB_x8/sql-coder.yaml
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"

0 comments on commit 01be46e

Please sign in to comment.