Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahuldshetty/starcoder.js

Web browser version of StarCoder.cpp
https://github.com/rahuldshetty/starcoder.js

Last synced: 5 days ago
JSON representation

Web browser version of StarCoder.cpp

Awesome Lists containing this project

README

        

# 💫StarCoder.js *\*Experimental*\*

[![npm version](https://badge.fury.io/js/starcoder.js.svg)](https://badge.fury.io/js/starcoder.js)

`THIS IS UNDER DEVELOPMENT AND IS NOT PRODUCTION READY. BROWSER REQUIRES MEM64 SUPPORT TO RUN THIS PROJECT`

This project brings [starcoder.cpp](https://github.com/bigcode-project/starcoder.cpp) to browser with power of WebAssembly.

## Demo

Web Application : [starcoder.js](https://rahuldshetty.github.io/starcoder.js/)

![App](assets/app.PNG)

![Fibonacci Example](assets/fibonacci.PNG)

### Performance

![Prime Example](assets/prime.PNG)

Following performance speed is captured on Firefox Nightly with following system configuration:
* CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
* Memory: 24GB

![Generation Performance](assets/performance.PNG)

# Build Instructions

```
git clone https://github.com/bigcode-project/starcoder.cpp
cd starcoder.cpp

Run the notebook in examples/ to convert starcoder model to GGML format.

# Builds JS/WASM dependency in build/ location
build.sh

# Generate Distributable JS
npm run build

# To publish to NPM
npm publish
```