Train and run AI models in your browser. No code, no debugging, just model design. Everything stays on your device.
Stellarapp guarantees the safety of your training data by never uploading it in the first place. But if you want full control, you can fire up a local version of Stellarapp.
Requirements
Clone the repository
git clone https://github.com/rkuang9/stellarapp.git
Install all packages
cd stellarapp
npm install
Start the server
# development server
npm run dev
# production server
npm run build && npm start
Open the local web page at http://localhost:3000
This project uses Jest for unit testing. To run the tests, use
npm test
This project uses Playwright for end-to-end testing. Install the extension Playwright Test for VSCode, then the test browsers
npx playwright install
Run the tests via the VSCode testing panel
Stellarapp uses @stellarapp/tfjs-stellar to implement LLMs. You can use it interoperably with @tensorflow/tfjs to create your own GPT-like or Llama-like model class. The web app utilizes web workers to train models and avoid locking the web interface.
- Create a new
web workerandclientin thesrc/lib/webworkerfolder (recommended to copy and modifygpt_client.tsandgpt_worker.ts) - In
src/features/training/gptswap out all instances ofGPTModelWorkerand its imports with your worker client
To create your own model class, extend the tfs.models.LlmModel class. See the GptModel class as an example (remember to tf.serialization.registerClass your class).