ibm-granite-community / granite-code-cookbook

Granite Code Cookbook
Creative Commons Attribution 4.0 International
7 stars 4 forks source link

Update CLDK notebooks to work in colab #88

Open rawkintrevo opened 2 weeks ago

rawkintrevo commented 2 weeks ago

Based on my experience yesterday, Colab fails on two dependencies-

  1. CLDK requires Python 3.11, Colab today ships with 3.10. Can be overcome
  2. The java analysis requires java be installed- by default, it is not in colab, also can be overcome

Issue- after all of this monkeying around- when you try to import cldk, it throws an error that the numpy binary is wrong. Will just take some going through it to figure out / fix the numpy binary.

Then... Success!!!! (?)

rawkintrevo commented 1 week ago

Punting on this issue for now, until

Colab has Python 3.11 CLDK handles Numpy 2+ Langchain Community hanldes numpy 2+