Code Monkey home page Code Monkey logo

remax's People

Contributors

liziniu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

remax's Issues

Bugs when using zero-stage3

Great work!
I met the following bug when I ran your code with REFERENCE_ZERO_STAGE=3.
AttributeError: 'LlamaAttention' object has no attribute 'rope_theta'.
I believe this is inherited from DS-Chat. But I still wonder how you fix it?

Mistral as the backbone of reward model

got the error below:

Traceback (most recent call last):
  File "/mntcephfs/lab_data/kongchuyi/A-rlsimu/ReMax/step2_reward_model_finetuning/main.py", line 466, in <module>
    main()
  File "/mntcephfs/lab_data/kongchuyi/A-rlsimu/ReMax/step2_reward_model_finetuning/main.py", line 402, in main
    reward_score, acc = evaluation_reward(rm_model, eval_dataloader)
  File "/mntcephfs/lab_data/kongchuyi/A-rlsimu/ReMax/step2_reward_model_finetuning/main.py", line 344, in evaluation_reward
    outputs = model(**batch)
  File "/mntcephfs/lab_data/kongchuyi/miniconda3/envs/remaxx/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/mntcephfs/lab_data/kongchuyi/miniconda3/envs/remaxx/lib/python3.10/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
  File "/mntcephfs/lab_data/kongchuyi/miniconda3/envs/remaxx/lib/python3.10/site-packages/deepspeed/runtime/engine.py", line 1801, in forward
    loss = self.module(*inputs, **kwargs)
  File "/mntcephfs/lab_data/kongchuyi/miniconda3/envs/remaxx/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/mntcephfs/lab_data/kongchuyi/A-rlsimu/ReMax/utils/model/reward_model.py", line 56, in forward
    transformer_outputs = self.rwtranrsformer(
  File "/mntcephfs/lab_data/kongchuyi/miniconda3/envs/remaxx/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
TypeError: MistralModel.forward() got an unexpected keyword argument 'head_mask'

if I revise line 51 in ReMax/utils/model/reward_model.py to:

        if self.config.model_type == "llama" or "mistral":

the script runs well.
is it reasonable?

Repoducing llama-2-7b results

Hello! Thank you for sharing your work.
I'm trying to reproduce the result with llama-2-7b model, but I got only 0.75 eval reward score after ReMax training.

When I look at the paper appendix c, it says lr as 1e-6 (but it is not the same as the other lr..), and kl penalty coeff. as 0.1.
Except them, what would I need to consider? (maybe batch size? I'm using 8*24)

And I'm currently using 8 gpus for training, do you think this would be the reason why make the result different?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.