Git Product home page Git Product logo

llm_utils's Introduction

Introduction

This project provides a suite of auxiliary tools related to LLMs, including data collection, annotation, evaluation, model deployment, and basic fine-tuning capabilities.

Installation

pip install -e .

Models Server

This section of the code primarily originates from api-for-open-llm, with the goal of unifying the calling conventions of my own deployed LLM with those of OpenAI. The following changes have been made on this basis:

  1. Added interface forwarding for openai/qwen.
  2. Added the ability to customize embedding models.
  3. Tools service.
  4. Saving data when the first user message has id field.

Usage

export OPENAI_API_KEY=sk-xxx
export DASHSCOPE_API_KEY=sk-xxx

python models_server.py # default models are gpt and qwen

GENERATED_MODELS=model1:0,model2:1 EMBEDDING_MODELS=model1:0,model2:1 python models_server.py # set model1 to device(cuda:0) and model2 to device(cuda:1)

llm_utils's People

Contributors

hackiey avatar

Watchers

 avatar

Forkers

nerveras

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.