-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Commits on Mar 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6484d8c - Browse repository at this point
Copy the full SHA 6484d8cView commit details
Commits on Mar 14, 2024
-
Pass
'model_kwargs
foroutlines.models.llamacpp
as dict (#744)Fixes [this issue](#743)
Configuration menu - View commit details
-
Copy full SHA for 5c15e8c - Browse repository at this point
Copy the full SHA 5c15e8cView commit details -
Add a function to convert utf8 regexps into regexps that operates ove…
…r individual bytes
Configuration menu - View commit details
-
Copy full SHA for d7295a7 - Browse repository at this point
Copy the full SHA d7295a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 043117f - Browse repository at this point
Copy the full SHA 043117fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8566e8 - Browse repository at this point
Copy the full SHA c8566e8View commit details -
Check if the given token is a string (#745)
Some model use bytes as their tokens, such as Qwen (see: https://huggingface.co/Qwen/Qwen-7B/blob/ef3c5c9c57b252f3149c1408daf4d649ec8b6c85/tokenization_qwen.py#L136 )
Configuration menu - View commit details
-
Copy full SHA for aa0a35e - Browse repository at this point
Copy the full SHA aa0a35eView commit details
Commits on Mar 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f7cafe5 - Browse repository at this point
Copy the full SHA f7cafe5View commit details
Commits on Mar 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c744e25 - Browse repository at this point
Copy the full SHA c744e25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 803439a - Browse repository at this point
Copy the full SHA 803439aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 656bafa - Browse repository at this point
Copy the full SHA 656bafaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d611f7 - Browse repository at this point
Copy the full SHA 7d611f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55c2b96 - Browse repository at this point
Copy the full SHA 55c2b96View commit details -
Configuration menu - View commit details
-
Copy full SHA for d825d0c - Browse repository at this point
Copy the full SHA d825d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for aed9d21 - Browse repository at this point
Copy the full SHA aed9d21View commit details
Commits on Apr 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1d20896 - Browse repository at this point
Copy the full SHA 1d20896View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce06900 - Browse repository at this point
Copy the full SHA ce06900View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65dec32 - Browse repository at this point
Copy the full SHA 65dec32View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebf2d6d - Browse repository at this point
Copy the full SHA ebf2d6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c549b1f - Browse repository at this point
Copy the full SHA c549b1fView commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8da5486 - Browse repository at this point
Copy the full SHA 8da5486View commit details -
Configuration menu - View commit details
-
Copy full SHA for a21ebec - Browse repository at this point
Copy the full SHA a21ebecView commit details
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3a41b0e - Browse repository at this point
Copy the full SHA 3a41b0eView commit details
Commits on Apr 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for be662fe - Browse repository at this point
Copy the full SHA be662feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 121a25c - Browse repository at this point
Copy the full SHA 121a25cView commit details
Commits on Apr 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aacc633 - Browse repository at this point
Copy the full SHA aacc633View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae9ae50 - Browse repository at this point
Copy the full SHA ae9ae50View commit details
Commits on Apr 11, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 366ea1b - Browse repository at this point
Copy the full SHA 366ea1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f15e28 - Browse repository at this point
Copy the full SHA 9f15e28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 868868f - Browse repository at this point
Copy the full SHA 868868fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb8fea8 - Browse repository at this point
Copy the full SHA cb8fea8View commit details
Commits on Apr 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2df288f - Browse repository at this point
Copy the full SHA 2df288fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f98bd3 - Browse repository at this point
Copy the full SHA 5f98bd3View commit details
Commits on Apr 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9103d06 - Browse repository at this point
Copy the full SHA 9103d06View commit details -
Configuration menu - View commit details
-
Copy full SHA for c680744 - Browse repository at this point
Copy the full SHA c680744View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2af45a - Browse repository at this point
Copy the full SHA f2af45aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98dd9dd - Browse repository at this point
Copy the full SHA 98dd9ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bb6d1d - Browse repository at this point
Copy the full SHA 0bb6d1dView commit details
Commits on Apr 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 895a82e - Browse repository at this point
Copy the full SHA 895a82eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6e5523 - Browse repository at this point
Copy the full SHA f6e5523View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2182dbc - Browse repository at this point
Copy the full SHA 2182dbcView commit details
Commits on Apr 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 06d5654 - Browse repository at this point
Copy the full SHA 06d5654View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8208133 - Browse repository at this point
Copy the full SHA 8208133View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92d79a1 - Browse repository at this point
Copy the full SHA 92d79a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d548d92 - Browse repository at this point
Copy the full SHA d548d92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d6ec1f - Browse repository at this point
Copy the full SHA 4d6ec1fView commit details
Commits on Apr 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 19eb0f0 - Browse repository at this point
Copy the full SHA 19eb0f0View commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fc5e342 - Browse repository at this point
Copy the full SHA fc5e342View commit details -
Configuration menu - View commit details
-
Copy full SHA for 078f822 - Browse repository at this point
Copy the full SHA 078f822View commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1eb9a04 - Browse repository at this point
Copy the full SHA 1eb9a04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9188eff - Browse repository at this point
Copy the full SHA 9188effView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c43e0 - Browse repository at this point
Copy the full SHA f5c43e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4934425 - Browse repository at this point
Copy the full SHA 4934425View commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 164d1f0 - Browse repository at this point
Copy the full SHA 164d1f0View commit details
Commits on May 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d6a2b79 - Browse repository at this point
Copy the full SHA d6a2b79View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec664fe - Browse repository at this point
Copy the full SHA ec664feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1053e7d - Browse repository at this point
Copy the full SHA 1053e7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51064f3 - Browse repository at this point
Copy the full SHA 51064f3View commit details
Commits on May 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 842ef19 - Browse repository at this point
Copy the full SHA 842ef19View commit details -
Configuration menu - View commit details
-
Copy full SHA for a101c1c - Browse repository at this point
Copy the full SHA a101c1cView commit details
Commits on May 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b3b29fe - Browse repository at this point
Copy the full SHA b3b29feView commit details -
Configuration menu - View commit details
-
Copy full SHA for db83c08 - Browse repository at this point
Copy the full SHA db83c08View commit details
Commits on May 6, 2024
-
Signed-off-by: Sherlock113 <sherlockxu07@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b7d876e - Browse repository at this point
Copy the full SHA b7d876eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 353cebb - Browse repository at this point
Copy the full SHA 353cebbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f8433d - Browse repository at this point
Copy the full SHA 4f8433dView commit details
Commits on May 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a84d78c - Browse repository at this point
Copy the full SHA a84d78cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99e684e - Browse repository at this point
Copy the full SHA 99e684eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97ec37d - Browse repository at this point
Copy the full SHA 97ec37dView commit details
Commits on May 11, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 78852b0 - Browse repository at this point
Copy the full SHA 78852b0View commit details
Commits on May 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 159d1ec - Browse repository at this point
Copy the full SHA 159d1ecView commit details -
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`.
Configuration menu - View commit details
-
Copy full SHA for 499d19d - Browse repository at this point
Copy the full SHA 499d19dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 315d531 - Browse repository at this point
Copy the full SHA 315d531View commit details -
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] ```
Configuration menu - View commit details
-
Copy full SHA for 3e291b1 - Browse repository at this point
Copy the full SHA 3e291b1View commit details
Commits on May 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7863f8e - Browse repository at this point
Copy the full SHA 7863f8eView commit details
Commits on May 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6f655ca - Browse repository at this point
Copy the full SHA 6f655caView commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ffab2ac - Browse repository at this point
Copy the full SHA ffab2acView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for d7c9707 - Browse repository at this point
Copy the full SHA d7c9707View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7affd - Browse repository at this point
Copy the full SHA ba7affdView commit details
Commits on May 24, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 411eaaf - Browse repository at this point
Copy the full SHA 411eaafView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5c39e2 - Browse repository at this point
Copy the full SHA e5c39e2View commit details
Commits on May 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 538f77a - Browse repository at this point
Copy the full SHA 538f77aView commit details
Commits on May 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7723ce8 - Browse repository at this point
Copy the full SHA 7723ce8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6696cb5 - Browse repository at this point
Copy the full SHA 6696cb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a7d83b - Browse repository at this point
Copy the full SHA 3a7d83bView commit details
Commits on Jun 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7e58226 - Browse repository at this point
Copy the full SHA 7e58226View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81354c8 - Browse repository at this point
Copy the full SHA 81354c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95f108e - Browse repository at this point
Copy the full SHA 95f108eView commit details
Commits on Jun 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3029b28 - Browse repository at this point
Copy the full SHA 3029b28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fe76d5 - Browse repository at this point
Copy the full SHA 6fe76d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b2b923 - Browse repository at this point
Copy the full SHA 9b2b923View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a2073 - Browse repository at this point
Copy the full SHA b5a2073View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9780992 - Browse repository at this point
Copy the full SHA 9780992View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b4d12b - Browse repository at this point
Copy the full SHA 0b4d12bView commit details
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b8d58da - Browse repository at this point
Copy the full SHA b8d58daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 869235f - Browse repository at this point
Copy the full SHA 869235fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee34e8e - Browse repository at this point
Copy the full SHA ee34e8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for aac4b3e - Browse repository at this point
Copy the full SHA aac4b3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b66f45 - Browse repository at this point
Copy the full SHA 3b66f45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a6b7dc - Browse repository at this point
Copy the full SHA 8a6b7dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for c11a595 - Browse repository at this point
Copy the full SHA c11a595View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed44a47 - Browse repository at this point
Copy the full SHA ed44a47View commit details
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 80121d6 - Browse repository at this point
Copy the full SHA 80121d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa148cf - Browse repository at this point
Copy the full SHA aa148cfView commit details
Commits on Jun 11, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for 11af6ce - Browse repository at this point
Copy the full SHA 11af6ceView commit details
Commits on Jun 12, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for a987159 - Browse repository at this point
Copy the full SHA a987159View commit details
Commits on Jun 13, 2024
-
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) ```
Configuration menu - View commit details
-
Copy full SHA for 1bdcaa5 - Browse repository at this point
Copy the full SHA 1bdcaa5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1948f0f - Browse repository at this point
Copy the full SHA 1948f0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 742eb89 - Browse repository at this point
Copy the full SHA 742eb89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18aaba1 - Browse repository at this point
Copy the full SHA 18aaba1View commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ed8e6ec - Browse repository at this point
Copy the full SHA ed8e6ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 320af22 - Browse repository at this point
Copy the full SHA 320af22View commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 502bfdd - Browse repository at this point
Copy the full SHA 502bfddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 61d1f43 - Browse repository at this point
Copy the full SHA 61d1f43View commit details
Commits on Jun 16, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for 0c1935a - Browse repository at this point
Copy the full SHA 0c1935aView commit details -
added a reminder and a python script in starter code to request access and log in to huggingface before running mistral7b samples.
Configuration menu - View commit details
-
Copy full SHA for 49146d5 - Browse repository at this point
Copy the full SHA 49146d5View commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a2e6af - Browse repository at this point
Copy the full SHA 6a2e6afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26142d5 - Browse repository at this point
Copy the full SHA 26142d5View commit details
Commits on Jun 18, 2024
-
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).
Configuration menu - View commit details
-
Copy full SHA for 63ac124 - Browse repository at this point
Copy the full SHA 63ac124View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7d8269f - Browse repository at this point
Copy the full SHA 7d8269fView commit details
Commits on Jun 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7b8caee - Browse repository at this point
Copy the full SHA 7b8caeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 371313e - Browse repository at this point
Copy the full SHA 371313eView commit details
Commits on Jun 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a9d58ef - Browse repository at this point
Copy the full SHA a9d58efView commit details -
Configuration menu - View commit details
-
Copy full SHA for f20c774 - Browse repository at this point
Copy the full SHA f20c774View commit details
Commits on Jun 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 60e89f5 - Browse repository at this point
Copy the full SHA 60e89f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dcd24e - Browse repository at this point
Copy the full SHA 8dcd24eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7934b31 - Browse repository at this point
Copy the full SHA 7934b31View commit details
Commits on Jun 23, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 7d594a1 - Browse repository at this point
Copy the full SHA 7d594a1View commit details
Commits on Jun 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 42206e2 - Browse repository at this point
Copy the full SHA 42206e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bc2a30 - Browse repository at this point
Copy the full SHA 1bc2a30View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f7d525b - Browse repository at this point
Copy the full SHA f7d525bView commit details
Commits on Jun 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8406f44 - Browse repository at this point
Copy the full SHA 8406f44View commit details
Commits on Jun 28, 2024
-
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!
Configuration menu - View commit details
-
Copy full SHA for 2807dca - Browse repository at this point
Copy the full SHA 2807dcaView commit details
Commits on Jun 30, 2024
-
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`
Configuration menu - View commit details
-
Copy full SHA for a643cb0 - Browse repository at this point
Copy the full SHA a643cb0View commit details
Commits on Jul 1, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 833f68f - Browse repository at this point
Copy the full SHA 833f68fView commit details
Commits on Jul 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 25b6bcd - Browse repository at this point
Copy the full SHA 25b6bcdView commit details
Commits on Jul 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ea5fbdb - Browse repository at this point
Copy the full SHA ea5fbdbView commit details
Commits on Jul 11, 2024
-
Fix broken link in README.md regarding Serving with vLLM
updated the link to https://outlines-dev.github.io/outlines/reference/serve/vllm/
Configuration menu - View commit details
-
Copy full SHA for 497ed9f - Browse repository at this point
Copy the full SHA 497ed9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0383ce1 - Browse repository at this point
Copy the full SHA 0383ce1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c5f1d8 - Browse repository at this point
Copy the full SHA 8c5f1d8View commit details -
Update outlines/generate/api.py
Co-authored-by: Patrice Bechard <bechardpatrice@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b54a964 - Browse repository at this point
Copy the full SHA b54a964View commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 59d88dc - Browse repository at this point
Copy the full SHA 59d88dcView commit details
Commits on Jul 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a48f86f - Browse repository at this point
Copy the full SHA a48f86fView commit details
Commits on Jul 14, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 62b7601 - Browse repository at this point
Copy the full SHA 62b7601View commit details
Commits on Jul 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8224855 - Browse repository at this point
Copy the full SHA 8224855View commit details -
Configuration menu - View commit details
-
Copy full SHA for 517ff53 - Browse repository at this point
Copy the full SHA 517ff53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a7f082 - Browse repository at this point
Copy the full SHA 5a7f082View commit details
Commits on Jul 16, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 08a3e54 - Browse repository at this point
Copy the full SHA 08a3e54View commit details -
Configuration menu - View commit details
-
Copy full SHA for e684af2 - Browse repository at this point
Copy the full SHA e684af2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd8c79a - Browse repository at this point
Copy the full SHA cd8c79aView commit details
Commits on Jul 17, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for d64bfc2 - Browse repository at this point
Copy the full SHA d64bfc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ce0df3 - Browse repository at this point
Copy the full SHA 9ce0df3View commit details
Commits on Jul 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1bf23be - Browse repository at this point
Copy the full SHA 1bf23beView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f6a6c29 - Browse repository at this point
Copy the full SHA f6a6c29View commit details
Commits on Jul 19, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for a7e3381 - Browse repository at this point
Copy the full SHA a7e3381View commit details
Commits on Jul 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 47dfa4b - Browse repository at this point
Copy the full SHA 47dfa4bView commit details -
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)) ```
Configuration menu - View commit details
-
Copy full SHA for 42c55bc - Browse repository at this point
Copy the full SHA 42c55bcView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for abe689c - Browse repository at this point
Copy the full SHA abe689cView commit details
Commits on Jul 22, 2024
-
Add links to the two examples (#1062)
Add links to the two examples: - Q&A with Citations - Knowledge Graph Generation
Configuration menu - View commit details
-
Copy full SHA for fcfef33 - Browse repository at this point
Copy the full SHA fcfef33View commit details
Commits on Jul 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d78041e - Browse repository at this point
Copy the full SHA d78041eView commit details
Commits on Jul 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6e026a7 - Browse repository at this point
Copy the full SHA 6e026a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb92745 - Browse repository at this point
Copy the full SHA bb92745View commit details
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 26e2934 - Browse repository at this point
Copy the full SHA 26e2934View commit details
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 951b020 - Browse repository at this point
Copy the full SHA 951b020View commit details
Commits on Aug 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e3247fe - Browse repository at this point
Copy the full SHA e3247feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a2a5d3 - Browse repository at this point
Copy the full SHA 2a2a5d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d1a06d - Browse repository at this point
Copy the full SHA 2d1a06dView commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5e8f770 - Browse repository at this point
Copy the full SHA 5e8f770View commit details
Commits on Aug 13, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for 3072b8f - Browse repository at this point
Copy the full SHA 3072b8fView commit details -
Restructure documentation, use phi-3-mini, include structured generat…
…ion example, add feature matrix to models
Configuration menu - View commit details
-
Copy full SHA for d0be920 - Browse repository at this point
Copy the full SHA d0be920View commit details -
Configuration menu - View commit details
-
Copy full SHA for b10c78f - Browse repository at this point
Copy the full SHA b10c78fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7218cdd - Browse repository at this point
Copy the full SHA 7218cddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c9f5bb - Browse repository at this point
Copy the full SHA 0c9f5bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2dddea - Browse repository at this point
Copy the full SHA a2dddeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6dd805 - Browse repository at this point
Copy the full SHA c6dd805View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5a1788 - Browse repository at this point
Copy the full SHA c5a1788View commit details -
Configuration menu - View commit details
-
Copy full SHA for eca98a8 - Browse repository at this point
Copy the full SHA eca98a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 894f240 - Browse repository at this point
Copy the full SHA 894f240View commit details -
More comprehensive TransformersVision test cases
Multi-image context, using `apply_chat_template`
Configuration menu - View commit details
-
Copy full SHA for 3a98e44 - Browse repository at this point
Copy the full SHA 3a98e44View commit details -
Revert "Adding
apply_chat_template
argument to VisionSequenceGenera……torAdapter" This reverts commit 6200d40.
Configuration menu - View commit details
-
Copy full SHA for a363568 - Browse repository at this point
Copy the full SHA a363568View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2d92b7 - Browse repository at this point
Copy the full SHA c2d92b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90e588c - Browse repository at this point
Copy the full SHA 90e588cView commit details -
Change cookbook examples: Download model weights in the hub cache fol…
…der (#1097) Change cookbook examples: Download model weights in the hub cache folder
Configuration menu - View commit details
-
Copy full SHA for ce49ccd - Browse repository at this point
Copy the full SHA ce49ccdView commit details
Commits on Aug 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8e94488 - Browse repository at this point
Copy the full SHA 8e94488View commit details
Commits on Aug 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e3ecbcc - Browse repository at this point
Copy the full SHA e3ecbccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03b61c5 - Browse repository at this point
Copy the full SHA 03b61c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a70c42 - Browse repository at this point
Copy the full SHA 0a70c42View commit details
Commits on Aug 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 900762b - Browse repository at this point
Copy the full SHA 900762bView commit details
Commits on Aug 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ce029a8 - Browse repository at this point
Copy the full SHA ce029a8View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 067aedb - Browse repository at this point
Copy the full SHA 067aedbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cf63d6 - Browse repository at this point
Copy the full SHA 7cf63d6View commit details
Commits on Aug 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 18eafb0 - Browse repository at this point
Copy the full SHA 18eafb0View commit details
Commits on Aug 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f941fc7 - Browse repository at this point
Copy the full SHA f941fc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fb3559 - Browse repository at this point
Copy the full SHA 6fb3559View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72377db - Browse repository at this point
Copy the full SHA 72377dbView commit details
Commits on Sep 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8730325 - Browse repository at this point
Copy the full SHA 8730325View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3a1adf - Browse repository at this point
Copy the full SHA c3a1adfView commit details
Commits on Sep 10, 2024
-
Add documentation request issue template (#1138)
Didn't see a good issue template to add documentation requests, here's a simple one.
Configuration menu - View commit details
-
Copy full SHA for e28d423 - Browse repository at this point
Copy the full SHA e28d423View commit details -
Configuration menu - View commit details
-
Copy full SHA for d11048b - Browse repository at this point
Copy the full SHA d11048bView commit details
Commits on Sep 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ae1524c - Browse repository at this point
Copy the full SHA ae1524cView commit details
Commits on Sep 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4ee4203 - Browse repository at this point
Copy the full SHA 4ee4203View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ba8a52b - Browse repository at this point
Copy the full SHA ba8a52bView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 2a4d72d - Browse repository at this point
Copy the full SHA 2a4d72dView commit details
Commits on Sep 13, 2024
-
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)
Configuration menu - View commit details
-
Copy full SHA for 0b9a3f1 - Browse repository at this point
Copy the full SHA 0b9a3f1View commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cfde8b7 - Browse repository at this point
Copy the full SHA cfde8b7View commit details
Commits on Sep 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1894fa3 - Browse repository at this point
Copy the full SHA 1894fa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b1aed0 - Browse repository at this point
Copy the full SHA 2b1aed0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5591950 - Browse repository at this point
Copy the full SHA 5591950View commit details -
reflect in docs: models.openai with new interface, also remove refere…
…nces to gpt-3 and gpt-4
Configuration menu - View commit details
-
Copy full SHA for 289ef5d - Browse repository at this point
Copy the full SHA 289ef5dView commit details
Commits on Sep 21, 2024
-
Remove link to Outlines twitter account
The account is going to be deactivated soon.
Configuration menu - View commit details
-
Copy full SHA for e07f550 - Browse repository at this point
Copy the full SHA e07f550View commit details
Commits on Sep 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 77c6d67 - Browse repository at this point
Copy the full SHA 77c6d67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 538e714 - Browse repository at this point
Copy the full SHA 538e714View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6035e86 - Browse repository at this point
Copy the full SHA 6035e86View commit details
Commits on Sep 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 30531e5 - Browse repository at this point
Copy the full SHA 30531e5View commit details
Commits on Oct 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c5be3b8 - Browse repository at this point
Copy the full SHA c5be3b8View commit details
Commits on Oct 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4bf1470 - Browse repository at this point
Copy the full SHA 4bf1470View commit details
Commits on Oct 5, 2024
-
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%
Configuration menu - View commit details
-
Copy full SHA for 80b82f1 - Browse repository at this point
Copy the full SHA 80b82f1View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for faa7c5c - Browse repository at this point
Copy the full SHA faa7c5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0da7039 - Browse repository at this point
Copy the full SHA 0da7039View commit details
Commits on Oct 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ef4e819 - Browse repository at this point
Copy the full SHA ef4e819View commit details -
Configuration menu - View commit details
-
Copy full SHA for 541a8b0 - Browse repository at this point
Copy the full SHA 541a8b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b8728 - Browse repository at this point
Copy the full SHA d1b8728View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e8bd6c - Browse repository at this point
Copy the full SHA 9e8bd6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2fd35c - Browse repository at this point
Copy the full SHA a2fd35cView commit details
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c1fae8a - Browse repository at this point
Copy the full SHA c1fae8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64fb30f - Browse repository at this point
Copy the full SHA 64fb30fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 866b9a3 - Browse repository at this point
Copy the full SHA 866b9a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for eabca69 - Browse repository at this point
Copy the full SHA eabca69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f36b71 - Browse repository at this point
Copy the full SHA 6f36b71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 969887e - Browse repository at this point
Copy the full SHA 969887eView commit details
Commits on Oct 18, 2024
-
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)
Configuration menu - View commit details
-
Copy full SHA for 6cff654 - Browse repository at this point
Copy the full SHA 6cff654View commit details
Commits on Oct 21, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for a2fa1e0 - Browse repository at this point
Copy the full SHA a2fa1e0View commit details
Commits on Oct 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dc31b9b - Browse repository at this point
Copy the full SHA dc31b9bView commit details
Commits on Nov 6, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 5f39ded - Browse repository at this point
Copy the full SHA 5f39dedView commit details
Commits on Nov 8, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 906e84e - Browse repository at this point
Copy the full SHA 906e84eView commit details -
Add earnings reports to cookbook index (#1255)
Forgot to add the earnings report cookbook to the cookbook index (#1235), this fixes it.
Configuration menu - View commit details
-
Copy full SHA for b93f550 - Browse repository at this point
Copy the full SHA b93f550View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b5d26c4 - Browse repository at this point
Copy the full SHA b5d26c4View commit details
Commits on Nov 10, 2024
-
Fix that error NameError: name 'rng' is not defined
Configuration menu - View commit details
-
Copy full SHA for d842522 - Browse repository at this point
Copy the full SHA d842522View commit details
Commits on Nov 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c406da8 - Browse repository at this point
Copy the full SHA c406da8View commit details
Commits on Nov 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2eab80c - Browse repository at this point
Copy the full SHA 2eab80cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f099f96 - Browse repository at this point
Copy the full SHA f099f96View commit details -
`[Outlines model](../models)` does not return the link correctly. Tried switching to `[Outlines model](../models/models.md)`
Configuration menu - View commit details
-
Copy full SHA for b55d314 - Browse repository at this point
Copy the full SHA b55d314View commit details
Commits on Nov 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bf62d11 - Browse repository at this point
Copy the full SHA bf62d11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9baad - Browse repository at this point
Copy the full SHA 7a9baadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63b4feb - Browse repository at this point
Copy the full SHA 63b4febView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cdaeac - Browse repository at this point
Copy the full SHA 7cdaeacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2db34c5 - Browse repository at this point
Copy the full SHA 2db34c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66f6627 - Browse repository at this point
Copy the full SHA 66f6627View commit details -
Configuration menu - View commit details
-
Copy full SHA for 568f252 - Browse repository at this point
Copy the full SHA 568f252View commit details -
Add jax compatible api (#1207)
This PR adds a JAX compatible API, refer issue #1027
Configuration menu - View commit details
-
Copy full SHA for 5608dd8 - Browse repository at this point
Copy the full SHA 5608dd8View commit details -
Add json call with multi-function enums (#1277)
This PR aims at solving #1217
Configuration menu - View commit details
-
Copy full SHA for e9485cf - Browse repository at this point
Copy the full SHA e9485cfView commit details
Commits on Nov 28, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 36f1bf2 - Browse repository at this point
Copy the full SHA 36f1bf2View commit details