From e349684183dda65c6169cfcf3be3d6b259bdf4cb Mon Sep 17 00:00:00 2001 From: Ruihang Lai Date: Thu, 21 Nov 2024 11:22:07 -0500 Subject: [PATCH] Update copyright to 2023-2024 (#3041) This PR updates the copyright notice year from 2023 to 2023-2024. --- README.md | 4 ++-- cpp/base.h | 2 +- cpp/json_ffi/image_utils.h | 2 +- cpp/json_ffi/json_ffi_engine.h | 2 +- cpp/json_ffi/openai_api_protocol.cc | 2 +- cpp/json_ffi/openai_api_protocol.h | 2 +- cpp/serve/config.cc | 2 +- cpp/serve/config.h | 2 +- cpp/serve/data.cc | 2 +- cpp/serve/data.h | 2 +- cpp/serve/engine.cc | 2 +- cpp/serve/engine.h | 2 +- cpp/serve/engine_actions/action.cc | 2 +- cpp/serve/engine_actions/action.h | 2 +- cpp/serve/engine_actions/action_commons.cc | 2 +- cpp/serve/engine_actions/action_commons.h | 2 +- cpp/serve/engine_actions/auto_spec_decode.cc | 2 +- cpp/serve/engine_actions/batch_decode.cc | 2 +- cpp/serve/engine_actions/batch_draft.cc | 2 +- cpp/serve/engine_actions/batch_jumpforward.cc | 2 +- cpp/serve/engine_actions/batch_verify.cc | 2 +- cpp/serve/engine_actions/eagle_batch_draft.cc | 2 +- cpp/serve/engine_actions/eagle_batch_verify.cc | 2 +- cpp/serve/engine_actions/eagle_new_request_prefill.cc | 2 +- cpp/serve/engine_actions/new_request_prefill.cc | 2 +- cpp/serve/engine_state.cc | 2 +- cpp/serve/engine_state.h | 2 +- cpp/serve/event_trace_recorder.cc | 2 +- cpp/serve/event_trace_recorder.h | 2 +- cpp/serve/function_table.cc | 2 +- cpp/serve/function_table.h | 2 +- cpp/serve/logit_processor.cc | 2 +- cpp/serve/logit_processor.h | 2 +- cpp/serve/metrics.cc | 2 +- cpp/serve/metrics.h | 2 +- cpp/serve/model.cc | 2 +- cpp/serve/model.h | 2 +- cpp/serve/prefix_cache.cc | 2 +- cpp/serve/prefix_cache.h | 2 +- cpp/serve/radix_tree.cc | 2 +- cpp/serve/radix_tree.h | 2 +- cpp/serve/request.cc | 2 +- cpp/serve/request.h | 2 +- cpp/serve/request_state.cc | 2 +- cpp/serve/request_state.h | 2 +- cpp/serve/sampler/cpu_sampler.cc | 2 +- cpp/serve/sampler/gpu_sampler.cc | 2 +- cpp/serve/sampler/sampler.h | 2 +- cpp/serve/threaded_engine.cc | 2 +- cpp/serve/threaded_engine.h | 2 +- cpp/support/debug_utils.h | 2 +- cpp/support/dynamic_bitset.h | 2 +- cpp/support/encoding.cc | 2 +- cpp/support/encoding.h | 2 +- cpp/support/load_bytes_from_file.h | 2 +- cpp/support/progress_bar.h | 2 +- cpp/support/random.h | 2 +- cpp/support/result.h | 2 +- cpp/support/utils.h | 2 +- cpp/tokenizers/streamer.cc | 2 +- cpp/tokenizers/streamer.h | 2 +- cpp/tokenizers/tokenizers.cc | 2 +- cpp/tokenizers/tokenizers.h | 2 +- docs/conf.py | 4 ++-- python/mlc_llm/model/baichuan/baichuan_model.py | 1 - python/mlc_llm/model/chatglm3/chatglm3_model.py | 1 - python/mlc_llm/model/cohere/cohere_model.py | 1 - python/mlc_llm/model/deepseek/deepseek_model.py | 1 - python/mlc_llm/model/gpt2/gpt2_model.py | 1 - python/mlc_llm/model/gpt_bigcode/gpt_bigcode_model.py | 1 - python/mlc_llm/model/gpt_neox/gpt_neox_model.py | 1 - python/mlc_llm/model/internlm/internlm_model.py | 1 - python/mlc_llm/model/internlm2/internlm2_model.py | 1 - python/mlc_llm/model/llama/llama_model.py | 1 - python/mlc_llm/model/minicpm/minicpm_model.py | 1 - python/mlc_llm/model/orion/orion_model.py | 1 - python/mlc_llm/model/phi/phi_model.py | 1 - python/mlc_llm/model/phi3/phi3_model.py | 1 - python/mlc_llm/model/phi3v/phi3v_image.py | 1 - python/mlc_llm/model/phi3v/phi3v_model.py | 1 - python/mlc_llm/model/qwen/qwen_model.py | 1 - python/mlc_llm/model/stable_lm/stablelm_model.py | 1 - python/mlc_llm/model/starcoder2/starcoder2_model.py | 1 - 83 files changed, 66 insertions(+), 85 deletions(-) diff --git a/README.md b/README.md index f53562d131..7c945710aa 100644 --- a/README.md +++ b/README.md @@ -75,10 +75,10 @@ Please consider citing our project if you find it useful: ```bibtex @software{mlc-llm, - author = {MLC team}, + author = {{MLC team}}, title = {{MLC-LLM}}, url = {https://github.com/mlc-ai/mlc-llm}, - year = {2023} + year = {2023-2024} } ``` diff --git a/cpp/base.h b/cpp/base.h index 0cc6777dd4..28610d9ed6 100644 --- a/cpp/base.h +++ b/cpp/base.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file base.h */ diff --git a/cpp/json_ffi/image_utils.h b/cpp/json_ffi/image_utils.h index 1a89b7bc13..5e707e6718 100644 --- a/cpp/json_ffi/image_utils.h +++ b/cpp/json_ffi/image_utils.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file json_ffi/image_utils.h * \brief The header of Image utils for JSON FFI Engine in MLC LLM. */ diff --git a/cpp/json_ffi/json_ffi_engine.h b/cpp/json_ffi/json_ffi_engine.h index 616c3c12ac..839a7f1ad8 100644 --- a/cpp/json_ffi/json_ffi_engine.h +++ b/cpp/json_ffi/json_ffi_engine.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file json_ffi/json_ffi_engine.h * \brief The header of JSON FFI engine in MLC LLM. */ diff --git a/cpp/json_ffi/openai_api_protocol.cc b/cpp/json_ffi/openai_api_protocol.cc index 3e11af4d11..39541cdf9d 100644 --- a/cpp/json_ffi/openai_api_protocol.cc +++ b/cpp/json_ffi/openai_api_protocol.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file json_ffi/openai_api_protocol.cc * \brief The implementation of OpenAI API Protocol in MLC LLM. */ diff --git a/cpp/json_ffi/openai_api_protocol.h b/cpp/json_ffi/openai_api_protocol.h index 61de01da1d..312f2bade8 100644 --- a/cpp/json_ffi/openai_api_protocol.h +++ b/cpp/json_ffi/openai_api_protocol.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file json_ffi/openai_api_protocol.h * \brief The header of OpenAI API Protocol in MLC LLM. */ diff --git a/cpp/serve/config.cc b/cpp/serve/config.cc index 9310b79028..d7065a3c4a 100644 --- a/cpp/serve/config.cc +++ b/cpp/serve/config.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/config.cc */ #include "config.h" diff --git a/cpp/serve/config.h b/cpp/serve/config.h index 9feef9771d..6c922c14f3 100644 --- a/cpp/serve/config.h +++ b/cpp/serve/config.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/config.h */ #ifndef MLC_LLM_SERVE_CONFIG_H_ diff --git a/cpp/serve/data.cc b/cpp/serve/data.cc index 86f989d591..77a0971de5 100644 --- a/cpp/serve/data.cc +++ b/cpp/serve/data.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/data.cc */ #include "data.h" diff --git a/cpp/serve/data.h b/cpp/serve/data.h index 1ce70cac0a..022cd913cd 100644 --- a/cpp/serve/data.h +++ b/cpp/serve/data.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/data.h */ #ifndef MLC_LLM_SERVE_DATA_H_ diff --git a/cpp/serve/engine.cc b/cpp/serve/engine.cc index 728d76b78d..26a3dea3af 100644 --- a/cpp/serve/engine.cc +++ b/cpp/serve/engine.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine.cc * \brief The implementation for runtime module of serving engine module in MLC LLM. */ diff --git a/cpp/serve/engine.h b/cpp/serve/engine.h index b275e371cf..c863ae4e5f 100644 --- a/cpp/serve/engine.h +++ b/cpp/serve/engine.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine.h * \brief The header of serving engine in MLC LLM. */ diff --git a/cpp/serve/engine_actions/action.cc b/cpp/serve/engine_actions/action.cc index 8a0580eb86..05839fc8a1 100644 --- a/cpp/serve/engine_actions/action.cc +++ b/cpp/serve/engine_actions/action.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/action.cc */ diff --git a/cpp/serve/engine_actions/action.h b/cpp/serve/engine_actions/action.h index 462da68ee3..d8edf4b97b 100644 --- a/cpp/serve/engine_actions/action.h +++ b/cpp/serve/engine_actions/action.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/action.h * \brief The abstraction of actions (e.g., prefill/decode) that an * Engine can take at each time step. diff --git a/cpp/serve/engine_actions/action_commons.cc b/cpp/serve/engine_actions/action_commons.cc index 0e8c3eab55..3394868d16 100644 --- a/cpp/serve/engine_actions/action_commons.cc +++ b/cpp/serve/engine_actions/action_commons.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/action_commons.cc */ diff --git a/cpp/serve/engine_actions/action_commons.h b/cpp/serve/engine_actions/action_commons.h index e4c30dd8eb..39f3940324 100644 --- a/cpp/serve/engine_actions/action_commons.h +++ b/cpp/serve/engine_actions/action_commons.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/action_commons.h * \brief Common functions that may be used in multiple EngineActions. */ diff --git a/cpp/serve/engine_actions/auto_spec_decode.cc b/cpp/serve/engine_actions/auto_spec_decode.cc index 56c8904ced..b0829058aa 100644 --- a/cpp/serve/engine_actions/auto_spec_decode.cc +++ b/cpp/serve/engine_actions/auto_spec_decode.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/auto_spec_decode.cc */ diff --git a/cpp/serve/engine_actions/batch_decode.cc b/cpp/serve/engine_actions/batch_decode.cc index e455bd5e4b..d0b3d182de 100644 --- a/cpp/serve/engine_actions/batch_decode.cc +++ b/cpp/serve/engine_actions/batch_decode.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/batch_decode.cc */ diff --git a/cpp/serve/engine_actions/batch_draft.cc b/cpp/serve/engine_actions/batch_draft.cc index 545ed825e9..ec8872f4ad 100644 --- a/cpp/serve/engine_actions/batch_draft.cc +++ b/cpp/serve/engine_actions/batch_draft.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/batch_draft.cc */ diff --git a/cpp/serve/engine_actions/batch_jumpforward.cc b/cpp/serve/engine_actions/batch_jumpforward.cc index 894adb6bc4..5bd603f20e 100644 --- a/cpp/serve/engine_actions/batch_jumpforward.cc +++ b/cpp/serve/engine_actions/batch_jumpforward.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/batch_verify.cc */ diff --git a/cpp/serve/engine_actions/batch_verify.cc b/cpp/serve/engine_actions/batch_verify.cc index 56054e9f68..c555a9a4c6 100644 --- a/cpp/serve/engine_actions/batch_verify.cc +++ b/cpp/serve/engine_actions/batch_verify.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/batch_verify.cc */ diff --git a/cpp/serve/engine_actions/eagle_batch_draft.cc b/cpp/serve/engine_actions/eagle_batch_draft.cc index c21a33905e..c24403c6d8 100644 --- a/cpp/serve/engine_actions/eagle_batch_draft.cc +++ b/cpp/serve/engine_actions/eagle_batch_draft.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/eagle_batch_draft.cc */ diff --git a/cpp/serve/engine_actions/eagle_batch_verify.cc b/cpp/serve/engine_actions/eagle_batch_verify.cc index 977e24716a..8849940e98 100644 --- a/cpp/serve/engine_actions/eagle_batch_verify.cc +++ b/cpp/serve/engine_actions/eagle_batch_verify.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/eagle_batch_verify.cc */ diff --git a/cpp/serve/engine_actions/eagle_new_request_prefill.cc b/cpp/serve/engine_actions/eagle_new_request_prefill.cc index 690f308973..1cc53c9f5f 100644 --- a/cpp/serve/engine_actions/eagle_new_request_prefill.cc +++ b/cpp/serve/engine_actions/eagle_new_request_prefill.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/eagle_new_request_prefill.cc */ diff --git a/cpp/serve/engine_actions/new_request_prefill.cc b/cpp/serve/engine_actions/new_request_prefill.cc index cdace1beda..bcfef6a822 100644 --- a/cpp/serve/engine_actions/new_request_prefill.cc +++ b/cpp/serve/engine_actions/new_request_prefill.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_actions/new_request_prefill.cc */ diff --git a/cpp/serve/engine_state.cc b/cpp/serve/engine_state.cc index a5f7d118a1..065f962c06 100644 --- a/cpp/serve/engine_state.cc +++ b/cpp/serve/engine_state.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_state.cc */ #include "engine_state.h" diff --git a/cpp/serve/engine_state.h b/cpp/serve/engine_state.h index 35a8f7aafe..a93ca86c4f 100644 --- a/cpp/serve/engine_state.h +++ b/cpp/serve/engine_state.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/engine_state.h */ #ifndef MLC_LLM_SERVE_ENGINE_STATE_H_ diff --git a/cpp/serve/event_trace_recorder.cc b/cpp/serve/event_trace_recorder.cc index e0311716fd..a1ccc65af4 100644 --- a/cpp/serve/event_trace_recorder.cc +++ b/cpp/serve/event_trace_recorder.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/event_trace_recorder.cc */ #include "event_trace_recorder.h" diff --git a/cpp/serve/event_trace_recorder.h b/cpp/serve/event_trace_recorder.h index 76e87ca710..f898a73fdc 100644 --- a/cpp/serve/event_trace_recorder.h +++ b/cpp/serve/event_trace_recorder.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/event_trace_recorder.h * \brief The event trace recorder for requests in MLC LLM. */ diff --git a/cpp/serve/function_table.cc b/cpp/serve/function_table.cc index de595f0b9c..790d80047e 100644 --- a/cpp/serve/function_table.cc +++ b/cpp/serve/function_table.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/function_table.cc * \brief The implementation of function table in serving for distributed inference. */ diff --git a/cpp/serve/function_table.h b/cpp/serve/function_table.h index 321d0088af..f2a513ec87 100644 --- a/cpp/serve/function_table.h +++ b/cpp/serve/function_table.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/function_table.h * \brief The header for function table in serving for distributed inference. */ diff --git a/cpp/serve/logit_processor.cc b/cpp/serve/logit_processor.cc index 7355fa1e5b..3d34682fd9 100644 --- a/cpp/serve/logit_processor.cc +++ b/cpp/serve/logit_processor.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/logit_processor.cc * \brief The implementation of logit processor. */ diff --git a/cpp/serve/logit_processor.h b/cpp/serve/logit_processor.h index 0e1182703e..383c13af31 100644 --- a/cpp/serve/logit_processor.h +++ b/cpp/serve/logit_processor.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/logit_processor.h * \brief The header for logit processor. */ diff --git a/cpp/serve/metrics.cc b/cpp/serve/metrics.cc index c95b3ed70f..87004386c7 100644 --- a/cpp/serve/metrics.cc +++ b/cpp/serve/metrics.cc @@ -1,6 +1,6 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/metrics.cc */ #include "metrics.h" diff --git a/cpp/serve/metrics.h b/cpp/serve/metrics.h index c6906db2f3..f84aa21f91 100644 --- a/cpp/serve/metrics.h +++ b/cpp/serve/metrics.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/metric.h * \brief Metrics of serving engine/requests. */ diff --git a/cpp/serve/model.cc b/cpp/serve/model.cc index 1aa4efcf2d..550b7cb5b1 100644 --- a/cpp/serve/model.cc +++ b/cpp/serve/model.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/model.cc * \brief The implementation of runtime module of LLM functions (prefill/decode/etc.) */ diff --git a/cpp/serve/model.h b/cpp/serve/model.h index b47194f3e2..541956804e 100644 --- a/cpp/serve/model.h +++ b/cpp/serve/model.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/model.h * \brief The header for runtime module of LLM functions (prefill/decode/etc.) */ diff --git a/cpp/serve/prefix_cache.cc b/cpp/serve/prefix_cache.cc index cf2ec26244..94326c534a 100644 --- a/cpp/serve/prefix_cache.cc +++ b/cpp/serve/prefix_cache.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/prefix_cache.cc */ #include "prefix_cache.h" diff --git a/cpp/serve/prefix_cache.h b/cpp/serve/prefix_cache.h index 4ad6af507f..c53b51191f 100644 --- a/cpp/serve/prefix_cache.h +++ b/cpp/serve/prefix_cache.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/prefix_cache.h */ #ifndef MLC_LLM_SERVE_PREFIX_CACHE_H_ diff --git a/cpp/serve/radix_tree.cc b/cpp/serve/radix_tree.cc index 1aaedb7e07..79a0cb89ec 100644 --- a/cpp/serve/radix_tree.cc +++ b/cpp/serve/radix_tree.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/radix_tree.cc */ #include "radix_tree.h" diff --git a/cpp/serve/radix_tree.h b/cpp/serve/radix_tree.h index c634ce7021..f5491de089 100644 --- a/cpp/serve/radix_tree.h +++ b/cpp/serve/radix_tree.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/radix_tree.h */ #ifndef MLC_LLM_SERVE_RADIX_TREE_H_ diff --git a/cpp/serve/request.cc b/cpp/serve/request.cc index e80c787c1a..da4990dacb 100644 --- a/cpp/serve/request.cc +++ b/cpp/serve/request.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/request.cc */ diff --git a/cpp/serve/request.h b/cpp/serve/request.h index ee2011c43c..2e2b6e2fac 100644 --- a/cpp/serve/request.h +++ b/cpp/serve/request.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/request.h * \brief Implementation of llm chat. */ diff --git a/cpp/serve/request_state.cc b/cpp/serve/request_state.cc index d582803c16..5fa289a10e 100644 --- a/cpp/serve/request_state.cc +++ b/cpp/serve/request_state.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/request_state.cc */ diff --git a/cpp/serve/request_state.h b/cpp/serve/request_state.h index e6e3821b2c..b710dd554d 100644 --- a/cpp/serve/request_state.h +++ b/cpp/serve/request_state.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/request_state.h * \brief The data structure maintaining the generation states of user requests. */ diff --git a/cpp/serve/sampler/cpu_sampler.cc b/cpp/serve/sampler/cpu_sampler.cc index 065714ddaf..995de6b330 100644 --- a/cpp/serve/sampler/cpu_sampler.cc +++ b/cpp/serve/sampler/cpu_sampler.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/sampler/cpu_sampler.cc * \brief The implementation for CPU sampler functions. */ diff --git a/cpp/serve/sampler/gpu_sampler.cc b/cpp/serve/sampler/gpu_sampler.cc index 5a91b297ea..8c97e62573 100644 --- a/cpp/serve/sampler/gpu_sampler.cc +++ b/cpp/serve/sampler/gpu_sampler.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/sampler/gpu_sampler.cc * \brief The implementation for GPU sampler functions. */ diff --git a/cpp/serve/sampler/sampler.h b/cpp/serve/sampler/sampler.h index 882576a5ca..e31408c63d 100644 --- a/cpp/serve/sampler/sampler.h +++ b/cpp/serve/sampler/sampler.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/sampler/sampler.h * \brief The header for runtime module of sampler functions. */ diff --git a/cpp/serve/threaded_engine.cc b/cpp/serve/threaded_engine.cc index 41fbbfc8c1..d87d1ed954 100644 --- a/cpp/serve/threaded_engine.cc +++ b/cpp/serve/threaded_engine.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/threaded_engine.cc * \brief The implementation for threaded serving engine in MLC LLM. */ diff --git a/cpp/serve/threaded_engine.h b/cpp/serve/threaded_engine.h index 411133f650..700fa8b929 100644 --- a/cpp/serve/threaded_engine.h +++ b/cpp/serve/threaded_engine.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file serve/threaded_engine.h * \brief The header of threaded serving engine in MLC LLM. */ diff --git a/cpp/support/debug_utils.h b/cpp/support/debug_utils.h index 20ed0a0ad9..cde530b090 100644 --- a/cpp/support/debug_utils.h +++ b/cpp/support/debug_utils.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/debug_utils.h * \brief Tools for debug purposes. */ diff --git a/cpp/support/dynamic_bitset.h b/cpp/support/dynamic_bitset.h index 29ff5c9a59..918ee80f62 100644 --- a/cpp/support/dynamic_bitset.h +++ b/cpp/support/dynamic_bitset.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/dynamic_bitset.h * \brief The header for utilities used in grammar-guided generation. */ diff --git a/cpp/support/encoding.cc b/cpp/support/encoding.cc index 53d1889c0d..79e826999e 100644 --- a/cpp/support/encoding.cc +++ b/cpp/support/encoding.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/encoding.cc */ #include "encoding.h" diff --git a/cpp/support/encoding.h b/cpp/support/encoding.h index e32ad1845b..dfe0b4cc03 100644 --- a/cpp/support/encoding.h +++ b/cpp/support/encoding.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/encoding.h * \brief Encoding and decoding from/to UTF-8 and escape sequence to/from codepoints. */ diff --git a/cpp/support/load_bytes_from_file.h b/cpp/support/load_bytes_from_file.h index 35396095d7..cc5da9235a 100644 --- a/cpp/support/load_bytes_from_file.h +++ b/cpp/support/load_bytes_from_file.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/load_bytes_from_file.h * \brief Utility methods to load from files. */ diff --git a/cpp/support/progress_bar.h b/cpp/support/progress_bar.h index a2a546ff23..6dbf4caf11 100644 --- a/cpp/support/progress_bar.h +++ b/cpp/support/progress_bar.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/progress_bar.h * \brief A simple progress bar in C++. */ diff --git a/cpp/support/random.h b/cpp/support/random.h index c7490e8e14..f0a22c6a23 100644 --- a/cpp/support/random.h +++ b/cpp/support/random.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/random.h * \brief Header of random number generator. */ diff --git a/cpp/support/result.h b/cpp/support/result.h index c524d14bf7..6fdc608653 100644 --- a/cpp/support/result.h +++ b/cpp/support/result.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/result.h * \brief The header for the Result class in MLC LLM. */ diff --git a/cpp/support/utils.h b/cpp/support/utils.h index 7674699907..093fef29c9 100644 --- a/cpp/support/utils.h +++ b/cpp/support/utils.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file support/utils.h * \brief Utility functions. */ diff --git a/cpp/tokenizers/streamer.cc b/cpp/tokenizers/streamer.cc index a70cf7b275..184c82f187 100644 --- a/cpp/tokenizers/streamer.cc +++ b/cpp/tokenizers/streamer.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file streamer.cc */ diff --git a/cpp/tokenizers/streamer.h b/cpp/tokenizers/streamer.h index 3534d7d0ee..8e9ab6abce 100644 --- a/cpp/tokenizers/streamer.h +++ b/cpp/tokenizers/streamer.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file streamer.h * \brief Header of streamers in MLC LLM. */ diff --git a/cpp/tokenizers/tokenizers.cc b/cpp/tokenizers/tokenizers.cc index 13e5f9e633..0e4ca3ecf1 100644 --- a/cpp/tokenizers/tokenizers.cc +++ b/cpp/tokenizers/tokenizers.cc @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file tokenizer.cc */ diff --git a/cpp/tokenizers/tokenizers.h b/cpp/tokenizers/tokenizers.h index c3b272bfc1..9339f485c6 100644 --- a/cpp/tokenizers/tokenizers.h +++ b/cpp/tokenizers/tokenizers.h @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2023 by Contributors + * Copyright (c) 2023-2024 by Contributors * \file tokenizers.h * \brief Header of tokenizer related functions. */ diff --git a/docs/conf.py b/docs/conf.py index 7743ef2985..10e4335a7b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,7 @@ # General information about the project. project = "mlc-llm" author = "MLC LLM Contributors" -copyright = "2023, %s" % author +copyright = "2023-2024, %s" % author # Version information. @@ -56,7 +56,7 @@ html_static_path = [] -footer_copyright = "© 2023 MLC LLM" +footer_copyright = "© 2023-2024 MLC LLM" footer_note = " " html_logo = "_static/img/mlc-logo-with-text-landscape.svg" diff --git a/python/mlc_llm/model/baichuan/baichuan_model.py b/python/mlc_llm/model/baichuan/baichuan_model.py index ab32abfd8f..cd58a52f05 100644 --- a/python/mlc_llm/model/baichuan/baichuan_model.py +++ b/python/mlc_llm/model/baichuan/baichuan_model.py @@ -1,6 +1,5 @@ """ Implementation for BAICHUAN architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/chatglm3/chatglm3_model.py b/python/mlc_llm/model/chatglm3/chatglm3_model.py index 37ad863829..8dd987882b 100644 --- a/python/mlc_llm/model/chatglm3/chatglm3_model.py +++ b/python/mlc_llm/model/chatglm3/chatglm3_model.py @@ -1,6 +1,5 @@ """ Implementation for CHATGLM3 architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/cohere/cohere_model.py b/python/mlc_llm/model/cohere/cohere_model.py index 540eff3315..a9c4fe7edd 100644 --- a/python/mlc_llm/model/cohere/cohere_model.py +++ b/python/mlc_llm/model/cohere/cohere_model.py @@ -1,6 +1,5 @@ """ Implementation for Aya23 architecture -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/deepseek/deepseek_model.py b/python/mlc_llm/model/deepseek/deepseek_model.py index 96f544162b..77883ca124 100644 --- a/python/mlc_llm/model/deepseek/deepseek_model.py +++ b/python/mlc_llm/model/deepseek/deepseek_model.py @@ -1,6 +1,5 @@ """ Implementation for Deepseek architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/gpt2/gpt2_model.py b/python/mlc_llm/model/gpt2/gpt2_model.py index 506f82decb..02b9a2c10d 100644 --- a/python/mlc_llm/model/gpt2/gpt2_model.py +++ b/python/mlc_llm/model/gpt2/gpt2_model.py @@ -1,6 +1,5 @@ """ Implementation for GPT-2 architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/gpt_bigcode/gpt_bigcode_model.py b/python/mlc_llm/model/gpt_bigcode/gpt_bigcode_model.py index 5892956159..c6cd09018c 100644 --- a/python/mlc_llm/model/gpt_bigcode/gpt_bigcode_model.py +++ b/python/mlc_llm/model/gpt_bigcode/gpt_bigcode_model.py @@ -1,6 +1,5 @@ """ Implementation for GPTBigCode architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/gpt_neox/gpt_neox_model.py b/python/mlc_llm/model/gpt_neox/gpt_neox_model.py index cf8ebdf9ef..1f456f1aae 100644 --- a/python/mlc_llm/model/gpt_neox/gpt_neox_model.py +++ b/python/mlc_llm/model/gpt_neox/gpt_neox_model.py @@ -1,6 +1,5 @@ """ Implementation for GPTNeoX architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/internlm/internlm_model.py b/python/mlc_llm/model/internlm/internlm_model.py index 05d87003c0..4a4cc8d544 100644 --- a/python/mlc_llm/model/internlm/internlm_model.py +++ b/python/mlc_llm/model/internlm/internlm_model.py @@ -1,6 +1,5 @@ """ Implementation for InternLM architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/internlm2/internlm2_model.py b/python/mlc_llm/model/internlm2/internlm2_model.py index c039cc2e8f..b3a3ef302b 100644 --- a/python/mlc_llm/model/internlm2/internlm2_model.py +++ b/python/mlc_llm/model/internlm2/internlm2_model.py @@ -1,6 +1,5 @@ """ Implementation for InternLM2 architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/llama/llama_model.py b/python/mlc_llm/model/llama/llama_model.py index a9177308de..3141e18b3f 100644 --- a/python/mlc_llm/model/llama/llama_model.py +++ b/python/mlc_llm/model/llama/llama_model.py @@ -1,6 +1,5 @@ """ Implementation for Llama2 architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/minicpm/minicpm_model.py b/python/mlc_llm/model/minicpm/minicpm_model.py index c991aa2339..d37d2ed9e5 100644 --- a/python/mlc_llm/model/minicpm/minicpm_model.py +++ b/python/mlc_llm/model/minicpm/minicpm_model.py @@ -1,6 +1,5 @@ """ Implementation for Minicpm architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/orion/orion_model.py b/python/mlc_llm/model/orion/orion_model.py index 97c4c2bb52..c57fb8d1e0 100644 --- a/python/mlc_llm/model/orion/orion_model.py +++ b/python/mlc_llm/model/orion/orion_model.py @@ -1,6 +1,5 @@ """ Implementation for Orion-14B architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/phi/phi_model.py b/python/mlc_llm/model/phi/phi_model.py index 2558f49a81..7becb7bdb4 100644 --- a/python/mlc_llm/model/phi/phi_model.py +++ b/python/mlc_llm/model/phi/phi_model.py @@ -1,6 +1,5 @@ """ Implementation for Phi architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/phi3/phi3_model.py b/python/mlc_llm/model/phi3/phi3_model.py index 95aad6a97b..fc3d762a00 100644 --- a/python/mlc_llm/model/phi3/phi3_model.py +++ b/python/mlc_llm/model/phi3/phi3_model.py @@ -1,6 +1,5 @@ """ Implementation for Phi-3 architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/phi3v/phi3v_image.py b/python/mlc_llm/model/phi3v/phi3v_image.py index b45fdc7330..a36358b379 100644 --- a/python/mlc_llm/model/phi3v/phi3v_image.py +++ b/python/mlc_llm/model/phi3v/phi3v_image.py @@ -1,6 +1,5 @@ """ Implementation for Phi architecture. -TODO: add docstring """ from tvm.relax.frontend import nn diff --git a/python/mlc_llm/model/phi3v/phi3v_model.py b/python/mlc_llm/model/phi3v/phi3v_model.py index 88d95d58c1..63db4f2bfd 100644 --- a/python/mlc_llm/model/phi3v/phi3v_model.py +++ b/python/mlc_llm/model/phi3v/phi3v_model.py @@ -1,6 +1,5 @@ """ Implementation for Phi architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/qwen/qwen_model.py b/python/mlc_llm/model/qwen/qwen_model.py index 23d735a27b..00e972e0ea 100644 --- a/python/mlc_llm/model/qwen/qwen_model.py +++ b/python/mlc_llm/model/qwen/qwen_model.py @@ -1,6 +1,5 @@ """ Implementation for QWEN architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/stable_lm/stablelm_model.py b/python/mlc_llm/model/stable_lm/stablelm_model.py index 95e545f78b..224c1c3915 100644 --- a/python/mlc_llm/model/stable_lm/stablelm_model.py +++ b/python/mlc_llm/model/stable_lm/stablelm_model.py @@ -1,6 +1,5 @@ """ Implementation for StableLM architecture. -TODO: add docstring """ import dataclasses diff --git a/python/mlc_llm/model/starcoder2/starcoder2_model.py b/python/mlc_llm/model/starcoder2/starcoder2_model.py index c7bab4c104..6477401006 100644 --- a/python/mlc_llm/model/starcoder2/starcoder2_model.py +++ b/python/mlc_llm/model/starcoder2/starcoder2_model.py @@ -1,6 +1,5 @@ """ Implementation for Starcoder2 architecture. -TODO: add docstring """ import dataclasses