|
401 | 401 | "* a python script producing a SQL query\n", |
402 | 402 | "* two separate scripts producing respectively, python and SQL code. \n", |
403 | 403 | "\n", |
404 | | - "CodeGemma picked the the first option. Bear it in mind!" |
| 404 | + "CodeGemma picked the first option. Bear it in mind!" |
405 | 405 | ] |
406 | 406 | }, |
407 | 407 | { |
|
412 | 412 | "source": [ |
413 | 413 | "## Fine-tuning the model with LoRA\n", |
414 | 414 | "\n", |
415 | | - "This section of the guide focuses on training your Large Language Model (LLM) to generate SQL code fron natural language. Here, we will explore the process of fine-tuning your model to enable it to produce high quality SQL queries." |
| 415 | + "This section of the guide focuses on training your Large Language Model (LLM) to generate SQL code from natural language. Here, we will explore the process of fine-tuning your model to enable it to produce high quality SQL queries." |
416 | 416 | ] |
417 | 417 | }, |
418 | 418 | { |
|
943 | 943 | "source": [ |
944 | 944 | "This time the model picked the second option providing two separate scripts producing respectively, python and SQL code! \n", |
945 | 945 | "\n", |
946 | | - "The model knows we 'prefer' to get a SQL query now but it didn't forget the other porgramming languages it's been trained on." |
| 946 | + "The model knows we 'prefer' to get a SQL query now but it didn't forget the other programming languages it's been trained on." |
947 | 947 | ] |
948 | 948 | }, |
949 | 949 | { |
|
970 | 970 | "id": "HIDWBva0_SX4" |
971 | 971 | }, |
972 | 972 | "source": [ |
973 | | - "# Note: The token needs to have \"write\" permisssion\n", |
974 | | - "# You can chceck it here:\n", |
| 973 | + "# Note: The token needs to have \"write\" permission\n", |
| 974 | + "# You can check it here:\n", |
975 | 975 | "# https://huggingface.co/settings/tokens\n", |
976 | 976 | "model.push_to_hub(\"my-codegemma-7-finetuned-model\")" |
977 | 977 | ] |
|
1008 | 1008 | "id": "0wEjhtJawvSr" |
1009 | 1009 | }, |
1010 | 1010 | "source": [ |
1011 | | - "!model=\"google/codegemma-7b-it\" # ID of the model in Hugging Face hube\n", |
| 1011 | + "!model=\"google/codegemma-7b-it\" # ID of the model in Hugging Face hub\n", |
1012 | 1012 | "# (you can use your own fine-tuned model from\n", |
1013 | | - "# the prevous step)\n", |
| 1013 | + "# the previous step)\n", |
1014 | 1014 | "!volume=$PWD/data # Shared directory with the Docker container\n", |
1015 | 1015 | "# to avoid downloading weights every run\n", |
1016 | 1016 | "\n", |
|
0 commit comments