relm

ReLM is a Regular Expression engine for Language Models (by mkuchnik)

Relm Alternatives

Similar projects and alternatives to relm

  1. llama.cpp

    864 relm VS llama.cpp

    LLM inference in C/C++

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. faker

    70 relm VS faker

    Generate massive amounts of fake data in the browser and node.js (by faker-js)

  4. json-schema-spec

    48 relm VS json-schema-spec

    The JSON Schema specification

  5. outlines

    41 relm VS outlines

    Structured Text Generation

  6. 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)

  7. lmql

    34 relm VS lmql

    A language for constraint-guided and efficient LLM programming.

  8. guidance

    28 relm VS guidance

    A guidance language for controlling large language models.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. jsonformer

    25 relm VS jsonformer

    A Bulletproof Way to Generate Structured JSON from Language Models

  11. TypeChat

    14 relm VS TypeChat

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

  12. clownfish

    11 relm VS clownfish

    Constrained Decoding for LLMs against JSON Schema

  13. llm-mlc

    3 relm VS llm-mlc

    LLM plugin for running models using MLC

  14. flashtext

    8 relm VS flashtext

    Extract Keywords from sentence or Replace keywords in sentences.

  15. Chat-Markup-Language

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

  16. ad-llama

    7 relm VS ad-llama

    Structured inference with Llama 2 in your browser

  17. magic

    5 relm VS magic

    AI functions for Typescript (by jumploops)

  18. transmogrifier

    1 relm VS transmogrifier

    Unstructured data goes in, structured data comes out. Sometimes comedically.

  19. cria

    4 relm VS cria

    Tiny inference-only implementation of LLaMA (by recmo)

  20. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better relm alternative or higher similarity.

relm discussion

Log in or Post with

relm reviews and mentions

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.

  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 6 Feb 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic relm repo stats
3
104
5.1
over 1 year ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai