Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge upstream #2

Open
wants to merge 254 commits into
base: main
Choose a base branch
from
Open

merge upstream #2

wants to merge 254 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Mar 13, 2024

  1. Update the docstring of exl2

    rlouf committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    6484d8c View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Pass 'model_kwargs for outlines.models.llamacpp as dict (#744)

    Fixes [this issue](#743)
    isamu-isozaki authored Mar 14, 2024
    Configuration menu
    Copy the full SHA
    5c15e8c View commit details
    Browse the repository at this point in the history
  2. Add a function to convert utf8 regexps into regexps that operates ove…

    …r individual bytes
    ksvladimir authored and rlouf committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    d7295a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    043117f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8566e8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aa0a35e View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Add BibteX citation

    rlouf committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    f7cafe5 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Configuration menu
    Copy the full SHA
    c744e25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    803439a View commit details
    Browse the repository at this point in the history
  3. Improve syntax highlighting

    rlouf committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    656bafa View commit details
    Browse the repository at this point in the history
  4. Add feedback tweet

    rlouf committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    7d611f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    55c2b96 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d825d0c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aed9d21 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. Configuration menu
    Copy the full SHA
    1d20896 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce06900 View commit details
    Browse the repository at this point in the history
  3. Add vLLM integration

    rlouf committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    65dec32 View commit details
    Browse the repository at this point in the history
  4. Update code blocks style

    rlouf committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    ebf2d6d View commit details
    Browse the repository at this point in the history
  5. Add companies using Outlines

    rlouf committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    c549b1f View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    8da5486 View commit details
    Browse the repository at this point in the history
  2. Add nvidia logo

    rlouf committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    a21ebec View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Add SGLang as a user of outlines

    merrymercy authored and rlouf committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    3a41b0e View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. fix missing text module

    ibndias authored and rlouf committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    be662fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    121a25c View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    aacc633 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae9ae50 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Switched order of AzureAsyncOpenAI to AsyncAzureOpenAI

    Switched order of AzureAsyncOpenAI to AsyncAzureOpenAI
    
    to match name in repo 
    
    https://github.com/openai/openai-python/blob/main/src/openai/lib/azure.py
    gfade authored and rlouf committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    366ea1b View commit details
    Browse the repository at this point in the history
  2. Add downloads badge

    rlouf committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    9f15e28 View commit details
    Browse the repository at this point in the history
  3. Add a small grammar guide

    rlouf committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    868868f View commit details
    Browse the repository at this point in the history
  4. Remove unused dependencies

    rlouf committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    cb8fea8 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Why use structured generation

    rlouf committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    2df288f View commit details
    Browse the repository at this point in the history
  2. Add .txt blurb

    rlouf committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    5f98bd3 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    9103d06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c680744 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2af45a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98dd9dd View commit details
    Browse the repository at this point in the history
  5. Add DirectMerge article

    rlouf committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    0bb6d1d View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    895a82e View commit details
    Browse the repository at this point in the history
  2. Make torch import optional

    rlouf committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    f6e5523 View commit details
    Browse the repository at this point in the history
  3. Add Outlines twitter account

    rlouf committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    2182dbc View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2024

  1. Configuration menu
    Copy the full SHA
    06d5654 View commit details
    Browse the repository at this point in the history
  2. Add tweets about Outlines

    rlouf committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    8208133 View commit details
    Browse the repository at this point in the history
  3. #824 model_name as optional parameter for azure_openai

    Ivan Herreros authored and rlouf committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    92d79a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d548d92 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d6ec1f View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    19eb0f0 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. add azure_openai to models __init__.py

    lassiraa authored and rlouf committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    fc5e342 View commit details
    Browse the repository at this point in the history
  2. follow isort

    lassiraa authored and rlouf committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    078f822 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Configuration menu
    Copy the full SHA
    1eb9a04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9188eff View commit details
    Browse the repository at this point in the history
  3. Add Gigax project to community

    rlouf committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    f5c43e0 View commit details
    Browse the repository at this point in the history
  4. Add HF evaluation article

    rlouf committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    4934425 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Configuration menu
    Copy the full SHA
    164d1f0 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. Add HF article to README

    rlouf committed May 2, 2024
    Configuration menu
    Copy the full SHA
    d6a2b79 View commit details
    Browse the repository at this point in the history
  2. Add ISBN type

    rlouf committed May 2, 2024
    Configuration menu
    Copy the full SHA
    ec664fe View commit details
    Browse the repository at this point in the history
  3. Add IATA code type

    rlouf committed May 2, 2024
    Configuration menu
    Copy the full SHA
    1053e7d View commit details
    Browse the repository at this point in the history
  4. Add country types

    rlouf committed May 2, 2024
    Configuration menu
    Copy the full SHA
    51064f3 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Fix typo in docs (#860)

    eitanturok authored May 3, 2024
    Configuration menu
    Copy the full SHA
    842ef19 View commit details
    Browse the repository at this point in the history
  2. Update README.md

    rlouf authored May 3, 2024
    Configuration menu
    Copy the full SHA
    a101c1c View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Fix code rendering (#864)

    Make the code render as Python.
    eitanturok authored May 5, 2024
    Configuration menu
    Copy the full SHA
    b3b29fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db83c08 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. Fix format in the BentoML doc

    Signed-off-by: Sherlock113 <sherlockxu07@gmail.com>
    Sherlock113 authored and rlouf committed May 6, 2024
    Configuration menu
    Copy the full SHA
    b7d876e View commit details
    Browse the repository at this point in the history
  2. fix CFG Generation

    leloykun authored and rlouf committed May 6, 2024
    Configuration menu
    Copy the full SHA
    353cebb View commit details
    Browse the repository at this point in the history
  3. Localize types

    rlouf committed May 6, 2024
    Configuration menu
    Copy the full SHA
    4f8433d View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Add Email type (#870)

    eitanturok authored May 8, 2024
    Configuration menu
    Copy the full SHA
    a84d78c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99e684e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    97ec37d View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. Remove broken final state loop (#874)

    Fixes #856
    
    The code this PR removes introduces an artificial and erroneous loop
    transition in every final state that is always traversed, regardless of
    the generation.
    
    The comment doesn't make sense in my opinion, as the `if` above just
    handles exactly this case.
    
    Removing this piece of code fixes the bug that surfaced in the upgrade
    of outlines in the vLLM integration.
    br3no authored May 11, 2024
    Configuration menu
    Copy the full SHA
    78852b0 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Configuration menu
    Copy the full SHA
    159d1ec View commit details
    Browse the repository at this point in the history
  2. Prevent Illegal Look-Around for OneOf in JSONSchema (#897)

    Fixes #823
    
    This comment details the issues error:
    #823 (comment)
    
    The reproduction code provided results in a json schema with
    `OneOf[pets]`:
    
    ```
    class Model(BaseModel):
        pet: Union[Cat, Dog] = Field(..., discriminator='pet_type')
    ```
    
    Before this PR: `OneOf` uses negative lookaheads to assert that only one
    schema member is included. This is illegal in `interegular`, more
    details available here:
    #456
    
    After `OneOf` uses or-joined non-capturing groups which don't have the
    same issues with `interegular`.
    lapp0 authored May 17, 2024
    Configuration menu
    Copy the full SHA
    499d19d View commit details
    Browse the repository at this point in the history
  3. circumvent broken llama.cpp pre-tokenizer

    lapp0 authored and rlouf committed May 17, 2024
    Configuration menu
    Copy the full SHA
    315d531 View commit details
    Browse the repository at this point in the history
  4. Add args to Jinja filters (#902)

    In the outlines docs, we have the example
    ```python
    import outlines
    
    def my_tool(arg1: str, arg2: int):
        """Tool description.
    
        The rest of the docstring
        """
        pass
    
    @outlines.prompt
    def tool_prompt(question, tool):
        """{{ question }}
    
        COMMANDS
        1. {{ tool | name }}: {{ tool | description }}, args: {{ tool | args }}
    
        {{ tool | source }}
        """
    
    prompt = tool_prompt("Can you do something?", my_tool)
    print(prompt)
    ```
    However, when I tried running this code, it did not work because the
    `args` filter used in `{{ tool | args }}` was not implemented. I
    implemented the `args` filter so now this example works.
    
    Now the args filter will output all of the arguments with the type
    annotations and default values (if they are provided).
    Example:
    ```python
    from typing import List
    
    def foo(x, y: str, z: List[int]=[1, 2, 3]):
        pass
    
    @outlines.prompt
    def tool_prompt(fn):
        """My args: {{ fn | args }}"""
    
    prompt = tool_prompt(foo)
    print(prompt)
    ```
    which outputs
    ```python
    My args: x, y: str, z: List[int] = [1, 2, 3]
    ```
    eitanturok authored May 17, 2024
    Configuration menu
    Copy the full SHA
    3e291b1 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Allow Parenthesis in STRING_INNER (#899)

    Fix #838
    
    
    06d5654
    erroneously disallowed parenthesis in strings. This PR allows
    parenthesis in strings.
    lapp0 authored May 18, 2024
    Configuration menu
    Copy the full SHA
    7863f8e View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    6f655ca View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Use TQDM to track index compilation progress

    lapp0 authored and rlouf committed May 23, 2024
    Configuration menu
    Copy the full SHA
    ffab2ac View commit details
    Browse the repository at this point in the history
  2. Refactor cache decorator

    These changes make the `cache` decorator operate more like `diskcache`'s
    existing `memoize` method.  They also remove the use of hash value as store
    keys.
    brandonwillard committed May 23, 2024
    Configuration menu
    Copy the full SHA
    d7c9707 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ba7affd View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Use less problematic whitespace token (#916)

    Fixes #839 #908 #690 #450
    
    ## Problem
    
    A major problem, especially with smaller language models, is the
    repetition problem.
    
    For example, let's say a model is generating json and must provide 12
    space tokens for indentation in json output. Often a language model will
    assign a high probability to a 13th space token, and do the same for a
    14th space, and then enter an infinite space generation loop.
    
    This is a problem with NLG that has been known for half a decade, but
    only has mitigations (mirostat, repetition penalty, using hundreds of
    billions of weights, etc), no absolute solutions (except for
    **structured generation**)
    
    ## Solution
    
    For structured json generation, we set a sane default whitespace pattern
    of `r"[ ]?"`. This removes all newlines and indentation. It disallows
    any syntactic whitespace beyond a single space separator.
    
    Users can still set the argument `whitespace_pattern=` if they want
    different behavior
    lapp0 authored May 24, 2024
    Configuration menu
    Copy the full SHA
    411eaaf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e5c39e2 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    538f77a View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Configuration menu
    Copy the full SHA
    7723ce8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6696cb5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3a7d83b View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

  1. Configuration menu
    Copy the full SHA
    7e58226 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81354c8 View commit details
    Browse the repository at this point in the history
  3. Set up Python step in PyPi Release workflow

    lapp0 authored and rlouf committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    95f108e View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. Configuration menu
    Copy the full SHA
    3029b28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fe76d5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b2b923 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5a2073 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9780992 View commit details
    Browse the repository at this point in the history
  6. add versioning guide to community tab

    lapp0 authored and rlouf committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    0b4d12b View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. Configuration menu
    Copy the full SHA
    b8d58da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    869235f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee34e8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aac4b3e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3b66f45 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8a6b7dc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c11a595 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ed44a47 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    80121d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa148cf View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Support min/max number of digits for numbers in JSON Schema (#932)

    This would allow to mitigate some repetition issues that certain LLMs
    have. This should resolve #847
    
    Co-authored-by: Samuel Magnan <samuel@glodonusa.com>
    smagnan and Samuel Magnan authored Jun 11, 2024
    Configuration menu
    Copy the full SHA
    11af6ce View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Fix/extend re replacement seq (#948)

    This PR is an extension of
    #763, related to extending
    the `re_replacement_seq` regex.
    
    The new [NorwAI models](https://huggingface.co/NorwAI) use a tokenizer
    that has the token `�.`, which leads to the same error as was described
    in the previous issue
    #762.
    
    This PR extends the fix from
    #763 to deal with this
    case, as well as adding a unit test to test various tokenizers, and a
    comment describing why we need the prefix and suffix in the regex.
    saattrupdan authored Jun 12, 2024
    Configuration menu
    Copy the full SHA
    a987159 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Update docker ENTRYPOINT to ensure proper argument handling (#962)

    ## Summary
    
    This PR updates the `ENTRYPOINT` instruction in the Dockerfile to ensure
    that additional arguments passed to the container via `docker run` are
    correctly appended to the entrypoint command.
    
    ### Before the change:
    
    Parameter `model` is not passed to the entrypoint command and the
    default model `facebook/opt-125m` is loaded instead.
    
    ```bash
    > sudo docker run --runtime=nvidia --gpus all -p 8000:8000 my-outlines-image --model="microsoft/phi-2"
    
    /usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
      warnings.warn(
    INFO 06-12 14:45:46 llm_engine.py:161] Initializing an LLM engine (v0.5.0) with config: model='facebook/opt-125m', speculative_config=None, tokenizer='facebook/opt-125m', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, rope_scaling=None, rope_theta=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=2048, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), seed=0, served_model_name=facebook/opt-125m)
    ```
    
    ### After the change:
    
    Parameter `model` is correctly passed to the entrypoint command
    
    ```bash
    > sudo docker run --runtime=nvidia --gpus all -p 8000:8000 my-outlines-image --model="microsoft/phi-2"
    
    /usr/local/lib/python3.10/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
      warnings.warn(
    INFO 06-12 14:59:17 llm_engine.py:161] Initializing an LLM engine (v0.5.0) with config: model='microsoft/phi-2', speculative_config=None, tokenizer='microsoft/phi-2', skip_tokenizer_init=False, tokenizer_mode=auto, revision=None, rope_scaling=None, rope_theta=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=2048, download_dir=None, load_format=LoadFormat.AUTO, tensor_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, quantization_param_path=None, device_config=cuda, decoding_config=DecodingConfig(guided_decoding_backend='outlines'), seed=0, served_model_name=microsoft/phi-2)
    ```
    shashankmangla authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    1bdcaa5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1948f0f View commit details
    Browse the repository at this point in the history
  3. Add link to TGI documentation

    rlouf committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    742eb89 View commit details
    Browse the repository at this point in the history
  4. add outlines.models.mlxlm

    lapp0 authored and rlouf committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    18aaba1 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. Configuration menu
    Copy the full SHA
    ed8e6ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    320af22 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2024

  1. fix dependency issues

    fpgmaas authored and rlouf committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    502bfdd View commit details
    Browse the repository at this point in the history
  2. Update Modal refs from stub to app

    kstathou authored and rlouf committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    61d1f43 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Mask cache Performance Optimization for vllm (#939)

    ## Problem
    The current implementation allocates a mask for every token during
    generation, which significantly impacts performance.
    
    ## Proposed Solution
    To improve the performance, we can cache the mask on the device, as it
    depends on the allowed tokens from the FSM. Additionally, limiting the
    input to the hash function to the first 2k tokens results in a notable
    speedup.
    
    ## Discussion
    While using only the first 2k tokens for the hash may introduce
    potential cache collisions, the likelihood of such collisions is very
    low.
    
    ## TODO
    - [x] Provide measurements of the performance impact
    
    ---------
    
    Co-authored-by: pgrundmann <pgrundmann@bht-berlin.de>
    paul-grundmann and pgrundmann authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    0c1935a View commit details
    Browse the repository at this point in the history
  2. update README.md (#968)

    added a reminder and a python script in starter code to request access
    and log in to huggingface before running mistral7b samples.
    silviachen46 authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    49146d5 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Pin Numpy to Prevent Use of Breaking Version

    lapp0 authored and rlouf committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    6a2e6af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26142d5 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Fix samplers documentation (#980)

    This fixes issue #978. Specifically for the classification example in
    the outlines cookbook section
    [here](https://outlines-dev.github.io/outlines/cookbook/classification/),
    it fixes the piece of code in
    outlines.generate.api.SequenceGeneratorAdapter that keeps returning the
    wrong result (i.e. returning False even if a specific sampler is passed
    (greedy, multinomial, or beam search).
    jrinder42 authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    63ac124 View commit details
    Browse the repository at this point in the history
  2. Ensure regex matches valid JSON for "const" and "enum" with booleans,…

    … nulls, and strings
    
    Use JSON's serialization, rather than Python's, in this case.
    
    Fixes #971. Note that this still does not correctly handle arrays
    and objects, which are allowed by the JSON schema spec; however,
    those would be more complex to handle correctly.
    mwootten authored and rlouf committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    7d8269f View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. Configuration menu
    Copy the full SHA
    7b8caee View commit details
    Browse the repository at this point in the history
  2. fix HF Hub ID

    davanstrien authored and rlouf committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    371313e View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Allow escaped strings in json_schema.py

    lapp0 authored and rlouf committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    a9d58ef View commit details
    Browse the repository at this point in the history
  2. Fix use of os.environ in documentation

    rshah713 authored and rlouf committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f20c774 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Configuration menu
    Copy the full SHA
    60e89f5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8dcd24e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7934b31 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2024

  1. Add SimToM prompt recipe (#1002)

    Hi devs, thanks a lot for building `outlines`! 
    
    I saw @rlouf's
    [tweet](https://x.com/remilouf/status/1801889864641573104) the other day
    about adding prompting techniques to your docs, so I decided to
    contribute [Think Twice: Perspective-Taking Improves Large Language
    Models' Theory-of-Mind Capabilities](https://arxiv.org/abs/2311.10227)
    
    Let me know what you think and whether this is what you're after. I
    would be happy to add more prompting techniques to the docs if that's of
    interest.
    kstathou authored Jun 23, 2024
    Configuration menu
    Copy the full SHA
    7d594a1 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    42206e2 View commit details
    Browse the repository at this point in the history
  2. fix models.mlxlm whitespace prefix handling

    lapp0 authored and rlouf committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    1bc2a30 View commit details
    Browse the repository at this point in the history
  3. Adding the option to avoid displaying tqdm bars at inference with `vl…

    …lm` (#1004)
    
    Very minor change that adds the possibility to avoid displaying progress
    bars within `outlines`. It is not changing the default behaviour and is
    just about adding an argument (`use_tqdm`) to the `LLM.generate` call.
    
    It was useful for a personal project and I did not find another way to
    do so, so I decided to PR this.
    BIMM99 authored Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f7d525b View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Configuration menu
    Copy the full SHA
    8406f44 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Add asknews example (#1008)

    AskNews is processing 300k articles per day on-premise with vLLM and
    outlines. Outlines enables much deeper analysis of each article, since
    the LLM doesnt need to worry about structure. Instead, it can focus
    attention on important output like extracting "Reporting Voice" typed as
    a `Literal[str]`.
    
    Thanks to the maintainers of this project!
    robcaulk authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    2807dca View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Improve outlines.processors, add integration tests to test_generate…

    ….py (#998)
    
    A lot of these fixes were intended for
    #966 however that's blocked
    until there's a new `transformers` release.
    
    These improvements are general to all models and will enable PRs
    resolving #806 and
    #965
    
    # Structure of `OutlinesLogitsProcessor`
    
    The goal is to create a base class which allows a logits processors to
    be implemented once and used for any `outlines.models` inference
    library.
    
    To accomplish this we must normalize the input array. It must have a
    consistent type (`torch.Tensor`) and consistent dimensionality (2). We
    can normalize both of these simply, and without any copy operations.
    
    `mlx.core.array`, `numpy.array`, and `torch.Tensor` all support [pythons
    array standard
    `__dlpack__`](https://data-apis.org/array-api/latest/API_specification/generated/array_api.array.__dlpack__.html).
    This standard allows for casting between array types without copying.
    
    `torch.Tensor` is the only input type which cannot always be cast to any
    other type because torch tensors may live in GPU memory. Therefore, we
    cast all arrays to `torch.Tensor`, implement logits processors using
    torch methods, and convert back to the original array type in
    `OutlinesLogitsProcessor`. See docstring of
    `OutlinesLogitsProcessor.__call__()` for more details.
    
    # Detailed Changes
    - Rename `BaseLogitsProcessor` to `OutlinesLogitsProcessor`
    - Ensure `OutlinesLogitsProcessor.process_logits()` is always passed a
    2D batch request with `torch.Tensor` logits and `List` input_ids. Also
    clean up code to be more readable in `OutlinesLogitsProcessor__call__()`
    - Ensure `FSMLogitsProcessor` allows unstable sequence ordering (beam
    search in transformers and vLLM change the order of sequences)
    - Update `tests/generate/test_generate.py` to cover more permutations of
      - regex / text 
      - batch / single
      - greedy / multinomial / beam search
      - `stream()` / `generate()`
    - Ensure performance stability with difference array libraries through
    `benchmark_processors.py`
    lapp0 authored Jun 30, 2024
    Configuration menu
    Copy the full SHA
    a643cb0 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Add abridged version of the .txt article on Coding For Structured Gen…

    …eration (#1012)
    
    I've added an abridged version this [post on the .txt
    blog](https://blog.dottxt.co/coding-for-structured-generation.html) to
    the cookbook that should provide a good overview of a basic workflow for
    developing code when working with structured generation.
    willkurt authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    833f68f View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Cache Legal-Token Mask as torch.tensor

    lapp0 authored and rlouf committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    25b6bcd View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. fix json prompt example

    rshah713 authored and rlouf committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    ea5fbdb View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Configuration menu
    Copy the full SHA
    497ed9f View commit details
    Browse the repository at this point in the history
  2. Fix bug in batched multi sample generation

    JulesGM authored and rlouf committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0383ce1 View commit details
    Browse the repository at this point in the history
  3. Fixed __call__ as well

    JulesGM authored and rlouf committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8c5f1d8 View commit details
    Browse the repository at this point in the history
  4. Update outlines/generate/api.py

    Co-authored-by: Patrice Bechard <bechardpatrice@gmail.com>
    2 people authored and rlouf committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    b54a964 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Update file contributors style for docs

    gtsiolis authored and rlouf committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    59d88dc View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. Configuration menu
    Copy the full SHA
    a48f86f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. Adds support for custom regex parsers (for multimodal structured gene…

    …ration) (#1039)
    
    As [discussed in our Discord
    server](https://discord.com/channels/1182316225284554793/1182317446225481788/1261998326077984802)
    
    This PR adds support for custom regex parsers. This doesn't change the
    behavior of Outlines by default. But this allows us to write custom
    `Guide` classes that uses custom regex parsers for e.g. multimodal
    generation.
    
    Also improves documentation
    leloykun authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    62b7601 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    8224855 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    517ff53 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5a7f082 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Add QA with Citations example to the Cookbook (#1042)

    As requested by @rlouf this PR adds a question answering with citations
    example to the Cookbook using llama-cpp-python.
    alonsosilvaallende authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    08a3e54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e684af2 View commit details
    Browse the repository at this point in the history
  3. fix PyPI name for autoawq

    davanstrien authored and rlouf committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    cd8c79a View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. add fallback tokenizer (#1046)

    add fallback tonenizer if tiktoken can not get encoding from model name 
    support llm services which provide openai compatibility api such as
    ollama
    JerryKwan authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    d64bfc2 View commit details
    Browse the repository at this point in the history
  2. Update cerebrium instructions

    milo157 authored and rlouf committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    9ce0df3 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    1bf23be View commit details
    Browse the repository at this point in the history
  2. Correct link and add llama-cpp-python installation instructions (#1051)

    - Correct link for llama-cpp-python
    - Add installation instructions for llama-cpp-python
    - Correct first question-answer
    alonsosilvaallende authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f6a6c29 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Introduce outlines.models.transformers_vision (#1052)

    Rendered Docs:
    https://github.com/lapp0/outlines/blob/multimodal-models/docs/reference/models/transformers_vision.md
    
    - Fixes #787
    - Fixes #662
    
    # Changes
    
    - Introduce `models.transformers_vision` which subclasses
    `models.transformers` and overrides its behavior so it applies, instead
    of `AutoTokenizer`, `AutoProcessor` to handle the text AND `PIL.Images`
    media
    - Introduce `VisionSequenceGeneratorAdapter`, handling and validating
    the `media` argument.
    - Update `outlines.generate` to dispatch `TransformersVision` models to
    `VisionSequenceGeneratorAdapter`
    
    # Tests
    
    - `tests/generate/test_api.py`: Test `prompt` / `media` validation
    - `tests/generate/test_generate.py`: 
    - Add `model_transformers_vision` fixture. **tests pass locally, but
    disabled because a model small enough for CI isn't available**
    - Test all `outlines.generate` generators to ensure dispatchers for this
    new sequence generator is handled correctly.
    lapp0 authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    a7e3381 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2024

  1. Use outlines.processors for vLLM

    lapp0 authored and rlouf committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    47dfa4b View commit details
    Browse the repository at this point in the history
  2. Fix deprecated memory= parameter (#1057)

    memory= parameter is deprecated in favor of size=
    See https://modal.com/docs/reference/changelog#062174-2024-05-17
    
    Current doc example produces the following error:
    ```
    /path/test_modal.py:56: DeprecationError: 2024-05-16: The `memory` parameter is deprecated. Use the `size='80GB'` parameter instead.
      @app.function(image=outlines_image, gpu=gpu.A100(memory=80))
    ```
    Perdu authored Jul 20, 2024
    Configuration menu
    Copy the full SHA
    42c55bc View commit details
    Browse the repository at this point in the history
  3. Fix failing Modal example (#1058)

    It seems modal deletes environment variables, which makes
    outlines.models.transformers("mistralai/Mistral-7B-Instruct-v0.2")
    fail even after login. This workaround instructs user to manually add
    a key before importing the model.
    
    Fixes #1024
    Perdu authored Jul 20, 2024
    Configuration menu
    Copy the full SHA
    abe689c View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Add links to the two examples (#1062)

    Add links to the two examples:
    - Q&A with Citations
    - Knowledge Graph Generation
    alonsosilvaallende authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    fcfef33 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. add link to MMSG

    leloykun authored and rlouf committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    d78041e View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2024

  1. Configuration menu
    Copy the full SHA
    6e026a7 View commit details
    Browse the repository at this point in the history
  2. fix pad token id reset

    ispobock authored and rlouf committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    bb92745 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    26e2934 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. More detailed mlxlm documentation

    lapp0 authored and rlouf committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    951b020 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Add chain of thought example

    alonsosilvaallende authored and rlouf committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    e3247fe View commit details
    Browse the repository at this point in the history
  2. Fix typos

    alonsosilvaallende authored and rlouf committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    2a2a5d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2d1a06d View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Add ReAct agent example

    alonsosilvaallende authored and rlouf committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    5e8f770 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Include SPDX license info in project metadata

    A license entry in the project metadata makes it easier to detect the
    license of a project.
    
    Before:
    ```shell
    $ pip install pip-licenses outlines
    $ pip-licenses  | grep outlines
     outlines                   0.0.46       UNKNOWN
    ```
    
    After:
    ```shell
    $ pip install .
    $ pip-licenses  | grep outlines
     outlines                   0.0.47.dev43+g8b78f5d  Apache-2.0
    ```
    
    Signed-off-by: Christian Heimes <christian@python.org>
    tiran authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    3072b8f View commit details
    Browse the repository at this point in the history
  2. Restructure documentation, use phi-3-mini, include structured generat…

    …ion example, add feature matrix to models
    lapp0 authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    d0be920 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b10c78f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7218cdd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c9f5bb View commit details
    Browse the repository at this point in the history
  6. Running pre-commit hooks

    parkervg authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a2dddea View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c6dd805 View commit details
    Browse the repository at this point in the history
  8. Add types-Pillow to mypy hook

    parkervg authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    c5a1788 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    eca98a8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    894f240 View commit details
    Browse the repository at this point in the history
  11. More comprehensive TransformersVision test cases

    Multi-image context, using `apply_chat_template`
    parkervg authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    3a98e44 View commit details
    Browse the repository at this point in the history
  12. Revert "Adding apply_chat_template argument to VisionSequenceGenera…

    …torAdapter"
    
    This reverts commit 6200d40.
    parkervg authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a363568 View commit details
    Browse the repository at this point in the history
  13. Remove apply_chat_template test

    parkervg authored and rlouf committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    c2d92b7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    90e588c View commit details
    Browse the repository at this point in the history
  15. Change cookbook examples: Download model weights in the hub cache fol…

    …der (#1097)
    
    Change cookbook examples: Download model weights in the hub cache folder
    alonsosilvaallende authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    ce49ccd View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. Configuration menu
    Copy the full SHA
    8e94488 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Configuration menu
    Copy the full SHA
    e3ecbcc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03b61c5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a70c42 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. Configuration menu
    Copy the full SHA
    900762b View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Configuration menu
    Copy the full SHA
    ce029a8 View commit details
    Browse the repository at this point in the history
  2. Update modal example (#1111)

    I updated some of the text of the modal example to add more information
    on what's happening where, since Modal's general structure may be
    unfamiliar to new users.
    
    List of changes:
    
    - Removed version constraints on the image. I think this is a
    questionable choice so I'd love input -- in general, this should
    probably better be addressed by versioning the docs #999. There's an
    open PR #1059 here that can help with this too -- I'm happy to revert to
    pinned versions, or at least update to the current version of outlines
    (0.0.46).
    - Added a brief note that the Mistral model is gated and requires you to
    request access on HuggingFace.
    - Moved the environment variable setting from `import_model` to a `.env`
    call when the image is created. This is more idiomatic Modal code. It
    was previously addressed in #1058, but this should be more current.
    - More comments and prep.
    cpfiffer authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    067aedb View commit details
    Browse the repository at this point in the history
  3. Fix typo (#1120)

    billmetangmo authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    7cf63d6 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    18eafb0 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. Configuration menu
    Copy the full SHA
    f941fc7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fb3559 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    72377db View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. Configuration menu
    Copy the full SHA
    8730325 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3a1adf View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Add documentation request issue template (#1138)

    Didn't see a good issue template to add documentation requests, here's a
    simple one.
    cpfiffer authored Sep 10, 2024
    Configuration menu
    Copy the full SHA
    e28d423 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d11048b View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Change Outlines' logo

    rlouf committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    ae1524c View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    4ee4203 View commit details
    Browse the repository at this point in the history
  2. Improve sampler docs (#1141)

    The docs did not fully convey how to set temperature, and I figured I'd
    update the sampler docs more generally. A user was having issues with
    this in the Discord.
    
    I update the documentation to include a few things:
    
    Changes:
    
    - Brief overview in layman's terms of what the samplers actually do
    - How multinomial sampling works
    - Added "Parameters" sections for beam search and multinomial sampling
    - Added more headers to break up the various parameters in multinomial
    sampling
    - Provided a simple comparison table to help users choose from the
    available samplers
    
    Misc doc convenience stuff:
    
    - gitignore for mkdocs-generated folders
    - Manually triggered build/publish GitHub Actions for the docs
    cpfiffer authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    ba8a52b View commit details
    Browse the repository at this point in the history
  3. Update vllm.md (#1137)

    Minor typo that prevents model from being downloaded from Huggingface
    hub. Corrected the typo and verified that the download now works.
    
    ---------
    
    Co-authored-by: Cameron Pfiffer <cameron@pfiffer.org>
    americanthinker and cpfiffer authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    2a4d72d View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Correct pathways, update site color, front page fixes (#1146)

    Follow up to #1143 and moving the repo to dottxt-ai. 
    
    - A lot of our links were broken because they pointed to the old site.
    - We changed the logo and the color but it wasn't fully integrated
    across the site.
    
    I fixed these, and made some improvements to the front page so that it's
    a little cleaner.
    
    New mobile/desktop views
    
    
    ![image](https://github.com/user-attachments/assets/9c068733-9cbc-4864-a5cd-763cb7403fa5)
    
    ![image](https://github.com/user-attachments/assets/ddc5c638-6129-439d-8645-403af1ec9acf)
    
    Current for reference
    
    
    ![image](https://github.com/user-attachments/assets/2bcebe41-a4db-4fba-9a0e-d8adfaf8b1f9)
    
    GitHub contributors are still available off the welcome page: 
    
    ![image](https://github.com/user-attachments/assets/ce4b21e6-2969-47f6-b351-19cf91759868)
    cpfiffer authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    0b9a3f1 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    cfde8b7 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Configuration menu
    Copy the full SHA
    1894fa3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b1aed0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5591950 View commit details
    Browse the repository at this point in the history
  4. reflect in docs: models.openai with new interface, also remove refere…

    …nces to gpt-3 and gpt-4
    lapp0 authored and rlouf committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    289ef5d View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. Remove link to Outlines twitter account

    The account is going to be deactivated soon.
    rlouf committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    e07f550 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Configuration menu
    Copy the full SHA
    77c6d67 View commit details
    Browse the repository at this point in the history
  2. Fix benchmark workflow triggers

    Closes #1164
    brandonwillard committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    538e714 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Reuse jinja environment for a prompt

    jantrienes authored and rlouf committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    6035e86 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. Use more performant fsm backend

    lapp0 authored and rlouf committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    30531e5 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    c5be3b8 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. add missing comma in llamacpp docs

    cpfiffer authored and rlouf committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    4bf1470 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. Exllamav2_filter

    Fix comment
    
    Fixed precommit issues
    
    Removed text
    
    Basic draft done
    
    Passed local test
    
    Fixed tests+precommit
    
    Revert change for pyairports
    
    Fixed precommit
    
    Wrap up
    
    Remove | for union
    
    Attempt changing to List
    
    Fixed for 3.8
    
    Adding exllamav2 to optional dependency
    
    Fixed model
    
    Changed to fork
    
    Fix format
    
    Changed order
    
    Skip exllamav2 tests
    
    Attempt fixing coverage
    
    Attempt fix coverage
    
    Remove flash-attn requirement
    
    Fixed fixture tests
    
    Removed lora
    
    Passed coverage
    
    Added back transformers install
    
    Fixed per review
    
    Made coverage 100%
    isamu-isozaki authored and rlouf committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    80b82f1 View commit details
    Browse the repository at this point in the history
  2. automatically download exl2 model in tests

    fix exl bug: sometimes piece_to_id not populated, but get_piece_to_id() still works
    
    fix exl bug: sometimes piece_to_id not populated, but get_piece_to_id() still works
    
    enable exl2 in generate.cfg
    
    cleate OutlinesExLlamaV2Tokenizer rather than monkey patching
    lapp0 authored and rlouf committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    faa7c5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0da7039 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Version the Documentation

    lapp0 authored and rlouf committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    ef4e819 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    541a8b0 View commit details
    Browse the repository at this point in the history
  3. construct logits mask in batch operation

    lapp0 authored and rlouf committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    d1b8728 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9e8bd6c View commit details
    Browse the repository at this point in the history
  5. use not in mkdocs

    lapp0 authored and rlouf committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    a2fd35c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Create lmstudio.md

    cpfiffer authored and rlouf committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    c1fae8a View commit details
    Browse the repository at this point in the history
  2. use pre-commit

    cpfiffer authored and rlouf committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    64fb30f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    866b9a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eabca69 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6f36b71 View commit details
    Browse the repository at this point in the history
  6. test fsm_union and walk_fsm

    lapp0 authored and rlouf committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    969887e View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Fix logo color and doc links (#1213)

    - Will's structured generation workflow cookbook example was not in the
    mkdocs index, so it was not being displayed.
    - Same with the LM Studio serving docs.
    - The brand color was also slightly off:
    
    
    ![image](https://github.com/user-attachments/assets/fd10fa4f-d140-4936-befa-4dcca09c0e51)
    
    It has been fixed to this:
    
    
    ![image](https://github.com/user-attachments/assets/b6c2d71b-6a7f-4b86-935a-bf5072f1d945)
    cpfiffer authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    6cff654 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Add transformers vision cookbook with atomic caption flow (#1216)

    Request received in discord to add an example for the new transformers
    vision capability.
    
    
    # Vision-Language Models with Outlines
    This guide demonstrates how to use Outlines with vision-language models,
    leveraging the new transformers_vision module. Vision-language models
    can process both text and images, allowing for tasks like image
    captioning, visual question answering, and more.
    
    We will be using the Pixtral-12B model from Mistral to take advantage of
    some of its visual reasoning capabilities and a workflow to generate a
    multistage atomic caption.
    
    ---------
    
    Signed-off-by: jphillips <josh.phillips@fearnworks.com>
    fearnworks authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    a2fa1e0 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Update llamacpp.md (#1231)

    accross -> across
    eltociear authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    dc31b9b View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Earnings report cookbook (#1235)

    This is a condensed version of the demo for [extracting earnings
    reports](https://github.com/dottxt-ai/demos/tree/main/earnings-reports)
    to CSV.
    
    Overview:
    
    - Shows how to use Outlines to structure CSV output
    - Provides simple tools for converting a table specification to regular
    expressions
    - Includes a tuned extraction prompt that performs reasonably well on
    income statements
    cpfiffer authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    5f39ded View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Add PDF cookbook (#1256)

    Adds a cookbook on extracting structured output from PDFs.
    
    I included some extra bells and whistles here by showing how to do JSON,
    regex, and `choice`, which should help provide inspiration to people
    working with PDFs.
    cpfiffer authored Nov 8, 2024
    Configuration menu
    Copy the full SHA
    906e84e View commit details
    Browse the repository at this point in the history
  2. Add earnings reports to cookbook index (#1255)

    Forgot to add the earnings report cookbook to the cookbook index
    (#1235), this fixes it.
    cpfiffer authored Nov 8, 2024
    Configuration menu
    Copy the full SHA
    b93f550 View commit details
    Browse the repository at this point in the history
  3. Add a receipt processing cookbook (#1249)

    I added a receipt processing cookbook. 
    
    - Uses Qwen or Pixtral
    - General purpose message templating, no messy model-specific token
    adding
    - Easy function for compressing images down for lower processing/memory
    requirements
    
    Should help illustrate a simple use case for vision models.
    cpfiffer authored Nov 8, 2024
    Configuration menu
    Copy the full SHA
    b5d26c4 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2024

  1. Update README.md (#1258)

    Fix that error NameError: name 'rng' is not defined
    scampion authored Nov 10, 2024
    Configuration menu
    Copy the full SHA
    d842522 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Configuration menu
    Copy the full SHA
    c406da8 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. Turn off guide caching

    torymur authored and rlouf committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    2eab80c View commit details
    Browse the repository at this point in the history
  2. Fix index interface in tests

    torymur authored and rlouf committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    f099f96 View commit details
    Browse the repository at this point in the history
  3. Update generation.md

    `[Outlines model](../models)` does not return the link correctly.   
    
    Tried switching to `[Outlines model](../models/models.md)`
    djinnome authored and rlouf committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    b55d314 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. Configuration menu
    Copy the full SHA
    bf62d11 View commit details
    Browse the repository at this point in the history
  2. Update home page spacing

    gtsiolis authored and rlouf committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7a9baad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    63b4feb View commit details
    Browse the repository at this point in the history
  4. Update mlx-lm kvcache creation

    cmcmaster1 authored and rlouf committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7cdaeac View commit details
    Browse the repository at this point in the history
  5. Add beam deployment example

    mernit authored and rlouf committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    2db34c5 View commit details
    Browse the repository at this point in the history
  6. Add OpenAI to LogitsGenerator

    ulfaslak authored and rlouf committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    66f6627 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    568f252 View commit details
    Browse the repository at this point in the history
  8. Add jax compatible api (#1207)

    This PR adds a JAX compatible API, refer issue #1027
    sky-2002 authored Nov 27, 2024
    Configuration menu
    Copy the full SHA
    5608dd8 View commit details
    Browse the repository at this point in the history
  9. Add json call with multi-function enums (#1277)

    This PR aims at solving #1217
    g-prz authored Nov 27, 2024
    Configuration menu
    Copy the full SHA
    e9485cf View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Fix library top-level imports (#1296)

    Users are currently running into install issues. After a clean install
    of `outlines` they get an error message that asks for `transformers` to
    be installed. This should not be the case, as the library is not
    required for every integration. In this PR we remove `transformers` and
    `datasets` top-level imports, and add per-integration optional
    dependencies.
    
    ## TODO
    - [x] Test `import outlines` from clean install
    - [x] Test installing outlines with vLLM optional dependencies
    - [x] Test installing outlines with MLX optional dependencies
    - [x] Test installing outlines with transformers optional dependencies
    - [x] Test installing outlines with llama-cpp optional dependencies
    - [x] Test installing outlines with exllamav2 optional dependencies
    - [x] Test installing outlines with openai optional dependencies
    - [x] Update the documentation
    
    Supersedes #1295.  Fixes #1263.
    rlouf authored Nov 28, 2024
    Configuration menu
    Copy the full SHA
    36f1bf2 View commit details
    Browse the repository at this point in the history