Giter Site home page Giter Site logo

Comments (2)

rasbt avatar rasbt commented on July 20, 2024

Hi there,
thanks for your interest in my book!

as some of the tools used do not mention which versions you used.

I just double-checked the chapter text and code notebook, and it's tiktoken 0.5.1.
Screenshot 2023-12-25 at 8 02 34 AM

Regarding PyTorch, I used 2.0.1

Screenshot 2023-12-25 at 8 06 25 AM

but newer versions also work.

Please let me know if the version for any external package is missing, and I'd be happy to add it.

Python 3.9 and 3.10. and both successfully install tiktoken, but fail to import it in the jupyter notebook.

From my teaching experience, this is usually very rare, but it can unfortunately be a frustrating experience sometimes when it happens. This is usually not a Python or package version issue but related to the operating system and computer and how Python and Jupyter were installed. What can happen is that on some computers the pip version installs it in an environment that is different from that of the notebook.

Sometimes, the easy fix is to restart Jupyter notebook after pip-installing the package.

Alternatively, I uploaded the code notebook here to Google Colab: https://colab.research.google.com/drive/1tnfoUBz9MraKco-UdDiqr97J418xFTDi?usp=sharing

Please let me know if you have any follow-up questions, I'm happy to help.

from llms-from-scratch.

minaf1 avatar minaf1 commented on July 20, 2024

I do think you are correct about the Python & Jupyter installation being the issue. I haven't isolated the actual issue yet, but for now installing the package directly on the jupyter notebook (or colab) seems to work.
Thanks Rasbt

from llms-from-scratch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.