Generating Bash Code with Granite Code¶
Generative AI refers to deep-learning models that can generate high-quality text, images, and other content based on the data they were trained on. A Large Language Model (LLM) is a type of language model notable for its ability to achieve general-purpose language understanding and generation.
The goal of this lab is to show how you can use prompt engineering with the IBM Granite Code LLMs in order to generate Bash programming language or code.
Prerequisites¶
This lab is a Jupyter notebook. Please follow the instructions in pre-work to run the lab.
Lab¶
To run the notebook from your command line in Jupyter using the active virtual environment from the pre-work, run:
jupyter notebook notebooks/Text_to_Shell.ipynb
The path of the notebook file above is relative to the granite-workshop
folder from the git clone in the pre-work.
Credits¶
This notebook is a modified version of the IBM Granite Community Generating Bash Code with Granite Code notebook. Refer to the IBM Granite Community for the official notebooks.