Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@themaximalist/modeldeployer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@themaximalist/modeldeployer

Deploy and Manage AI Models

Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
25
212.5%
Maintainers
1
Weekly downloads
 
Created
Source

Model Deployer

deploy AI models for your apps

Model Deployer is the simplest way to deploy AI models for your applications.

Features:

  • Proxy to hundreds of local and remote AI models (LLM, stable diffusion, vectordbs)
  • A single interface for all models, built on LLM.js
  • A single interface for all embeddings, built on Embeddings.js
  • Easily view usage history for each app user
  • Rate-limit users based on pre-defined limits
  • Track cost and usage cross hundreds of AI models
  • Free, paid, and user-provided API key are supported
  • Prevent free users from consuming your API tokens
  • Pre-pay with credits (coming soon)
  • Monthly subscription (coming soon)
  • Self-hosted or hosted modeldeployer.com
  • MIT License

Getting started

You'll need a Postgres DB setup. Then in your shell:

npm install @themaximalist/modeldeployer
cd modeldeployer
npm install
cp .env.template .env # edit DB connection
npm run dev

Visit http://localhost:3000 and you'll see Model Deployer.

You should be able to create a user, a model, and an API key.

Then you can use LLM.js to interact with your API:

import LLM from "@themaximalist/llm.js"
await LLM("what color is the sky?", { service: "modeldeployer", model: "model-api-key-goes-here" });

Embeddings

Model Deployer also works with embeddings.js:

import Embeddings from "@themaximalist/embeddings.js"
await Embeddings("what color is the sky?", { service: "modeldeployer", model: "embeddings-api-key-goes-here" });

More documentation coming soon!

Why does Model Deployer exist?

I built LLM.js because I wanted to give people control over how they use AI models in their apps.

It's great to use GPT-4 and Claude, but it sucks to get locked in. And it's hard to use local models.

LLM.js solves these problems, by creating a single simple interface that works with dozens of popular models.

As great as it is, it doesn't fully solve the problem.

Bundling an app with a local model is not practical, the binaries are hundreds of MBs or even GBs.

Downloading the model on first start also isn't practical. Some users will patiently sit through this, but most won't. The first 10 seconds mean everything on a new app—making users wait will not work.

How do you offer the power of server models, with the flexibility of local open-source models?

Model Deployer is the solution. It's an open-source server to manage models for your users. It trades a little bit of privacy for user experience.

Importantly, it's built on a 100% open stack. So for users who care, (if you're reading this you probably care), there are ways to go fully local, and self hosted.

This accomplishes the best of both worlds. Free, open-source, MIT licensed model deployment tech that integrates into the existing remote/local AI toolchain.

Author

License

MIT

Keywords

ai

FAQs

Package last updated on 12 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts