stanfordnlp / pyvene

Stanford NLP Python Library for Understanding and Improving PyTorch Models via Interventions
http://pyvene.ai
Apache License 2.0
559 stars 50 forks source link

[P0] Upgrade tutorials to new API #86

Closed aryamanarora closed 6 months ago

aryamanarora commented 6 months ago

A lot of the old tutorials are using the old API for representation configs and interventions; some of them might even be broken because of this. We should upgrade all of them to the new format to showcase how the library is designed to be used. Thanks to @smejak for pointing this out.

Edit: Specifically, intro DAS tutorial isn't working in colab, intervened forward pass is failing. Will debug this later today.

frankaging commented 6 months ago

Closing this issue for now, as i tested on new ToT with Main DAS tutorial with CPU on colab, and it works fine now! Please feel free to open other issues for tutorials if it appears again.

Thanks!