1. 31 Jan, 2023 1 commit
    • OlivierDehaene's avatar
      feat: Add token streaming using ServerSideEvents support (#36) · 7fbfbb0d
      OlivierDehaene authored
      Add token streaming using ServerSideEvents (SSE).
      
      The signature of the SSE events is: 
      
      ```rust
      struct Details {
          finish_reason: String,
          generated_tokens: u32,
          seed: Option<u64>,
      }
      
      struct StreamResponse {
          token: Token,
          generated_text: Option<String>,
          details: Option<Details>,
      }
      
      struct ErrorResponse {
          error: String,
      }
      ```
      7fbfbb0d
  2. 30 Jan, 2023 1 commit
  3. 26 Jan, 2023 1 commit
  4. 23 Jan, 2023 2 commits
  5. 20 Jan, 2023 1 commit
  6. 17 Jan, 2023 2 commits
  7. 03 Jan, 2023 1 commit
  8. 30 Dec, 2022 1 commit
    • Nick Hill's avatar
      fix(router): Include special tokens when tokenizing (#14) · 3efa5bbb
      Nick Hill authored
      There's currently a discrepancy in the tokenization between the router
      and python server code. The latter includes special tokens but former
      does not.
      
      This results in a token count mismatch for seq2seq models such as mt0
      where the tokenizer emits an EOS token at the end.
      
      This in turn results in some unexpected/incorrect output, in particular
      when batch concatenation is involved, because the python code uses the
      input length passed from the router for each row.
      
      As far as I can tell, it is better to include this token in the encoder
      `input_ids`, so I guess it's best to just adjust on the router side.
      3efa5bbb
  9. 15 Dec, 2022 1 commit
  10. 12 Dec, 2022 1 commit
  11. 08 Dec, 2022 1 commit
  12. 05 Dec, 2022 1 commit
  13. 14 Nov, 2022 2 commits
  14. 04 Nov, 2022 2 commits
  15. 02 Nov, 2022 1 commit
  16. 28 Oct, 2022 1 commit
  17. 27 Oct, 2022 1 commit
  18. 22 Oct, 2022 1 commit
  19. 21 Oct, 2022 2 commits
  20. 20 Oct, 2022 1 commit
  21. 17 Oct, 2022 2 commits
  22. 15 Oct, 2022 1 commit
  23. 14 Oct, 2022 1 commit
  24. 11 Oct, 2022 4 commits
  25. 08 Oct, 2022 1 commit