Skip to content

pixelbar/nodeschool-ai

Repository files navigation

NodeSchool AI workshop

Getting started

  1. Install Node.js (v18 recommended, check by running node -v in your terminal)
  2. Install a code editor
  3. Clone or download this project
  4. Open the cloned directory in your code editor
  5. Install dependencies
    • Run in cloned directory: npm install
  6. Download models
    • If you're at Pixelbar, go to: http://172.16.31.216/ and download t5-base.zip and vit-base-patch16-224.zip, unzip them, and put them (the whole folder, not just the contents) in the models/Xenova folder.
    • If you're not at Pixelbar, set allowRemoteModels in app.js to true to allow models to be downloaded at runtime.
  7. If you want to use OpenAI, create an account at https://openai.com. You get $5 of free credits to be used in the first 3 months.
  8. Run the app: node app.js

Models

Note that Transformers.js is limited in that it can only run models that have been converted to a special format (ONNX). You can find all models compatible with Transformers.js here: https://huggingface.co/models?library=transformers.js&sort=downloads.

Resources

Resources for after the workshop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages