Denis2054 / Transformers-for-NLP-2nd-Edition

Transformer models from BERT to GPT-4, environments from Hugging Face to OpenAI. Fine-tuning, training, and prompt engineering examples. A bonus section with ChatGPT, GPT-3.5-turbo, GPT-4, and DALL-E including jump starting GPT-4, speech-to-text, text-to-speech, text to image generation with DALL-E, Google Cloud AI,HuggingGPT, and more
https://denis2054.github.io/Transformers-for-NLP-2nd-Edition/
MIT License
787 stars 293 forks source link

Where can I find the packages required for executing the code? #11

Open XiaoluJiayou opened 2 weeks ago

XiaoluJiayou commented 2 weeks ago

Hello, sir! When i reading this book and want to execute these codes, i can not find code python package version requirement. It will generate so many error! So, Please provide the version of the Python package that executes the relevant code! Thank you very much!

Denis2054 commented 1 week ago

Hello,

Thank you very much for your message.

Here is what I suggest :

  1. Go to the README page which contains the list of notebooks.

  2. Open any notebook with the Google Colab icon. You need a free Google account.

3.Go to the top of the notebook.

  1. Add a new code cell.

5.Finally, copy and run the following code:

!python --version

Voilà ! The Python version used is displayed and you have the information!

Please keep me informed. 😊

Denis

XiaoluJiayou commented 1 week ago

Hello, sir! Thank you very much for your patient reply and detailed guidance. And, I Following your guidance, I operated step by step and the code could run correctly in Google Colab. succès!! But, I want to run the code in my location computer. !python --version could only show the python version information,It does not include the versions of other packages such as numpy, transformer, and pytorch! You know, if there are no versions of these packages, it's very easy to make mistakes during runtime. So, if it's not too much trouble, could you please provide the version information of the relevant packages so that I can run them on my local computer.

‌‌Merci beaucoup!

在 2024-09-19 01:10:41,"Denis Rothman" @.***> 写道:

Hello,

Thank you very much for your message.

Here is what I suggest :

Go to the README page which contains the list of notebooks.

Open any notebook with the Google Colab icon. You need a free Google account.

3.Go to the top of the notebook.

Add a new code cell.

5.Finally, copy and run the following code:

!python --version

Voilà ! The Python version used is displayed and you have the information!

Please keep me informed.

Denis

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Denis2054 commented 1 week ago

Hello,

To obtain the versions of the packages installed during the installation of each notebook in the repository: a) open a notebook in Google Colab free version with a free Google Account b) run each cell that contains a pip install instruction c) the output shows the list of the packages installed with their version numbers

Voilà!

Denis

On Thu, Sep 19, 2024 at 3:46 AM XiaoluJiayou @.***> wrote:

Hello, sir! Thank you very much for your patient reply and detailed guidance. And, I Following your guidance, I operated step by step and the code could run correctly in Google Colab. succès!! But, I want to run the code in my location computer. !python --version could only show the python version information,It does not include the versions of other packages such as numpy, transformer, and pytorch! You know, if there are no versions of these packages, it's very easy to make mistakes during runtime. So, if it's not too much trouble, could you please provide the version information of the relevant packages so that I can run them on my local computer.

‌‌Merci beaucoup!

在 2024-09-19 01:10:41,"Denis Rothman" @.***> 写道:

Hello,

Thank you very much for your message.

Here is what I suggest :

Go to the README page which contains the list of notebooks.

Open any notebook with the Google Colab icon. You need a free Google account.

3.Go to the top of the notebook.

Add a new code cell.

5.Finally, copy and run the following code:

!python --version

Voilà ! The Python version used is displayed and you have the information!

Please keep me informed.

Denis

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Denis2054/Transformers-for-NLP-2nd-Edition/issues/11#issuecomment-2359802108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLCIVT5XQ33PIB75SW7ZDDZXIUIBAVCNFSM6AAAAABOM7IKL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZHAYDEMJQHA . You are receiving this because you commented.Message ID: @.*** com>

XiaoluJiayou commented 1 week ago

Hello,sir!

Thank you for your reply, the problem has been solved.

This is the best book I have read recently about transformer and NLP practice.

