ColossalAI/applications/Chat/coati/models
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
..
base [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00
bloom [chat] remove lm model class (#3653) 2023-04-27 15:37:38 +08:00
deberta [Coati] first commit (#3283) 2023-03-28 20:25:36 +08:00
gpt [chat] remove lm model class (#3653) 2023-04-27 15:37:38 +08:00
llama [chat] remove lm model class (#3653) 2023-04-27 15:37:38 +08:00
opt [chat] remove lm model class (#3653) 2023-04-27 15:37:38 +08:00
roberta [chatgpt] add pre-trained model RoBERTa for RLHF stage 2 & 3 (#3223) 2023-04-03 10:11:03 +08:00
__init__.py [chat] remove lm model class (#3653) 2023-04-27 15:37:38 +08:00
generation.py [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00
lora.py [chat] add distributed PPO trainer (#3740) 2023-06-07 10:41:16 +08:00
loss.py [chat]: add vf_coef argument for PPOTrainer (#3318) 2023-04-11 09:54:59 +08:00
utils.py [chat] refactor actor class (#3968) 2023-06-13 13:31:56 +08:00