ColossalAI/applications/Chat/coati
Wenhao Chen 9d02590c9a
[chat] refactor actor class (#3968)
* refactor: separate log_probs fn from Actor forward fn

* refactor: separate generate fn from Actor class

* feat: update unwrap_model and get_base_model
* unwrap_model returns model not wrapped by Strategy
* get_base_model returns HF model for Actor, Critic and RewardModel

* feat: simplify Strategy.prepare

* style: remove get_base_model method of Actor

* perf: tokenize text in batches

* refactor: move calc_action_log_probs to utils of model

* test: update test with new forward fn

* style: rename forward fn args

* fix: do not unwrap model in save_model fn of naive strategy

* test: add gemini test for train_prompts

* fix: fix _set_default_generate_kwargs
2023-06-13 13:31:56 +08:00
..
dataset [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00
experience_maker [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00
kernels [CI] fix some spelling errors (#3707) 2023-05-10 17:12:03 +08:00
models [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00
quant [chat] add distributed PPO trainer (#3740) 2023-06-07 10:41:16 +08:00
ray [chat] add distributed PPO trainer (#3740) 2023-06-07 10:41:16 +08:00
replay_buffer [chat] polish code note typo (#3612) 2023-04-20 17:22:15 +08:00
trainer [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00
utils [chat] remove lm model class (#3653) 2023-04-27 15:37:38 +08:00
__init__.py