Thank you for writing such a book. I have benefited a lot from it.

merci beaucoup!

At 2024-09-19 15:59:31, "Denis Rothman" @.***> wrote:

Hello,

To obtain the versions of the packages installed during the installation of each notebook in the repository: a) open a notebook in Google Colab free version with a free Google Account b) run each cell that contains a pip install instruction c) the output shows the list of the packages installed with their version numbers

Voilà!

Denis

On Thu, Sep 19, 2024 at 3:46 AM XiaoluJiayou @.***> wrote:

Hello, sir! Thank you very much for your patient reply and detailed guidance. And, I Following your guidance, I operated step by step and the code could run correctly in Google Colab. succès!! But, I want to run the code in my location computer. !python --version could only show the python version information,It does not include the versions of other packages such as numpy, transformer, and pytorch! You know, if there are no versions of these packages, it's very easy to make mistakes during runtime. So, if it's not too much trouble, could you please provide the version information of the relevant packages so that I can run them on my local computer.

‌‌Merci beaucoup!

在 2024-09-19 01:10:41,"Denis Rothman" @.***> 写道:

Hello,

Thank you very much for your message.

Here is what I suggest :

Go to the README page which contains the list of notebooks.

Open any notebook with the Google Colab icon. You need a free Google account.

3.Go to the top of the notebook.

Add a new code cell.

5.Finally, copy and run the following code:

!python --version

Voilà ! The Python version used is displayed and you have the information!

Please keep me informed.

Denis

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Denis2054/Transformers-for-NLP-2nd-Edition/issues/11#issuecomment-2359802108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLCIVT5XQ33PIB75SW7ZDDZXIUIBAVCNFSM6AAAAABOM7IKL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZHAYDEMJQHA . You are receiving this because you commented.Message ID: @.*** com>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Denis2054 commented 1 week ago

Hello,

Thank YOU for your encouraging words!

Denis

On Fri, Sep 20, 2024, 4:17 AM XiaoluJiayou @.***> wrote:

Hello,sir!

Thank you for your reply, the problem has been solved.

This is the best book I have read recently about transformer and NLP practice.

Thank you for writing such a book. I have benefited a lot from it.

merci beaucoup!

At 2024-09-19 15:59:31, "Denis Rothman" @.***> wrote:

Hello,

To obtain the versions of the packages installed during the installation of each notebook in the repository: a) open a notebook in Google Colab free version with a free Google Account b) run each cell that contains a pip install instruction c) the output shows the list of the packages installed with their version numbers

Voilà!

Denis

On Thu, Sep 19, 2024 at 3:46 AM XiaoluJiayou @.***> wrote:

Hello, sir! Thank you very much for your patient reply and detailed guidance. And, I Following your guidance, I operated step by step and the code could run correctly in Google Colab. succès!! But, I want to run the code in my location computer. !python --version could only show the python version information,It does not include the versions of other packages such as numpy, transformer, and pytorch! You know, if there are no versions of these packages, it's very easy to make mistakes during runtime. So, if it's not too much trouble, could you please provide the version information of the relevant packages so that I can run them on my local computer.

‌‌Merci beaucoup!

在 2024-09-19 01:10:41,"Denis Rothman" @.***> 写道:

Hello,

Thank you very much for your message.

Here is what I suggest :

Go to the README page which contains the list of notebooks.

Open any notebook with the Google Colab icon. You need a free Google account.

3.Go to the top of the notebook.

Add a new code cell.

5.Finally, copy and run the following code:

!python --version

Voilà ! The Python version used is displayed and you have the information!

Please keep me informed.

Denis

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/Denis2054/Transformers-for-NLP-2nd-Edition/issues/11#issuecomment-2359802108 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHLCIVT5XQ33PIB75SW7ZDDZXIUIBAVCNFSM6AAAAABOM7IKL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZHAYDEMJQHA

. You are receiving this because you commented.Message ID: @.*** com>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Denis2054/Transformers-for-NLP-2nd-Edition/issues/11#issuecomment-2362573554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLCIVVAAYNHCHL6NWSESRTZXOAUTAVCNFSM6AAAAABOM7IKL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGU3TGNJVGQ . You are receiving this because you commented.Message ID: @.*** com>