llm-mlc VS relm

Compare llm-mlc vs relm and see what are their differences.

llm-mlc

LLM plugin for running models using MLC (by simonw)

relm

ReLM is a Regular Expression engine for Language Models (by mkuchnik)
Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
llm-mlc relm
3 3
172 89
- -
5.1 5.1
2 months ago about 1 year ago
Python Python
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

llm-mlc

Posts with mentions or reviews of llm-mlc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-04.
  • LLM now provides tools for working with embeddings
    7 projects | news.ycombinator.com | 4 Sep 2023
    I'm still iterating on that. Plugins get complete control over the prompts, so they can handle the various weirdnesses of them. Here's some relevant code:

    https://github.com/simonw/llm-gpt4all/blob/0046e2bf5d0a9c369...

    https://github.com/simonw/llm-mlc/blob/b05eec9ba008e700ecc42...

    https://github.com/simonw/llm-llama-cpp/blob/29ee8d239f5cfbf...

    I'm not completely happy with this yet. Part of the problem is that different models on the same architecture may have completely different prompting styles.

    I expect I'll eventually evolve the plugins to allow them to be configured in an easier and more flexible way. Ideally I'd like you to be able to run new models on existing architectures using an existing plugin.

  • Show HN: LlamaGPT – Self-hosted, offline, private AI chatbot, powered by Llama 2
    12 projects | news.ycombinator.com | 16 Aug 2023
    What is the advantage of this versus running something like https://github.com/simonw/llm , which also gives you options to e.g. use https://github.com/simonw/llm-mlc for accelerated inference?
  • Show HN: LLMs can generate valid JSON 100% of the time
    25 projects | news.ycombinator.com | 14 Aug 2023
    I'm quite impressed with Llama 2 13B - the more time I spend with it the more I think it might be genuinely useful for more than just playing around with local LLMs.

    I'm using the MLC version (since that works with a GPU on my M2 Mac) via my https://github.com/simonw/llm-mlc plugin.

relm

Posts with mentions or reviews of relm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-14.
  • Show HN: LLMs can generate valid JSON 100% of the time
    25 projects | news.ycombinator.com | 14 Aug 2023
    I'm not sure how this is different than:

    https://github.com/1rgs/jsonformer

    or

    https://github.com/newhouseb/clownfish

    or

    https://github.com/mkuchnik/relm

    or

    https://github.com/ggerganov/llama.cpp/pull/1773

    or

    https://github.com/Shopify/torch-grammar

    Overall there are a ton of these logit based guidance systems, the reason they don't get tons of traction is the SOTA models are behind REST APIs that don't enable this fine-grained approach.

    Those models perform so much better that people generally settle for just re-requesting until they get the correct format (and with GPT-4 that ends up being a fairly rare occurrence in my experience)

  • CMU Researchers Introduce ReLM: An AI System For Validating And Querying LLMs Using Standard Regular Expressions
    1 project | /r/machinelearningnews | 8 Jun 2023
    Github: https://github.com/mkuchnik/relm
  • Jsonformer: A bulletproof way to generate structured output from LLMs
    8 projects | news.ycombinator.com | 2 May 2023
    I have stumbled upon your repository a week ago and I have to say, great work and great ideas!

    Another thing I thought about is integrating formatting for fields using a similar system. ISO-8601 dates comes immediately to mind but also number and currency formatting are other examples.

    Probabilistic enums is another thing that I can think of that might be useful for fallback values, I am pretty sure there's a lot of work that can be done in this area, also for other parser kinds

    related and highly recommended resource is https://github.com/mkuchnik/relm and https://arxiv.org/abs/2211.15458. It is a similar system used to validate LLMs using regexes, however built for completely different use cases. I imagine integrating regex checks to the output fields can also have a lot of use cases.

What are some alternatives?

When comparing llm-mlc and relm you can also consider the following projects:

llm-gpt4all - Plugin for LLM adding support for the GPT4All collection of models

jsonformer - A Bulletproof Way to Generate Structured JSON from Language Models

can-ai-code - Self-evaluating interview for AI coders

Constrained-Text-Genera

llama-gpt - A self-hosted, offline, ChatGPT-like chatbot. Powered by Llama 2. 100% private, with no data leaving your device. New: Code Llama support!

Constrained-Text-Generation-Studio - Code repo for "Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio" at the (CAI2) workshop, jointly held at (COLING 2022)

outlines - Structured Text Generation

torch-grammar

TypeChat - TypeChat is a library that makes it easy to build natural language interfaces using types.

ad-llama - Structured inference with Llama 2 in your browser

Chat-Markup-Language - This is a Repo defining a set of rules for ChatGPT to use when sending responses to a user

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured