1. 16 Feb, 2024 1 commit
  2. 15 Feb, 2024 1 commit
    • drbh's avatar
      Outlines guided generation (#1539) · cef0553d
      drbh authored
      This WIP PR starts to add grammar support via outlines, currently this
      PR supports very simple regex grammars and does not optimize for
      precompiling or caching grammar fsm's.
      
      todo:
      - [X] add simple outlines guidance to `NextTokenChooser`
      - [X] update protos for grammar
      - [X] update generation params API
      - [X] constrain simple grammar
      - [ ] support parsing more complex grammar into fsm
      - [ ] support all outline support grammar types
      - [ ] explore optimizations to avoid recompiling grammars
      
      guided request
      ```bash
      curl -s 'http://localhost:3000/generate' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "inputs": "make an email for david: \n",
          "parameters": {
              "max_new_tokens": 6,
              "grammar": "[\\w-]+@([\\w-]+\\.)+[\\w-]+"
          }
      }' | jq
      ```
      response
      ```json
      {
        "generated_text": "david@example.com"
      }
      ```
      
      unguided request
      ```bash
      curl -s 'http://localhost:3000/generate' \
      --header 'Content-Type: application/json' \
      --data '{
          "inputs": "make an email for david: \n",
          "parameters": {
              "max_new_tokens": 6
          }
      }' | jq
      ```
      response
      ```json
      {
        "generated_text": "    email = 'david"
      }
      ```
      cef0553d
  3. 09 Feb, 2024 1 commit
  4. 08 Feb, 2024 1 commit
  5. 22 Jan, 2024 1 commit
  6. 18 Dec, 2023 1 commit
  7. 14 Dec, 2023 1 commit
  8. 11 Dec, 2023 1 commit
  9. 23 Oct, 2023 1 commit
  10. 20 Oct, 2023 1 commit
  11. 28 Aug, 2023 1 commit
    • Nicolas Patry's avatar
      Rebased #617 (#868) · 211b54ac
      Nicolas Patry authored
      # What does this PR do?
      
      <!--
      Congratulations! You've made it this far! You're not quite done yet
      though.
      
      Once merged, your PR is going to appear in the release notes with the
      title you set, so make sure it's a great title that fully reflects the
      extent of your awesome contribution.
      
      Then, please replace this with a description of the change and which
      issue is fixed (if applicable). Please also include relevant motivation
      and context. List any dependencies (if any) that are required for this
      change.
      
      Once you're done, someone will review your PR shortly (see the section
      "Who can review?" below to tag some potential reviewers). They may
      suggest changes to make the code even better. If no one reviewed your PR
      after a week has passed, don't hesitate to post a new comment
      @-mentioning the same persons---sometimes notifications get lost.
      -->
      
      <!-- Remove if not applicable -->
      
      Fixes # (issue)
      
      
      ## Before submitting
      - [ ] This PR fixes a typo or improves the docs...
      211b54ac
  12. 24 Jul, 2023 1 commit
  13. 19 Jul, 2023 1 commit
  14. 13 Jul, 2023 1 commit
  15. 30 Jun, 2023 1 commit
  16. 24 May, 2023 1 commit
  17. 10 May, 2023 1 commit
  18. 27 Apr, 2023 1 commit
  19. 26 Apr, 2023 1 commit
  20. 24 Apr, 2023 1 commit
  21. 21 Apr, 2023 1 commit
  22. 09 Apr, 2023 1 commit
  23. 28 Mar, 2023 1 commit
  24. 13 Feb, 2023 1 commit
  25. 03 Feb, 2023 1 commit
  26. 31 Jan, 2023 3 commits
  27. 15 Dec, 2022 1 commit
  28. 12 Dec, 2022 1 commit
  29. 27 Oct, 2022 1 commit
  30. 22 Oct, 2022 1 commit
  31. 20 Oct, 2022 1 commit
  32. 17 Oct, 2022 1 commit
  33. 11 Oct, 2022 1 commit
  34. 08 Oct, 2022 1 commit