Giter VIP home page Giter VIP logo

knowledge-unlearning's People

Contributors

joeljang avatar mattyoon avatar seonghyeonye 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

Watchers

 avatar  avatar

knowledge-unlearning's Issues

accuracy missing "task" argument

In the validation_forget() function, accuracy has been used without specifying the task argument which throws an AssertionError.

acc = accuracy(pred, label, ignore_index=-100)

I have replaced it with

acc = accuracy(pred, label, task="multiclass", num_classes=5063, ignore_index=-100)

I found 5063 to be the number of unique labels. Is this the right fix?

entire dataset for the extraction dataset

Hi, thanks for the interesting work. Could you provide the entire extraction dataset with 16 domains? I do see five samples are available for eight domains. But could you provide all others as well? Many thanks in advance

If I just want to evaluate the nine benchmark datasets with opt-1.3b ,without train. How should I do?

I have set the config.json. It is right?
{ "mode": "general_lm_eval", "wandb_project": "Knowledge Unlearning", "wandb_run_name": "example", "num_train_epochs": 20, "check_val_every_n_epoch": 1, "check_validation_only": true, "do_init_eval": true, "train_set": "data/main/lm_extraction_32_0.csv", "valid_sets": [ "validation_data/lambada.csv", "piqa", "hellaswag", "ai2_arc", "ai2_arc", "super_glue", "winogrande", "math_qa", "validation_data/pubmed_qa.csv" ], "valid_subset_path": [ "", "", "", "ARC-Easy", "ARC-Challenge", "copa", "winogrande_s", "", "" ], "valid_type_path": [ "test", "validation", "validation", "validation", "validation", "validation", "validation", "validation", "" ], "cache_dir":"/home/data0/cgt/knowledge-unlearning/val", "train_batch_size": 8, "eval_batch_size": 8, "gradient_accumulation_steps": 4, "ngpu": 1, "learning_rate": 5e-5, "model_name_or_path": "/home/chen/.cache/huggingface/hub/models--facebook--opt-1.3b/snapshots/3f5c25d0bc631cb57ac65913f76e22c2dfb61d62", "el_threshold": 0.0499, "ma_threshold": 0.2994, "input_length": 512, "output_length": 512, "target_length": 200, "num_workers": 64, "strategy": "deepspeed_stage_2_offload", "fp16": true, "wandb_log": false }

warnings when run the code

When I try to run the code, large numbers of warnings as below appears. I have no idea where it comes from. Could you please provide a method to remove them?

The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.
Setting `pad_token_id` to `eos_token_id`:50256 for open-end generation.

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.