GithubHelp home page GithubHelp logo

jbilcke-hf / template-node-llama-express Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 23 KB

A minimalist Docker project to get started with Node, llama-node and Express. Ready to be used in a Hugging Face Space.

License: Apache License 2.0

Dockerfile 19.72% TypeScript 80.28%
huggingface-spaces ai llama-node llamacpp llm nodejs docker

template-node-llama-express's Introduction

title emoji colorFrom colorTo sdk pinned app_port
Template Node Llama Express
๐Ÿ—๏ธ
gray
blue
docker
false
7860

A minimalist Docker Space to help people getting started with Node, Express, node-llama and TypeScript

Installation

Prerequisites

Downloading the model

Building and run without Docker

You need to downloaded yourself airoboros-13b-gpt4.ggmlv3.q4_0.bin in the ./models/ folder. If you plan to change the model, then edit the modelPath in `/src/index.mts`` acconrdingly.

nvm use
npm i
npm run start

Then open the generator by passing a prompt in the query parameters:

http://localhost:7860?prompt=a webpage recipe for making chocolate chip cookies

Building and running with Docker

Note: the model will be downloaded by Docker, see the last lines in the Dockerfile.

npm run docker

This script is a shortcut executing the following commands:

docker build -t template-node-llama-express .
docker run -it -p 7860:7860 template-node-llama-express

template-node-llama-express's People

Contributors

jbilcke-hf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

template-node-llama-express's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.