• Baber Abbasi's avatar
    Refactor API models (#2008) · 42dc2448
    Baber Abbasi authored
    
    
    * refactor pad_token handling to fn
    
    * fix docs
    
    * add pad_token_handling to vllm
    
    * start on API superclass
    
    * don't detokenize the returned logits
    
    * streamline vllm tokenizer
    
    * add type hint
    
    * pre-commit
    
    * seems to be in working order
    
    * add model to init
    
    * refactor api models
    
    * nit
    
    * cleanup
    
    * add pbar
    
    * fix type hints
    
    * change optional dependencies
    
    * json encode chat template
    
    * add type hints
    
    * deal with different prompt input requiremnts
    
    * nits
    
    * fix
    
    * cache inside async
    
    * fix
    
    * fix
    
    * nits
    
    * nits
    
    * nits
    
    * nit
    
    * fixup
    
    * fixup
    
    * nit
    
    * add dummy retry
    
    * add dummy retry
    
    * handle imports; skip failing test
    
    * add type hint
    
    * add tests
    
    * add dependency to tests
    
    * add package names to exception
    
    * nit
    
    * docs; type hints
    
    * handle api key
    
    * nit
    
    * tokenizer bug
    
    * fix tokenizer
    
    * nit
    
    * nit
    
    * add better error messages
    
    * nit
    
    * remove decorator
    
    * CI: install api dep
    
    * revert evaluator.py
    
    * consolidate
    
    * consolidate
    
    * nits
    
    * nit
    
    * fix typealias
    
    * nit
    
    * nit
    
    * nit
    
    * Update lm_eval/models/api_models.py
    
    typo
    Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
    
    * Update lm_eval/models/openai_completions.py
    Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
    
    * Update lm_eval/models/anthropic_llms.py
    Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
    
    * Update lm_eval/models/api_models.py
    Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
    
    * fix typo
    
    * add news section
    
    * add info for API
    
    * pre-commit
    
    * typo
    
    * fix bug: unpack logliklehood requests
    
    * fix bug: shared gen_kwargs mutated
    
    * nit: handle copy properly
    
    * Update README.md
    
    * Update README.md
    
    * Update README.md
    
    * Update api_models.py
    
    * Update README.md
    
    ---------
    Co-authored-by: default avatarHailey Schoelkopf <65563625+haileyschoelkopf@users.noreply.github.com>
    42dc2448
api_models.py 23.8 KB