Git Product home page Git Product logo

say-i-dont-know's People

Contributors

xiami2019 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

Watchers

 avatar

Forkers

shilanya1202

say-i-dont-know's Issues

DPO Training Problems

When training with the DPO script, it was found that if training with four GPUs, the code seems to process four times the training data, as shown in the following, I used 64 preference data pairs to train a llama-7b (already sft ) , batch_size = 64, outputs:

`train stats after 64 examples: {'rewards_train/chosen': '0.0012727', 'rewards_train/rejected': '0.015093', 'rewards_train/accuracies': '0.375', 'rewards_train/margins': '-0.013821', 'logps_train/rejected': '-60.575', 'logps_train/chosen': '-87.107', 'loss/train': '1.5716', 'examples_per_second': '1.2032', 'grad_norm': '86.947', 'counters/examples': 64, 'counters/updates': 1}

2it [02:31, 75.90s/it]train stats after 128 examples: {'rewards_train/chosen': '-0.0066001', 'rewards_train/rejected': '0.0045876', 'rewards_train/accuracies': '0.46875', 'rewards_train/margins': '-0.011188', 'logps_train/rejected': '-67.253', 'logps_train/chosen': '-87.786', 'loss/train': '1.5771', 'examples_per_second': '0.83495', 'grad_norm': '79.911', 'counters/examples': 128, 'counters/updates': 2}

3it [03:43, 74.06s/it]train stats after 192 examples: {'rewards_train/chosen': '0.0057964', 'rewards_train/rejected': '-0.00096887', 'rewards_train/accuracies': '0.65625', 'rewards_train/margins': '0.0067653', 'logps_train/rejected': '-73.114', 'logps_train/chosen': '-74.139', 'loss/train': '1.4316', 'examples_per_second': '0.89487', 'grad_norm': '53.688', 'counters/examples': 192, 'counters/updates': 3}

4it [05:04, 76.91s/it]train stats after 256 examples: {'rewards_train/chosen': '-0.010614', 'rewards_train/rejected': '0.0054293', 'rewards_train/accuracies': '0.375', 'rewards_train/margins': '-0.016043', 'logps_train/rejected': '-73.208', 'logps_train/chosen': '-83.685', 'loss/train': '1.5388', 'examples_per_second': '0.78822', 'grad_norm': '112.48', 'counters/examples': 256, 'counters/updates': 4}`

Judging from the output, the model was updated 4 times in total, processing 64 examples each time. Could you please tell me what I did not run correctly? Why is it far more than the 64 examples of data I provided?

download data.zip

I just submitted a download application for data.zip. Can you help me review it?

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.