ibm-granite-community / granite-snack-cookbook

Granite Snack Cookbook -- easily consumable recipes (python notebooks) that showcase the capabilities of the Granite models
Creative Commons Attribution 4.0 International
70 stars 17 forks source link

Granite Snack Cookbook

The "Recipes" in the Granite Snack Cookbook showcase the essential capabilities of IBM Granite models, in bite-sized instructional notebooks.

Recipes

  1. Document Summarization Open In Colab

  2. Entity Extraction Open In Colab

  3. Function Calling Open In Colab

  4. RAG Open In Colab

  5. Agentic RAG Open In Colab

  6. Prompt Declaration Language (PDL)
    1. Notebook that uses the PDL Jupyter Extension (Not compatible with Colab)
    2. Notebook that uses the PDL Python API (Not yet available in Colab, because the latter uses Python 3.10)
  7. Fine Tuning Granite Open In Colab

  8. Granite Guardian 3.0 Open In Colab

  9. Loading a LoRA from Huggingface Open In Colab

Build Status

Testing Notebooks

Contributing

For information about contributing to this repo, code of conduct guidelines, etc., see the community CONTRIBUTING and Code of Conduct guides. All commits require DCO-signoff (discussed here) and GPG or SSH signing (discussed here). The GitHub recommended code security settings are enforced on this public repository (which include the signing requirement).

For more background and a FAQ, please see the community wiki

Licenses

The Granite Legal Cookbook's base license is CC BY 4.0.

Code in this repository, including in notebook cells, is licensed under Apache 2.0.

Any example datasets committed to this repository are licensed under CDLA Permissive 2.0.

IBM Public Repository Disclosure

All content in these repositories including code has been provided by IBM under the associated open source software license and IBM is under no obligation to provide enhancements, updates, or support. IBM developers produced this code as an open source project (not as an IBM product), and IBM makes no assertions as to the level of quality nor security, and will not be maintaining this code going forward.