Code Monkey home page Code Monkey logo

Comments (2)

xpq-tech avatar xpq-tech commented on September 7, 2024

Thank you for your interest in our work. We utilized the following hyperparameter settings for LLama-2 editing with PMET:
{ "layers": [ 4, 5, 6, 7, 8 ], "clamp_norm_factor": 1, "layer_selection": "all", "fact_token": "subject_last", "v_num_grad_steps": 20, "v_lr": 0.5, "v_loss_layer": 31, "v_weight_decay": 0.5, "kl_factor": 0.0625, "rewrite_module_tmp": "model.layers.{}.mlp.down_proj", "rewrite_module_tmps": ["model.layers.{}.mlp.down_proj"], "layer_module_tmp": "model.layers.{}", "mlp_module_tmp": "model.layers.{}.mlp.down_proj", "attn_module_tmp": "model.layers.{}.self_attn.o_proj", "ln_f_module": "model.norm", "lm_head_module": "lm_head", "mom2_adjustment": true, "mom2_update_weight": 6000, "mom2_dataset": "wikipedia", "mom2_n_samples": 100000, "mom2_dtype": "float32", "nll_loss_factor": 1 }

Please note that there is a slight difference between the tokenizer of LLama-2 and that of GPT-J. The latter requires a space before each word for correct encoding, whereas the former does not. Our SWEAOS code will be released soon.

from pmet.

XZhang00 avatar XZhang00 commented on September 7, 2024

Thanks for your reply!

from pmet.

Related Issues (5)

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.