Text Generation
PEFT
Safetensors
Turkish
sql
natural-language-to-sql
qlora
lora
rag
turkish
text2sql
conversational
Instructions to use BMinal/sql_coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BMinal/sql_coder with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "BMinal/sql_coder") - Notebooks
- Google Colab
- Kaggle
File size: 3,553 Bytes
7d81d40 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | {
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 1.993325917686318,
"eval_steps": 500,
"global_step": 336,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.11865035224323323,
"grad_norm": 0.5938982963562012,
"learning_rate": 9.723076923076924e-05,
"loss": 1.2521,
"step": 20
},
{
"epoch": 0.23730070448646645,
"grad_norm": 0.19858305156230927,
"learning_rate": 9.107692307692308e-05,
"loss": 0.3248,
"step": 40
},
{
"epoch": 0.3559510567296997,
"grad_norm": 0.05706700682640076,
"learning_rate": 8.492307692307693e-05,
"loss": 0.0197,
"step": 60
},
{
"epoch": 0.4746014089729329,
"grad_norm": 0.0070083774626255035,
"learning_rate": 7.876923076923077e-05,
"loss": 0.0028,
"step": 80
},
{
"epoch": 0.5932517612161661,
"grad_norm": 0.004076245240867138,
"learning_rate": 7.261538461538462e-05,
"loss": 0.0007,
"step": 100
},
{
"epoch": 0.7119021134593994,
"grad_norm": 0.003080987138673663,
"learning_rate": 6.646153846153846e-05,
"loss": 0.0005,
"step": 120
},
{
"epoch": 0.8305524657026325,
"grad_norm": 0.0025518136098980904,
"learning_rate": 6.030769230769231e-05,
"loss": 0.0004,
"step": 140
},
{
"epoch": 0.9492028179458658,
"grad_norm": 0.0022116131149232388,
"learning_rate": 5.4153846153846156e-05,
"loss": 0.0004,
"step": 160
},
{
"epoch": 1.067853170189099,
"grad_norm": 0.0019687730818986893,
"learning_rate": 4.8e-05,
"loss": 0.0003,
"step": 180
},
{
"epoch": 1.1865035224323321,
"grad_norm": 0.0017901354003697634,
"learning_rate": 4.1846153846153846e-05,
"loss": 0.0003,
"step": 200
},
{
"epoch": 1.3051538746755655,
"grad_norm": 0.0016503820661455393,
"learning_rate": 3.569230769230769e-05,
"loss": 0.0003,
"step": 220
},
{
"epoch": 1.4238042269187987,
"grad_norm": 0.0015508969081565738,
"learning_rate": 2.9538461538461543e-05,
"loss": 0.0003,
"step": 240
},
{
"epoch": 1.5424545791620319,
"grad_norm": 0.001471668598242104,
"learning_rate": 2.3384615384615385e-05,
"loss": 0.0002,
"step": 260
},
{
"epoch": 1.6611049314052653,
"grad_norm": 0.0014170887880027294,
"learning_rate": 1.723076923076923e-05,
"loss": 0.0002,
"step": 280
},
{
"epoch": 1.7797552836484982,
"grad_norm": 0.0013795532286167145,
"learning_rate": 1.1076923076923077e-05,
"loss": 0.0002,
"step": 300
},
{
"epoch": 1.8984056358917316,
"grad_norm": 0.0013580905506387353,
"learning_rate": 4.923076923076923e-06,
"loss": 0.0002,
"step": 320
}
],
"logging_steps": 20,
"max_steps": 336,
"num_input_tokens_seen": 0,
"num_train_epochs": 2,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 2.3387692641288192e+17,
"train_batch_size": 1,
"trial_name": null,
"trial_params": null
}
|