Yonglei
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    <p style="text-align: center"><b><font size=5 color=blueyellow>Basic Deep Learning Tasks from CPUs to GPUs</font></b></p> :::success **MultiGPU Artificial Intelligence Train-The-Trainer Course — Schedule**: https://docs.google.com/document/d/1ztkd5I2k40QetHLwKdnOw4d6Ub_BsrR2epV2dt0wV3E/edit?tab=t.0 ::: ## Instructors - [Ashwin Mohanan](https://enccs.se/ashwin-mohanan) (AM), ENCCS/RISE - [Elena-Anca Praschiv](https://www.linkedin.com/in/elena-anca-paraschiv-367a0218a/), (EP), ICI Bucharest - [Yonglei Wang](https://enccs.se/yonglei-wang) (YW), ENCCS/LiU ## Schedule ### <font color=red>Day 1 (March 3)</font> | Time | Contents | Instructor(s) | | :---------: | :------: | :-----------: | | 14:00-14:20 | [Introduction to Deep Learning](https://enccs.github.io/deep-learning-mini/1-introduction/) | YW | | 14:20-15:15 | [Classification by a neural network using Keras (1-6)](https://enccs.github.io/deep-learning-mini/2-keras/) | AM | | 15:25-15:45 | [Classification by a neural network using Keras (7-10)](https://enccs.github.io/deep-learning-mini/2-keras/#perform-a-prediction-classification) | YW | | | | | 15:45-16:00 | Coffee Break (15 min) | | | | | | 16:00-16:45 | [Monitor the training process (1-6)](https://enccs.github.io/deep-learning-mini/3-monitor-the-model/) | YW | | 16:45-17:30 | [Monitor the training process (7-10)](https://enccs.github.io/deep-learning-mini/3-monitor-the-model/#perform-a-prediction-classification) | AM | ### <font color=red>Day 2 (March 4)</font> | Time | Contents | Instructor(s) | | :---------: | :------: | :-----------: | | 09:30-10:20 | [Advanced layer types (1-6)](https://enccs.github.io/deep-learning-mini/4-advanced-layer-types/) | EP | | 10:20-10:50 | [Advanced layer types (7-10)](https://enccs.github.io/deep-learning-mini/4-advanced-layer-types/#perform-a-prediction-classification) | EP | | 10:50-11:00 | [Outlook and further reading](https://enccs.github.io/deep-learning-intro/6-outlook/) | AM | --- ## Useful Links - [Lesson material](https://enccs.github.io/deep-learning-mini/) - [Login to LB cluster (using temporary username)](https://hackmd.io/@yonglei/login-lb-temp-username) - [Login to LB cluster (regular users)](https://hackmd.io/@yonglei/login-lb-normal-username) - [Google docs](https://drive.google.com/drive/folders/1GqULIbJ5wJsvUk6zgu9fFDCkvfmOtjQN) --- ## ==Setup programming environment on LB cluster== :::info ### 1. Login to LB cluster Either for regular users of LB or the one using temporary usernames and passwords, please try to login to LB cluster using the correct method. Once login to LB, we are now at the path `/leonardo/home/userexternal/<YOUR-USER-ACCOUNT>`. ### 2. Create a working directory and clone files from Github Create a working directory at your login node. ``` mkdir multiGPU_AI_TTT_course_DL cd multiGPU_AI_TTT_course_DL/ ``` You can directly get files from Github repository via running the following commands: ``` git clone https://github.com/ENCCS/deep-learning-mini.git cp -fr deep-learning-mini/jupyter-notebook-for-castiel2-course/* . ``` or you can copy files from the directory for this course with the following commands: ``` cp -r /leonardo_work/tra25_castiel2/COURSE_MATERIAL/DAY1/afternoon/* . ``` After running the commands listed above, you will have the following files/folder in your working directory (here it is `multiGPU_AI_TTT_course_DL`) - 0_DL_job.sh - 1_DL_test.py - 2-Classification-NN-Keras-PenguinsClassification.ipynb - 3-Monitor-training-process-WeatherPrediction.ipynb - 4-Advanced-layer-types-ImageClassification.ipynb - penguins_dataset.csv - weather_prediction_dataset.csv - image_classification (this is a folder with four `npy` files) Submit job script `sbatch 0_DL_job.sh` to ask for computational resources and also test the programming environment. - check the status of the job via command `squeue --me` - once working, you will see the name of the compute node, like `lrdn1234` ### 3. Generating ssh keys for LB cluster Method 1: - Follow instructions [HERE]() to get access to LB compute node from local computer. Method 2: - Using 2FA: `smallstep` to generate ssh key for LB - `step ssh certificate <useremail> --provisioner cineca-hpc <mykey>` - you will be asked to create a password for `mykey` - after running this command, you will get three files - `mykey` - `mykey-cert.pub` - `mykey.pub` - copy three `.pub` files above to the login node of LB. - `scp mykey* <YOUR-USER-NAME>@login01-ext.leonardo.cineca.it:~/.ssh` - login to login node again and go to `.ssh` directory - set up privilege for `.ssh` folder and `mykey*` files - use `mykey` for authorizing login for compute nodes ``` cd .ssh cat mykey*.pub > authorized_keys chmod go-rwx authorized_keys ``` ### 4. Set up 2FA access for both login and compute node Following Step 2, if your job is allocated, you can similar results if you run `squeue --me` ``` JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) idxxxxxx boost_usr jupyter username R 0:44 1 lrdnxxxx ``` - At the login node, run the command `ssh -i ../.ssh/mykey -L 9777:localhost:8888 -N -f lrdnxxxx` - ==Open a new terminal at your computer==, and run the command to make a ssh port forwarding between your local computer and login node `ssh -L 7777:localhost:9999 -N -f <YOUR-USER-NAME>@login01-ext.leonardo.cineca.it` - Access jupyter lab/notebook through browser on your local computer `http://127.0.0.1:7777/lab?token=tokenxxxxxxxxxxxxxxxxxx`, in which the token is available at the `slurm-idxxxxxx.out` file. ::: --- :::danger You can ask questions about the workshop content at the bottom of this page. We use the Zoom chat only for reporting Zoom problems and such. ::: ## Q/A - Is this how to ask a question? - Yes, and an answer will appear like so! ### 1. Introduction ![neutron-in-DL](https://hackmd.io/_uploads/ByG8FvGo1e.png) ### Check-in Do you have Jupyter Lab up and running? *Add a `+` to cast your vote* - Yes:+++++ - No: ++ ### ==Pairplot== - Is there any class that is easily distinguishable from the others? *Add a `+` to cast your vote* - Adelie: + (easy separate adelie from gentoo) - Chinstrap: - Gentoo: ++++ - Which combination of attributes shows the best separation for all 3 class labels at once? - ... - ... - ... ### ==One-hot encoding== How many output neurons will our network have now that we one-hot encoded the target class? *Add a `+` to cast your vote* A: 1 B: 2 + C: 3 ++ --- :::info *Always ask questions at the very bottom of this document, right **above** this.* ::: ---

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully