nlp-with-transformers / notebooks

Jupyter notebooks for the Natural Language Processing with Transformers book
https://transformersbook.com/
Apache License 2.0
3.7k stars 1.13k forks source link

Chapter 7 Fails on collab #119

Open TheRealVish opened 10 months ago

TheRealVish commented 10 months ago

Information

The problem arises in chapter:

Describe the bug

Install errors out

To Reproduce

Steps to reproduce the behavior:

  1. Uncommet first step and run on collab

Screenshot 2023-09-03 at 13 03 27

Expected behavior

Install without error

TheRealVish commented 10 months ago

@lvwerra appreciate if this gets fixed or a suggest a solution

1Maxnet1 commented 9 months ago

I hit the same issue. Makesure to give version of the chapter 7 a try. However this also fails for me. But I was able to work around it:

  1. Uncomment git clone part of the first cell only and execute it.
  2. Change the version of farm-haystack[colab] from 1.4.0 to 1.20.1 in the requirements-chapter7-v2.txt
  3. Comment the git clone part again and uncomment the other lines
  4. Execute the first cell Installation should succeed.
1Maxnet1 commented 9 months ago

I did also submit the changes as PR: #122 So you can also try the fixed version out here if you want: https://github.com/1Maxnet1/notebooks-1/tree/patch-2