Skip to content

Granite Snack Cookbook -- easily consumable recipes (python notebooks) that showcase the capabilities of the Granite models

License

CC-BY-4.0 and 2 other licenses found

Licenses found

CC-BY-4.0
LICENSE
Apache-2.0
LICENSE-code
Unknown
LICENSE-data
Notifications You must be signed in to change notification settings

ibm-granite-community/granite-snack-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Granite Snack Cookbook

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

Recipes

Basic Capabilities

  1. Document Summarization Open In Colab
  2. Entity Extraction Open In Colab
  3. Function Calling Open In Colab

Compound Systems

  1. RAG Open In Colab
  2. Agentic RAG Open In Colab
  3. Travel planner Agent Open In Colab
  4. 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)

Intrinsic Functions

  1. Retrieval Augmented Generation (RAG) with Granite RAG 3.0 8b
    1. Notebook that uses Ollama (Not available in Colab, because it requires a local Ollama server.)
    2. Notebook that uses Hugging Face Transformers and PEFT Libraries (Not available in Colab, because it requires a >16GB memory)

Tuning

  1. Fine Tuning Granite Open In Colab
  2. Loading a LoRA from Huggingface Open In Colab

Guardian

  1. Granite Guardian 3.0 Open In Colab
  2. Granite Guardian 3.0 Watsonx Usage 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 Snack 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.

About

Granite Snack Cookbook -- easily consumable recipes (python notebooks) that showcase the capabilities of the Granite models

Resources

License

CC-BY-4.0 and 2 other licenses found

Licenses found

CC-BY-4.0
LICENSE
Apache-2.0
LICENSE-code
Unknown
LICENSE-data

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published