1. 22 Nov, 2023 1 commit
    • Chen Xin's avatar
      Support loading hf model directly (#685) · 6b00f623
      Chen Xin authored
      * turbomind support export model params
      
      * fix overflow
      
      * support turbomind.from_pretrained
      
      * fix tp
      
      * support AutoModel
      
      * support load kv qparams
      
      * update auto_awq
      
      * udpate docstring
      
      * export lmdeploy version
      
      * update doc
      
      * remove download_hf_repo
      
      * LmdeployForCausalLM -> LmdeployForCausalLM
      
      * refactor turbomind.py
      
      * update comment
      
      * add bfloat16 convert back
      
      * support gradio run_locl load hf
      
      * support resuful api server load hf
      
      * add docs
      
      * support loading previous quantized model
      
      * adapt pr 690
      
      * udpate docs
      
      * not export turbomind config when quantize a model
      
      * check model_name when can not get it from config.json
      
      * update readme
      
      * remove model_name in auto_awq
      
      * update
      
      * update
      
      * udpate
      
      * fix build
      
      * absolute import
      6b00f623
  2. 20 Nov, 2023 1 commit
  3. 13 Nov, 2023 1 commit
  4. 10 Nov, 2023 1 commit
  5. 03 Nov, 2023 1 commit
  6. 01 Nov, 2023 1 commit
    • AllentDan's avatar
      Improve api_server and webui usage (#544) · 373bd013
      AllentDan authored
      * make IPv6 compatible, safe run for coroutine interrupting
      
      * instance_id -> session_id and fix api_client.py
      
      * update doc
      
      * remove useless faq
      
      * safe ip mapping
      
      * update app.py
      
      * WIP completion
      
      * completion
      
      * update doc
      
      * disable interactive mode for /v1/chat/completions
      
      * docstring
      
      * docstring
      
      * refactor gradio
      
      * update gradio
      
      * udpate
      
      * update doc
      
      * rename
      
      * session_id default -1
      
      * missed two files
      
      * add a APIClient
      
      * add chat func for APIClient
      
      * refine
      
      * add concurrent function
      
      * sequence_start, sequence_end --> interactive_mode
      
      * update doc
      
      * comments
      
      * doc
      
      * better text completion
      
      * remove /v1/embeddings
      
      * comments
      
      * deprecate generate and use /v1/interactive/completions
      
      * /v1/interactive/completion -> /v1/chat/interactive
      
      * embeddings
      
      * rename
      
      * remove wrong arg description
      
      * docstring
      
      * fix
      
      * update cli
      
      * update doc
      
      * strict session_len limit condition
      
      * pass model args to api_server
      373bd013
  7. 25 Oct, 2023 1 commit
    • RunningLeon's avatar
      Add more user-friendly CLI (#541) · 169d5169
      RunningLeon authored
      * add
      
      * import fire in main
      
      * wrap to speed up fire cli
      
      * update
      
      * update docs
      
      * update docs
      
      * fix
      
      * resolve commennts
      
      * resolve confict and add test for cli
      169d5169
  8. 19 Oct, 2023 1 commit
  9. 12 Oct, 2023 2 commits
  10. 25 Sep, 2023 1 commit
  11. 20 Sep, 2023 1 commit
    • Lyu Han's avatar
      Support InternLM 20B (#440) · df7955de
      Lyu Han authored
      
      
      * better profiler
      
      * wait for releasing mem
      
      * remove fire
      
      * remove support for multiple model benchmark
      
      * comments
      
      * support actual seqlen
      
      * change chat template
      
      * update
      
      * fix ut
      
      * int->size_t
      
      * output more details
      
      * correct tp
      
      * rollback
      
      * update
      
      * update readme
      
      * add 'internlm-chat' as the default tag for internlm chat models
      
      * rollback tokenizer
      
      ---------
      Co-authored-by: default avatarAllentDan <AllentDan@yeah.net>
      Co-authored-by: default avatargrimoire <yaoqian@pjlab.org.cn>
      df7955de
  12. 11 Sep, 2023 1 commit
    • Lyu Han's avatar
      Support codellama (#359) · 65c662f9
      Lyu Han authored
      * tmp
      
      * add demo for codellama inference
      
      * update
      
      * update
      
      * update
      
      * update codellama.md
      
      * export rope_theta
      
      * update
      
      * update doc
      
      * fix client.py
      
      * define SamplingParam
      
      * rollback 'end'
      
      * rotary_emb_base to rotary_embedding_base
      
      * change to baichuan2-7b
      65c662f9
  13. 08 Sep, 2023 1 commit
  14. 06 Sep, 2023 1 commit
  15. 05 Sep, 2023 1 commit
  16. 29 Aug, 2023 2 commits
  17. 24 Aug, 2023 2 commits
  18. 21 Aug, 2023 2 commits
  19. 18 Aug, 2023 1 commit
  20. 17 Aug, 2023 2 commits
    • tpoisonooo's avatar
      docs(quantzation): update description (#253) · 903707b5
      tpoisonooo authored
      * Update quantization.md
      
      * docs(quantization): update description
      
      * docs(README): rename quantization files
      903707b5
    • Chen Xin's avatar
      Support windows platform (#209) · 4c9959f6
      Chen Xin authored
      * __PRETTY_FUNCTION__
      
      * CASE_K
      
      * uint
      
      * remove not
      
      * HALF_FLT_MAX
      
      * struct init
      
      * port utils
      
      * better build pthread-win32
      
      * port kernels
      
      * port utils/gemm_test
      
      * hide windows header
      
      * port models
      
      * port examples && triton_backend && unittests
      
      * update build readme
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix lint
      
      * fix build
      
      * fix build
      
      * cmake version
      
      * fix typos
      
      * update ci
      
      * port kernels/gemm_s_f16
      
      * update ci
      
      * fix ci
      
      * use cudaStreamSynchronize instead of volatile check
      
      * remove gettimeofday
      
      * remove pthread-win32
      
      * remove dirent.h
      
      * update pre-commit
      
      * update
      
      * remove todo
      
      * fix include
      
      * fix build
      
      * fix build
      
      * fix build ci
      
      * fix github action trigger
      
      * update README
      
      * fix linux-build ci
      
      * remove windows folder
      
      * fix lint
      
      * update readme
      4c9959f6
  21. 14 Aug, 2023 3 commits
  22. 11 Aug, 2023 1 commit
    • pppppM's avatar
      [Feature] Support AWQ (#108) · d3dbe179
      pppppM authored
      * support kv cache offload
      
      * add dataloader docstring
      
      * complete gitignore
      
      * refactor collect mod fn
      
      * add calibration
      
      * fix lint
      
      * add observers and quantizers
      
      * fix lints
      
      * add global available mixin
      
      * fix lints
      
      * split batch inference
      
      * support smoothquant and awq
      
      * update export kv scales
      
      * fix lints
      
      * fix some bugs
      
      * update weight only usage
      
      * update usage
      
      * auto mapping and support smooth internlm
      
      * trust remote code
      
      * fix num head key error
      
      * fix bias error
      
      * align shape and pack order with llm-awq
      
      * modified according to LZHgrla's comments.
      
      * update gitignore
      
      * fix kv qparams export error
      
      * update usage
      
      * decouple calibrate and awq
      
      * update docstrings
      
      * update api name
      
      * update readme
      
      * update readme
      
      * update readme
      
      * update readme
      
      * update kv_qparams and readme
      
      * fix typos
      d3dbe179
  23. 07 Aug, 2023 1 commit
    • WRH's avatar
      [Refactor] Support multi-session chat (#178) · 4bd0b487
      WRH authored
      * add some dist utils
      
      * add model utils
      
      * add termio and basicstreamer
      
      * typo
      
      * fix world size
      
      * refactor chat and tested llama1
      
      * add internlm adapter and support stoping criteria
      
      * concat with id for internlm
      
      * update docstring
      
      * update and support llama2
      
      * typo
      
      * move docs to docs
      
      * update docstring of session manager
      
      * update docstring
      
      * update docs
      
      * fix accel none in model
      
      * fix and add test for tensor broadcast
      
      * fix session using typing to check type
      
      * add docstrings and comprehensive condition test
      
      * unit test for dist
      
      * fix session
      
      * split unittests of utils
      
      * typo
      
      * update control flow of accel
      
      * move test model
      
      * remove main in unittest
      
      * remove some log
      
      * remove some comments
      4bd0b487
  24. 04 Aug, 2023 1 commit
  25. 01 Aug, 2023 1 commit
  26. 31 Jul, 2023 1 commit
  27. 28 Jul, 2023 1 commit
  28. 27 Jul, 2023 1 commit
  29. 26 Jul, 2023 2 commits
  30. 24 Jul, 2023 1 commit
  31. 23 Jul, 2023 1 commit
    • lvhan028's avatar
      Refactor the chat template of supported models using factory pattern (#144) · 7b470f07
      lvhan028 authored
      * refactor model.py and support baichuan-7b
      
      * remove model_name
      
      * remove hard session_len
      
      * export tokenizer.py to target dir
      
      * remove model_name from client
      
      * remove model_name
      
      * update
      
      * correct throughput equation
      
      * fix session.response
      
      * update serving.md
      
      * update readme
      
      * update according to review comments
      
      * update
      
      * update
      
      * update
      
      * update
      7b470f07
  32. 21 Jul, 2023 1 commit