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 2 commits
  4. 24 Jan, 2023 1 commit
  5. 23 Jan, 2023 3 commits
  6. 20 Jan, 2023 2 commits
  7. 17 Jan, 2023 2 commits
  8. 05 Jan, 2023 1 commit
  9. 03 Jan, 2023 2 commits
  10. 30 Dec, 2022 2 commits
    • 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
    • Nick Hill's avatar
      fix(server): Check for device type correctly when determining initial padding (#16) · 686cc667
      Nick Hill authored
      AFAIK there is no torch device type called "gpu".
      686cc667
  11. 16 Dec, 2022 2 commits
  12. 15 Dec, 2022 1 commit
  13. 12 Dec, 2022 1 commit
  14. 08 Dec, 2022 2 commits
  15. 05 Dec, 2022 1 commit
  16. 01 Dec, 2022 1 commit
  17. 14 Nov, 2022 4 commits
  18. 09 Nov, 2022 1 commit
  19. 08 Nov, 2022 1 commit
  20. 07 Nov, 2022 1 commit
  21. 04 Nov, 2022 3 commits
  22. 03 Nov, 2022 1 commit
  23. 02 Nov, 2022 1 commit
  24. 28 Oct, 2022 1 commit
  25. 27 Oct, 2022 1 commit
  26. 22 Oct, 2022 1 commit