1. 15 Jun, 2023 1 commit
  2. 14 Jun, 2023 1 commit
  3. 13 Jun, 2023 2 commits
    • Yuanchen's avatar
      2925f473
    • Wenhao Chen's avatar
      [chat] refactor actor class (#3968) · 9d02590c
      Wenhao Chen authored
      * 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
      9d02590c
  4. 12 Jun, 2023 1 commit
  5. 09 Jun, 2023 6 commits
  6. 08 Jun, 2023 20 commits
  7. 07 Jun, 2023 9 commits