QNAP NAS

QNAP online resources collection

Image
QNAP is the famous private cloud solution provider, the main product is NAS (Network attach Storage), this article collect QNAP online resources and help QNAPer / NAS beginner quickly know how to select NAS and find application information, if any suggestion website, welcome to comment and share with us. QNAP website  https://www.qnap.com/en/ Topic include NAS, Operation System, Application, Tutorial / FAQ , Forum and Customer Service.

How to setup Fast.AI on QNAP NAS TS-2888X

How to setup Fast.AI on QNAP NAS
Fast.AI website:  https://www.fast.ai/ 

online courses (all are free and have no ads):

           software: fastai v1 for PyTorch


          We are testing Fast.AI on QNAP NAS
          docker image from dockerhub :
          Tag : 1.0-release



          before we start, if you are new to QNAP NAS, suggest read these tutorial, including how to setup GPU and other development tool.

          after successful install the Fast.AI docker image, we testing: example/dogs_cats.ipynb

          find three issues ... and now we will explain how to modify it to complete the example


          • RuntimeError: DataLoader worker (pid 13) is killed by signal: Bus error.
          • CUDA Out of Memory Error
          • ModuleNotFoundError

          issue1:
          RuntimeError: DataLoader worker (pid 13) is killed by signal: Bus error.

          reference:

          solution 1 : increase shm-size

          1. Command : GPU=nvidia0 gpu-docker run --name=Fastai --shm-size=16G -d -p 8888:8888 paperspace/fastai:1.0-release
            (shm-size depends on the real memory size, suggest only using half memory for shm)
          2. Open Container Station, and get into Fastai Container
          3. from the screen you can see the token, just copy token and then click the URL ex : http://192.168.1.1:8888
          4. using token to login Jupyter notebook

          solution 2:
          1. using Container Station create Fast.ai docker image
          2. modify Python code, add "num_workers=1" into DataLoader


          issue2 : CUDA Out of Memory Error

          reference :

          solution: modify batch size

          1. modify Python code ,add "bs=16" into DataLoader


          issue3: ModuleNotFound

          solution: add module

          1. get into Jupyter notebook
          2. open Terminal

          3. pip install
            ex. : pip install dataclasses
          4. if package dependency issue, install accordingly

          5. after install, restart notebook cell


          once you fixed these issue, you can run sample example/dogs_cats.ipynb successfully


          Comments

          Popular posts from this blog

          How to use MongoDB on QNAP NAS ?

          How to setup influxDB and Grafana on QNAP NAS ?

          QNAP QVR Pro Client user guide

          How to use PostgreSQL on QNAP NAS ?

          How to setup GPU on QNAP NAS (QTS 4.3.5+)

          How to use QNAP IoT solution - QIoT Suite

          How to use Home Bridge on QNAP NAS ?

          卸任倒數 宏碁突圍再出奇招 不轉型雲端 施振榮:我就是罪人