npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

langdrive

v1.1.0

Published

<div align="center">

Downloads

1

Readme

LangDrive

Train, deploy and query open source LLMs using your private data, all from one library.



LangDrive is an open-source AI library that simplifies training, deploying, and querying open-source large language models (LLMs) using private data. It supports data ingestion, fine-tuning, and deployment via a command-line interface, YAML file, or API, with a quick, easy setup.

Read the docs for more.


Use cases

LangDrive lets you builds amazing AI apps like:

  • Question/Answering over internal documents
  • Chatbots
  • AI agents
  • Content generation

Features:

  • Data ingestion LangDrive comes with the following built in data connectors to simplify data ingestion:

    • Firebase Firestore
    • Email Ingestion via SMTP
    • Google Drive
    • CSV
    • Website URL
    • (more coming soon, or you can build yours - LangDrive is open source)
  • Fine tuning

    • Fine tune open source LLMs easily by formating your data into input:output completion pairs
  • Deployment

    • Add your Hugging Face access token to deploy your model directly to hugging face hub after fine tuning
  • Inference

    • Query our supported open source models
  • Data Utils

    • LangDrive comes built-in with data utils for CRUD operations for the different data connectors
  • API

    • Call our support open source models from a single API
    • Completions API: https://api.langdrive.ai/v1/chat/completions
    • Fine tuning API: https://api.langdrive.ai/train
    • Read the docs for more.

Docs

To see full Documentation and examples, go to docs


Getting started

The simplest way to get started with LangDrive is through your CLI. For a more detailed overview on getting started using the YAML config and API, please visit the docs.

Using the CLI

Node developers can train and deploy a model in 2 simple steps.

  1. npm install langdrive
  2. langdrive train --csv ./path/to/csvFileName.csv --hftoken apikey123 --deploy

In this case, LangDrive will retrieve the data, train a model, host it's weights on Hugging Face, and return an inference endpoint you may use to query the LLM.

The command langdrive train is used to train the LLM, please see how to configure the command below.

args:

  • yaml: Path to optional YAML config doc, default Value: './LangDrive.yaml'. This will load up any class and query for records and their values for both inputs and ouputs.
  • csv: Path to training dataCSV*The training data should be a two-column CSV of input and output pairs.
  • hfToken: An API key provided by Hugging Face with write permissions. Get one here.
  • baseModel: The original model to train: This can be one of the models in our supported models shown at the bottom of this page
  • deployToHf: true | false
  • hfModelPath: The full path to your hugging face model repo where the model should be deployed. Format: hugging face username/model

It is assumed you do not want to deploy your model if you run langdrive train. In such a case a link to where you can download the weights will be provided. Adding --deploy will return a link to the inferencing endpoint.

More information on how to ingest simple data using the CLI can be found in the docs.


Contributions

LangDrive is open source and we welcome contributions from the community. To contribute, please make a PR through the "fork and pull request" process.

Join our Discord to keep up to date with the community and roadmap.