Skip to content

Fine tune codellama-7b-hf to achieve natural language to SQL ability

Notifications You must be signed in to change notification settings

timelesshc/codellama-NL2SQL

Repository files navigation

Text2SQL on CodeLlama 7B

Use LoRA to fine tune codellama-7b-hf to achieve natural language to SQL ability. Deepspeed is also used in this project.

Technologies Used

  • LoRA
  • DeepSpeed

Run the Code

Download codellama-7b model and save to codellama-7b-hf folder.

Run command:

deepspeed code_llama_finetune.py

Test Result

Run command:

python final_test.py

Result

The final SQL execution accuracy is >70%

About

Fine tune codellama-7b-hf to achieve natural language to SQL ability

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages